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)

bigggt 04-24-2003 05:36 PM

Hi Daager,do you mean to download svcd instead of the divx or xvid movies,if you are into that sort of thing :wink:

Wolfi 04-24-2003 05:45 PM

What is macroblocks, were do I look, how do they look like 8O

//Wolfi

Bigswaffo 04-24-2003 08:14 PM

Quote:

Originally Posted by bigggt
Hi Daager,do you mean to download svcd instead of the divx or xvid movies,if you are into that sort of thing :wink:

I'm also curious as to how you go about converting SVCD to KVCD. :D

Reno 04-24-2003 10:32 PM

Quote:

Originally Posted by Wolfi
What is macroblocks, were do I look, how do they look like 8O

//Wolfi

Macroblocks manifest in flat, darkened areas, like a wall in a dimly lit house, or in subtle gradients, such as those found in scenes with fog or smoke. I hate them with a passion, but if you're working with Divx sources, you're sort of stuck with em...

Is it just me, or do macroblocks have a certain color bias?? Mainly towards earthtones and low saturation blues... I've gotten to the point where I can watch a DVD, and key in on areas where macroblocks will appear on an encode. Boy, I miss just watching a movie to enjoy it... now I frikkin analyze everything!! :oops:

Kane 04-25-2003 02:42 AM

Quote:

Originally Posted by Reno
Boy, I miss just watching a movie to enjoy it... now I frikkin analyze everything!! :oops:

hehe
yeah, that´s the "disadvantage" of encoding

jorel 04-25-2003 02:58 AM

ok.....not kiddin!
:)

two months pass,
8O 8O i'm trying to encode the musical
from Sarah Brightman-La Luna.

MovieStacker and ToK help me (us) a lot with this job.
don' t need to write this but....
without the templates was impossible ,of course.

the boring part:
the filters! :roll:

La Luna is a really blue film,the ilumination is too blue and dark!
using the last filters, i see lots of smoke.
with blockbuster noise, is just a few better but really slow! :cry:

then i'm waiting for new mix filters ideas cos
i really want a big result!
i don't like the "more or less things",this time is gone.

any news?
or change anything in the last script?
:idea: :?:

girv 04-25-2003 05:25 AM

MarcFD's "MSoften" filter seems to make a good job of de-blocking
xvid and divx sources. I havent had a chance to play with settings
much or try it on different sources, but results on one particularily bad
source with the defaults look very promising! Flickering block artefacts
on flat areas were almost completely removed - the temporal denoiser
in MSoften seems to be something special :)

There were some other artefacts introduced however so it still needs
some tweaking. But its worth checking it out IMHO...

/girv

Wolfi 04-25-2003 08:19 AM

Quote:

Originally Posted by girv
MarcFD's "MSoften" filter seems to make a good job of de-blocking
xvid and divx sources. I havent had a chance to play with settings
much or try it on different sources, but results on one particularily bad
source with the defaults look very promising! Flickering block artefacts
on flat areas were almost completely removed - the temporal denoiser
in MSoften seems to be something special :)

There were some other artefacts introduced however so it still needs
some tweaking. But its worth checking it out IMHO...

/girv

Hi girv :) were can I download and try MSoften filter :?: And were do you put the filter in your script?

//Wolfi

girv 04-25-2003 08:55 AM

Quote:

Originally Posted by Wolfi
Hi girv :) were can I download and try MSoften filter

I got MSoften (AVISynth 2.0x YUY2 only) from this this doom9 thread

Quote:

Originally Posted by Wolfi
And were do you put the filter in your script?

The script I was messing about with:
Code:

...
AVISource("divx.avi")

UnFilter(20,20)
Blockbuster(method="dither",detail_min=1,detail_max=7,variance=0.3,seed=1,luma_offset=-2)
FluxSmooth()
MSoften(3,3,4,3,pre=1,post=1,speed=4,showmask=false)

I'm not entirely sure what the MSoften parameters mean :) Also
you may want to start with just MSoften on its own to see the effect.

I was loading the script in vdub and applying a +200% contrast
filter to make the blocks more obvious to the eye.

good luck :)

/girv

jorel 04-25-2003 10:17 AM

@ girv and Wolfi :wink:

all filters that you need:

http://www.kvcd.net/forum/viewtopic....f0cf67c08bcc12

click on "tons more" link!
:wink:

Daagar 04-25-2003 01:34 PM

Since I hadn't tried for a while, I converted a 1-CD XViD to a 1-CD KVCD using the latest "optimal script" settings. The results were outstanding. So my previous statement about always going from svcd to kvcd isn't always necessary. This was a low action film, so that may have helped, but I didn't notice any strong left-over artifacts from the original vxid encoding. (The movie was some screwy 580x306 resolution, so I used KVCDx3 at 528x480).

The optimal scripts are truly optimal!

Reno 04-25-2003 02:28 PM

Gotta try that Msoften filter...

It doesn't trash detail, does it?

Boulder 04-28-2003 03:24 PM

Has anyone tried fiddling with Unfilter(-5,-5) ? It seems that it reduces the filesize with lower quality sources quite dramatically.

See here:

http://forum.doom9.org/showthread.php?s=&threadid=51181

kwag 04-28-2003 03:37 PM

I believe Unfilter values below 0 (negative) just start to blur the image!, so I think that mergechroma with a tad of mergeluma, should accomplish a similar result. That's just what I think. I haven't made any comparisons :!:

-kwag

jorel 04-28-2003 04:07 PM

yes to Boulder and Kwag !

from unfilter readme:

