digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Latest script discussion (http://www.digitalfaq.com/archives/avisynth/3145-avisynth-latest-script.html)

Wolfi 05-01-2003 05:33 PM

ahah the same naisty problem, to said nothing is working :cry:

//Wolfi

girv 05-01-2003 05:59 PM

Quote:

Originally Posted by Wolfi
Quote:

Originally Posted by girv
Quote:

Originally Posted by Wolfi
I tried your script with the same movie :? Kwag's script gave me a CQ value of 61.xx but your script was quite different, it gave me a CQ of 53.xx

Are you sure? Any source I've tried has come out smaller with my script at the same CQ...

Oh yeah I'm sure :?

I did some more tests with different sources - sometimes my script made a smaller file, sometimes a larger file compared to Kwag's. Maybe it depends on the amount of xvid blocks in the source ?

jorel 05-01-2003 06:13 PM

Quote:

Originally Posted by Kane
i didnīt use a stable cq value

i let ToK do the prediction with both scripts, with and without STM and then i did a sample of the same movie ( i just made a 3minute sample with dvd2avi ) with the cq value the prdiction gave me, so i could compare the quality, the final movie would have

friend Kane and all, your atention please:
:)
i think that i found why we have differents opinions about STM..

as posted, you(Kane) "let ToK do the prediction with both scripts".

you got differents CQ,right?
than one of your tests got more CQ and show better quality.

i do my tests and samples using diferents scripts
and a little chapter(but complete chapter)
with more or less 5 minutes.
with and without STM filters in this case,
but with the

same CQ :!: (65 with each script)
and adjusting the "spacing free" and
"max file size" to 25 or 30mb :!:

then i see better result using STM filter comparing the images!!!
just a little,but better?

make sense?
:wink:

girv 05-01-2003 06:26 PM

Re: STDMedian is back!
 
Quote:

Originally Posted by kwag
STMedianFilter(10, 30, 0, 0, 10, 30), I can't see any visual difference with or without the filter

To me the output does look slightly softer with the above filter in effect, but you might not notice the effect on a TV. And interestingly I think it made the output look better but that might just be my noisy source material.

I think this one needs more investigation :)[/b]

Kane 05-01-2003 06:29 PM

Quote:

Originally Posted by jorel
as posted, you(Kane) "let ToK do the prediction with both scripts".

you got differents CQ,right?
than one of your tests got more CQ and show better quality.


yes, i got two different cq values, the scripts with STM have a cq, thatīs about 2-5 highter than the cq without STM, but the video quality with the higher cq is worse, than the one with lower cq.

jorel 05-01-2003 06:34 PM

ok Kane.
:wink:

but why we see differents qualitys?

maybe the sources. :?

mine is from dvd,and your?
:?:

Kane 05-01-2003 06:40 PM

Quote:

Originally Posted by jorel
ok Kane.
:wink:

but why we see differents qualitys?

maybe the sources. :?

mine is from dvd,and your?
:?:


dvd, too

i will give kwagīs STM settings a try after weekend, if quality remains the same and the filesize decreases: OK, i will use it

otherwise, i wonīt use it anymore. my script gives a perfectly sharp video, i can put on 1cd-r. thatīs all i want :wink:

ovg64 05-01-2003 06:54 PM

Spatial filters, Soften Filters, Shapen Filters its just a way to get around ugly video and get better image, But i wich they make a filter to get just Compression and nothing alse. Cause the thuth is the higher the CQ the less noise you get piriod and you only have 800MB to play with. filters like STM do give compression but at the expence of detail, so i just try to use the least amount of filter possible and try different settings and thats just my 2cnts and that.

jorel 05-01-2003 06:54 PM

Kane posted:
"dvd, too ...
my script gives a perfectly sharp video,
i can put on 1cd-r. thatīs all i want"


ok my friend!
i see that you are a "hunter of quality" like me!
:D

Kane 05-01-2003 06:59 PM

Quote:

Originally Posted by jorel
Kane posted:
"dvd, too ...
my script gives a perfectly sharp video,
i can put on 1cd-r. thatīs all i want"


ok my friend!
i see that you are a "hunter of quality" like me!
:D

yep, always on the hunt 8) :wink:

jorel 05-01-2003 07:00 PM

Quote:

Originally Posted by ovg64
Spatial filters, Soften Filters, Shapen Filters its just a way to get around ugly video and get better image, But i wich they make a filter to get just Compression and nothing alse. Cause the thuth is the higher the CQ the less noise you get piriod and you only have 800MB to play with. filters like STM do give compression but at the expence of detail, so i just try to use the least amount of filter possible and try different settings and thats just my 2cnts and that.

yes ovg64
but what is better without filters?
(the least amount of filter possible)

352 x 240 with more CQ or
high x high with less CQ?

:? but :lol:

i'm turning it all more confused!
:lol:

ovg64 05-01-2003 07:09 PM

Quote:

Originally Posted by jorel
Quote:

Originally Posted by ovg64
Spatial filters, Soften Filters, Shapen Filters its just a way to get around ugly video and get better image, But i wich they make a filter to get just Compression and nothing alse. Cause the thuth is the higher the CQ the less noise you get piriod and you only have 800MB to play with. filters like STM do give compression but at the expence of detail, so i just try to use the least amount of filter possible and try different settings and thats just my 2cnts and that.

yes ovg64
but what is better without filters?
(the least amount of filter possible)

