digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: No need for Blockbuster ? (http://www.digitalfaq.com/archives/avisynth/3406-avisynth-blockbuster.html)

LadyMiles 04-27-2003 08:55 PM

No need for Blockbuster ?
 
Hello All,


I think someone explained to me that the new templates don't need the blockbuster noise filter, because we use CQ now. Is there no way to reduce those gradient blocks in dark areas ?

jorel 04-27-2003 09:03 PM

Re: No need for Blockbuster ?
 
Quote:

Originally Posted by LadyMiles
Hello All,


I think someone explained to me that the new templates don't need the blockbuster noise filter, because we use CQ now. Is there no way to reduce those gradient blocks in dark areas ?

hi LadyMiles
:)
in some cases yes, see my post please:
http://www.kvcd.net/forum/viewtopic....1b7ec6a0c911e6

:wink:

LadyMiles 04-27-2003 09:27 PM

Thanks Jorel

Is there a reason that you Load the plugin in the middle of the script , instead of the Load plugin "header"?

jorel 04-27-2003 09:48 PM

:)
not in the middle,in the beggining or in the end

got less size(more compression but slow),after STMedianFilter
or
got 10% more size(less compression but faster),after mergeluma

LegalClip()
GripCrop( X, Y )
GripSize(resizer="BicubicResize")
STMedianFilter(10, 50, 0, 0, 10, 50)
:arrow: *blockbuster noise here is slow encode but got less size*
# SpaceDust() # Optional - for some "not so clean" DVDs.
unfilter(50,50)
temporalsmoother(1,2)
mergechroma(blur(1.58))
mergeluma(blur(0.3))
:arrow: *blockbuster noise here is faster and got 10% more size*
# Convolution3d or DCTFilter for extreme worse cases.
GripBorders()
LegalClip()

:wink:

CheronAph 04-28-2003 01:42 AM

Hi Jorel, how did the picture quality turned out, was there any difference?

CheronAph 04-28-2003 01:51 AM

Was there any difference in the picture quality, when blocbuster was in the start of the script was it better or worse than when blockbuster was in the end?

jorel 04-28-2003 02:09 AM

Quote:

Originally Posted by CheronAph
Was there any difference in the picture quality, when blocbuster was in the start of the script was it better or worse than when blockbuster was in the end?

oh yes CheronAph, now i "got" :wink:

blockbuster in the end have better image!!
(encode faster and with more size too)

ps:
thanks for redo the question.
:!:

muaddib 04-28-2003 11:57 AM

Hi jorel and all,

It's not much effective placing BolckBuster(noise) before Dust filter.
If you do that you will be adding noise with blockbuster and then
removing it with dust. Bockbuster will be almost useless this way.
The correct place is the second one... just before adding borders. :wink:

jorel 04-28-2003 12:36 PM

thanks for the hint muaddib :wink:

but i don't use dust to encode with this script,
see the # before the line!
(this is a copy of Kwag's script more blockbuster) :wink:

and
"The correct place is the second one... just before adding borders."
yes and in this place, the final size is small
and need more time to encode!

:D

Reno 04-28-2003 01:48 PM

Blockbuster can be very usefull for attacking macroblocks, especially in dark areas. I'm fiddling around with a script exclusively for Divx sources that attacks those blocks... looks VERY promising so far...

I'm finished encoding 'The Ring' (aka Macroblock Hell), and the macroblock assault was very succesful, especially in dark areas!!!

CheronAph 04-28-2003 02:12 PM

Can you post the script here when you´ve nailed it!

Reno 04-28-2003 03:13 PM

I haven't nailed it yet, but here's the latest version...
--------------------------------------------------------------------------------------
#============================================#
# -= Mega Supreme AviSynth script by Reno =- #
#============================================#

LoadPlugin("C:\Program Files\MovieStacker\Filters\Mpeg2Dec.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\TemporalCleanerOld.dll" )
LoadPlugin("C:\Program Files\MovieStacker\Filters\FluxSmooth.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\GripFit_preview.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\BlockBuster.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\Msoften.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\DustV5.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\LegalClip.dll")
LoadPlugin("C:\Program Files\MovieStacker\Filters\Sampler.dll")

AviSource("t25h-cd1-xvid.avi",false)
ConverttoYUY2
LegalClip()
GripCrop(528, 480, overscan=2, source_anamorphic=false)
GripSize(resizer="LanczosResize")
SpaceDust()
TemporalCleaner(ythresh=1, cthresh=15)
sharpen(0.7)
mergechroma(blur(1.58))
mergeluma(blur(0.1))
BlockBuster(method="noise", detail_min=1, detail_max=100, variance=0.8, seed=0 )
MSoften(3,3,4,3,pre=1,post=1,speed=4,showmask=fals e)

GripBorders()
LegalClip()

#Sampler(length=24)
--------------------------------------------------------------------------------------
The war against macroblocks continues... :P

jorel 04-28-2003 04:34 PM

Quote:

Originally Posted by muaddib
Hi jorel and all,

It's not much effective placing BolckBuster(noise) before Dust filter.
If you do that you will be adding noise with blockbuster and then
removing it with dust. Bockbuster will be almost useless this way.
The correct place is the second one... just before adding borders. :wink:

muaddib, :)