The effects are fairly mild but be aware that excessive sharpening makes things
harder to compress and may bring about the dreaded "edge enhancement artifacts"
the people complain about in DVD's from some studios. And while excessive
softness may hide noise it loses detail and generally just looks ugly. So it is
probably best to just try to reverse whatever has already been done to your source.

:!:

girv 04-29-2003 05:17 AM

Heres my latest effort at a xvid-block busting script:

Code:

LoadPlugin("C:\Program_Files\Video\AVISynth\Plugins\MPEG2DEC2.dll")
LoadPlugin("C:\Program_Files\Video\AVISynth\plugins\LegalClip.dll")
LoadPlugin("C:\Program_Files\Video\AVISynth\plugins\Blockbuster.dll")
LoadPlugin("C:\Program_Files\Video\AVISynth\plugins\MSoften.dll")

AVISource("test.avi"))
LegalClip()

LanczosResize(432,544)
AddBorders(0,32,0,32)
Blockbuster(method="dither",detail_min=1,detail_max=10,variance=0.3,seed=0)
MSoften(3,3,4,3,pre=1,post=1,speed=4,showmask=false)
MergeChroma(Blur(0.5))
MergeLuma(Blur(0.1))
Crop(0,32,432,544)

LegalClip()

I tried the above script with a number of xvid and divx encoded sources and it did a good job of removing the blocks on all of them while retaining detail in the picture. Please do try it and tweak it yourselves!

Things to notice:

1) MSoften doesnt seem to process the top and bottom few lines of the input, hence the slightly unusual AddBorders...Crop combination in there. Perhaps this wont be required if youre using GripSize / GripBorders but I'm not sure as I dont use them myself (no reason, I just never bothered to learn how :)

2) No UnFilter. UnFilter seems to really highlight the xvid blocks, so I dropped it. This leads on to...

3) ...LanczosResize and lower MergeChroma/MergeLuma blur factors to retain sharpness.

4) Blockbuster method is "dither" as "noise" seemed to leave blurred blocky areas that changed slowly over time - like xvid blocks in slow motion.

5) No TemporalCleaner or TemporalSmoother - MSoften does enough of this IMHO even with very noisy sources.

I dont know if its just my setup or the combination of filters I was using, but TemporalSmoother() seems to affect the colour balance of the result clip, making it slightly washed out and maybe a little more green. Anyone else notice anything like this? FWIW I was using TemporalSmoother(2,3)

I get an AVISynth error when using certain filters after MSoften - perhaps there is a bug lurking in there so watch out for it. Temporal smoothers seem to be the big problem eg: FluxSmooth, TemporalSmoother, TemporalCleaner etc.


File sizes are interesting also:
Code:

KVCDx3 MPEG1 300-2500kbps CQ 80

Original: 140159571
Optimal: 142891890
Reno  : 151225343
Mine  : 138720543

The "Reno" version was made with the test deblocker script Reno posted in this thread.

It seems removing those flashing xvid blocks really helps compression :)

telemike 04-29-2003 06:41 AM

QUESTION:

Has anyone run time tests for the different filters? I would like to know in the latest optimal script if I can drop one of the filters and gain time?

jorel 04-29-2003 06:46 AM

girv :)

great observations.

you are right,i see it a long time:
temporalSmoother turn
a little more green(more in very dark scenes)
try(2,1)...is better but you see less green problem.

Blockbuster...blurred blocky areas that changed slowly over time - like xvid blocks in slow motion.
yeah i'm with you here too.

lanczos is sharper but give some stranges artefacts
like little waves.

File sizes get hude changes ,depending in the order of the filters.

it all in vobs too,not only in xvid!
:wink:

jorel 04-29-2003 06:50 AM

Quote:

Originally Posted by telemike
QUESTION:

Has anyone run time tests for the different filters? I would like to know in the latest optimal script if I can drop one of the filters and gain time?

yes telemike, :)

i did tests and post somewhere in the forum.... :?
don't remember where i posted it.
:oops:

girv 04-29-2003 08:28 AM

Quote:

Originally Posted by jorel
you are right,i see it a long time:
temporalSmoother turn
a little more green(more in very dark scenes)
try(2,1)...is better but you see less green problem.

Good, I knew it couldnt just have been my old eyes or crappy monitor cable :)

The effect does get less with weaker settings as you say, but I'm not using TemporalSmoother any more anyway...

Quote:

Originally Posted by jorel
Blockbuster...blurred blocky areas that changed slowly over time - like xvid blocks in slow motion.
yeah i'm with you here too.

But "dither" mode fixed (or improved) that right?

Quote:

Originally Posted by jorel
lanczos is sharper but give some stranges artefacts
like little waves.

I didnt notice any artefacts like that, but the source I was using was a particularily bad xvid so it could have been very blurry and in need of agressive sharpening anyway. You could switch to BicubicResize or perhaps increase the Blur factors to reduce the artefacts I guess.

Quote:

Originally Posted by jorel
File sizes get hude changes ,depending in the order of the filters.

The filter order is important, I tried many different orders and this was the best one I found. The idea is to add noise to the xvid blocks, then get MSoften to blend them all together. But this still leaves areas of colour with blocky edges so a slight blur is applied to soften those away.

An improvement might be to apply a detail thresholded smoother to only affect the low-detail blocky areas instead of the picture wide blur Im using now. Feel free to test that idea :wink:

What did you try?

Quote:

Originally Posted by jorel
it all in vobs too,not only in xvid! :wink:

I didnt try the script with any VOBs, I was trying to optimise it for the particular type of noise found in xvid/divx encodes. Are there blocks in VOBs as well? What were the results like?

/girv


All times are GMT -5. The time now is 06:27 PM  —  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.