Quantcast Avisynth: Latest Script Discussion - Page 11 - digitalFAQ.com Forums [Archives]
  #201  
04-24-2003, 05:36 PM
bigggt bigggt is offline
Free Member
 
Join Date: Mar 2003
Location: IamCanadian
Posts: 848
Thanks: 0
Thanked 0 Times in 0 Posts
Hi Daager,do you mean to download svcd instead of the divx or xvid movies,if you are into that sort of thing
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #202  
04-24-2003, 05:45 PM
Wolfi Wolfi is offline
Free Member
 
Join Date: Oct 2002
Location: Sweden
Posts: 489
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Wolfi Send a message via MSN to Wolfi Send a message via Yahoo to Wolfi
What is macroblocks, were do I look, how do they look like

//Wolfi
Reply With Quote
  #203  
04-24-2003, 08:14 PM
Bigswaffo Bigswaffo is offline
Free Member
 
Join Date: Apr 2002
Location: Tejas
Posts: 86
Thanks: 0
Thanked 0 Times in 0 Posts
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
I'm also curious as to how you go about converting SVCD to KVCD.
Reply With Quote
  #204  
04-24-2003, 10:32 PM
Reno Reno is offline
Free Member
 
Join Date: Nov 2002
Location: Sunny California
Posts: 242
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Wolfi
What is macroblocks, were do I look, how do they look like

//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!!
__________________
"There are two rules for ultimate success in life.
1. Never tell everything you know."
Reply With Quote
  #205  
04-25-2003, 02:42 AM
Kane Kane is offline
Free Member
 
Join Date: Jan 2003
Posts: 398
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Reno
Boy, I miss just watching a movie to enjoy it... now I frikkin analyze everything!!
hehe
yeah, that´s the "disadvantage" of encoding
__________________
greetz Kane
Reply With Quote
  #206  
04-25-2003, 02:58 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
ok.....not kiddin!


two months pass,
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!

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!

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?
Reply With Quote
  #207  
04-25-2003, 05:25 AM
girv girv is offline
Free Member
 
Join Date: Sep 2002
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to 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
Reply With Quote
  #208  
04-25-2003, 08:19 AM
Wolfi Wolfi is offline
Free Member
 
Join Date: Oct 2002
Location: Sweden
Posts: 489
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Wolfi Send a message via MSN to Wolfi Send a message via Yahoo to Wolfi
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
Reply With Quote
  #209  
04-25-2003, 08:55 AM
girv girv is offline
Free Member
 
Join Date: Sep 2002
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to girv
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
Reply With Quote
  #210  
04-25-2003, 10:17 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
@ girv and Wolfi

all filters that you need:

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

click on "tons more" link!
Reply With Quote
  #211  
04-25-2003, 01:34 PM
Daagar Daagar is offline
Free Member
 
Join Date: May 2002
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
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!
Reply With Quote
  #212  
04-25-2003, 02:28 PM
Reno Reno is offline
Free Member
 
Join Date: Nov 2002
Location: Sunny California
Posts: 242
Thanks: 0
Thanked 0 Times in 0 Posts
Gotta try that Msoften filter...

It doesn't trash detail, does it?
__________________
"There are two rules for ultimate success in life.
1. Never tell everything you know."
Reply With Quote
  #213  
04-28-2003, 03:24 PM
Boulder Boulder is offline
Free Member
 
Join Date: Sep 2002
Location: Lahti, Finland
Posts: 1,652
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #214  
04-28-2003, 03:37 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #215  
04-28-2003, 04:07 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
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.

Reply With Quote
  #216  
04-29-2003, 05:17 AM
girv girv is offline
Free Member
 
Join Date: Sep 2002
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to girv
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 :)
Reply With Quote
  #217  
04-29-2003, 06:41 AM
telemike telemike is offline
Free Member
 
Join Date: Jan 2003
Location: Greensboro, NC
Posts: 214
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to 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?
Reply With Quote
  #218  
04-29-2003, 06:46 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
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!
Reply With Quote
  #219  
04-29-2003, 06:50 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #220  
04-29-2003, 08:28 AM
girv girv is offline
Free Member
 
Join Date: Sep 2002
Posts: 108
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to girv
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
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Is it me or is the latest MA script slow? audi2honda Avisynth Scripting 1 12-08-2003 04:27 AM
Avisynth: Latest script compatible with 2.51? Reno Avisynth Scripting 15 07-11-2003 06:26 AM
Avisynth: Possible Addition To Latest Script For 2.5 Dano Avisynth Scripting 13 06-18-2003 04:49 PM
Avisynth: Latest vhs script? Paul0889 Avisynth Scripting 1 04-18-2003 09:31 PM
Avisynth: Latest KVCD script please! syk2c11 Avisynth Scripting 1 04-02-2003 10:03 AM

Thread Tools



 
All times are GMT -5. The time now is 12:22 PM  —  vBulletin © Jelsoft Enterprises Ltd