i forgot to "say":

using trim and fade before the resize:
the final file is bigger.( a little more)
using trim and fade in the final of the script:
the final file is smaller! (a little less)

this is for MovieStacker!
:wink:

TheDJ 05-20-2003 07:37 AM

where is msoften.dll? where is convertto YUY2?

cant see it anywhere on moviestacker? :cry:

I'm using Moviestacker Version bet a2.00

Dialhot 05-20-2003 08:06 AM

Quote:

Originally Posted by TheDJ®
where is msoften.dll? where is convertto YUY2?

cant see it anywhere on moviestacker? :cry:

I'm using Moviestacker Version bet a2.00

ConvertToYUY2 (without space) is a builtin instruction of avisynth

msoften can be find there :

http://www.avisynth.org/~warpenterprises/

TheDJ 05-20-2003 08:28 AM

Hi Phil, thx for the filter site! appreciate it!

Once i downlaod msoften.dll, where do i put it? and how do i select it in the script?

cheerz

TheDJ 05-20-2003 08:34 AM

OK, i've put it in the filter folder in moviestacker, but then how do i select it in the script plz?

ovg64 05-21-2003 09:19 AM

Open FS Editor and write:

LoadPlugin("C:\Program Files\MovieStacker\Filters\Msoften.dll")

after the Gripsize line:

Msoften(3,3,4,3,pre=1,post=1,speed=4,showmask=fals e)

something like that

TheDJ 05-21-2003 09:32 AM

Hi ovg64, thx for reply.

Now i can do it, thx :D

TheDJ® 8)

girv 05-23-2003 08:49 AM

Quote:

Originally Posted by Reno
...
SpaceDust()
TemporalCleaner(ythresh=1, cthresh=15)
sharpen(0.7)
mergechroma(blur(1.58))
mergeluma(blur(0.1))
BlockBuster(method="noise", detail_min=1, detail_max=100, variance=0.8, seed=0 )
MSoften(3,3,4,3,pre=1,post=1,speed=4,showmask=fals e)
...

Reno, just a few comments based on observations during my own anti-xvid-block experiments. Hope you don't mind!

1 - I found that blockbuster method="dither" gave better looking more stable results. Method="noise" gave me slowly changing patterns of dots on low detail areas.
2 - MSoften doesnt seem to process the very edges of the video so I add borders to give it "room to work", run MSoften, then remove the borders again.
3 - I like to use LanczosResize to maintain some extra sharpness as I find xvid sources can be very soft.

Can I ask what your thinking is behind the soften-sharpen-soften-soften approach in the above script?

FWIW heres my latest effort:
Code:

FluxSmooth() # maybe a FaeryDust() for LQ sources ?
AddBorders(32,32,32,32)
Blockbuster(method="dither",detail_min=1,detail_max=10,variance=0.3,seed=5823)
MSoften(3,3,4,3,pre=1,post=1,speed=4,showmask=false)
Crop(32,32,Width()-64,Height()-64)
LanczosResize(432,320)
BlockBuster(method="noise",detail_min=1,detail_max=8,variance=0.1,seed=5823)

The final BlockBuster line is experimental - I think it might help smooth out the blocky colour gradients you sometimes get with xvid sources. I'm still encoding the experimental videos though so I'm not sure.

FWIW I ran a StackVertical comparison of my script vs. yours and I liked my results better ;) See what you think!


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