352 x 240 with more CQ or
high x high with less CQ?

:? but :lol:

i'm turning it all more confused!
:lol:

Its just that some people come up with scrips that look like my Bible. :wink:

muaddib 05-01-2003 08:35 PM

Quote:

Originally Posted by girv
The borders are added because MSoften does not (seem to) process the very top and very bottom few lines of the image so you get left over DCT blocks flickering away like mad in those locations. Adding the borders gives the filter "room to work" at the edges, then I remove the borders afterwards as they are no longer needed.

As for the odd resolution, 432x544 is 480x576 with the overscan lines my TV does not display removed. I encode at 480x576 with TMPGEnc's "video arrange method" set to "centre" so it adds the borders required to bring the input clip up to the required resolution without resizing. Theres no particular reason for doing it this way, its just the way I like to do it.

OK! Now I got you! :D
Thanks! :wink:

bman 05-02-2003 04:35 AM

I'm using STM filter with different sourses and as I see it it's very helpful with noisy or low quality sources . If u are working with clean DVD source It can be dropped off , else u need more compression .
STM ( for me ) makes very significant job with low quality sources . With KWAG's optimal script (before last update) I've managed to get so clean picture that my friend couldn't beleave to me when I showed to him source and resulted mpg . He thought that source was an encoded movie .
To use or not to use (STM) It's up to u
So do as u like :wink: :wink: :wink:
bman

girv 05-02-2003 05:10 AM

I finally got around to watching a few Kwag-Optimal vs. Girv-MSoften xvid re-encodes on a TV (standard 28" widescreen).

Overall both scripts gave good quality results. With high quality sources I think Kwag's script perhaps had a slight edge, but with lower quality sources with visible flickering DCT blocks I think MSoften really helps. They seem about even on compression as well. Which is nice.

Problems?

MSoften (mostly) stops the blocks flickering but flat coloured backgrounds can end up looking somewhat blocky with no smooth colour graduation - like you'd converted it to 16 colours and back again (whats the name for that effect?) Is that better or worse than a randomly flickering background? Dunno.

There are also blurring artefacts sometimes, mostly vertical edges being shifted sideways in parts (vertical lines becoming slightly wavy). But these are very short lived (<5 frames) and I only really notice them when stepping through the video frame by frame.

To Do ?

I think some sort of spatial soften / blur is required after MSoften to help with the blocky backgrounds; I'm looking at various filters but havent found a satisfactory one yet. You might like to try FluxSmooth, STMedianFilter or SmartSmootherYuv. Anyone know of a filter that can detect and blur horizontal and vertical edges over a wide area? Maybe I should stop encoding video and go and write one (I just know I'm going to be sorry I said that :)

So to finally spend my 0.02c:
DVD & HQ divx/xvid: Kwag's
Other xvid/divx: Blockbuster & MSoften


All totally 100% IMHO and YMMV of course :) Comments and improvements welcome!

bman 05-02-2003 05:41 AM

@ girv !
Hi !!!
I have to agree with u but have some quastions :
=====
So to finally spend my 0.02c:
DVD & HQ divx/xvid: Kwag's
Other xvid/divx: Blockbuster & MSoften
=====
When U Say " xvid/divx: Blockbuster & MSoften " what params u suggest for both of them . Have u any favorite ones ???
bman

girv 05-02-2003 06:05 AM

Quote:

Originally Posted by bman
When U Say " xvid/divx: Blockbuster & MSoften " what params u suggest for both of them

I'm currently encoding with this script:

Code:

AVISource("xvid.avi")
LegalClip()

LanczosResize(432,416)
AddBorders(0,32,0,32)
Blockbuster(method="dither",detail_min=1,detail_max=10,variance=0.3,seed=0,cache=4096)
MSoften(3,3,4,3,pre=1,post=1,speed=4,showmask=false)
Crop(0,32,Width(),Height()-64)
FluxSmooth(MergeLuma(last,1))

LegalClip()

These are the settings I've settled on after many hours of peering at VirtualDub :) They seem to give good results on a variety of sources.

bman 05-02-2003 06:53 AM

That's interesting ! 8O 8O 8O
U are resizing , adding borders and right after all this u set all other filters ?
Thats interesting cos I've got better results with all filters before resizing . It takes more time ( bigger frame to work up ) but resulted quality just worth it .
I didn't try this way :!: :?: ( Stupid of me :oops: :oops: :? )
More to try :lol: 8)
bman

girv 05-02-2003 08:31 AM

Quote:

Originally Posted by bman
That's interesting ! 8O 8O 8O
U are resizing , adding borders and right after all this u set all other filters ?

Thats interesting cos I've got better results with all filters before resizing . It takes more time ( bigger frame to work up ) but resulted quality just worth it .
I didn't try this way :!: :?: ( Stupid of me :oops: :oops: :? )

Not stupid at all, bman :) I tried the filters before the resizing and, as you say, it takes longer to encode. However I couldnt see any quality difference when doing it this way so I just put the resize first for the speed gain. What filter chain were you using in your test?

Note that I'm adding borders then removing them again with Crop. This is because the MSoften filter doesnt process the top and bottom of the frame so I add borders to give it "room to work" at the edges.

bman 05-02-2003 10:01 AM

@ girv
I'm using KWAG's optimal script with some small changes on prams of filters .
bman


All times are GMT -5. The time now is 06:19 AM  —  vBulletin Đ Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.