View Full Version : Deblock in motion areas.
Trash Master
19th December 2007, 21:23
I am trying to deblock some nasty videos. My script does a good job but where there is motion it doesn't clean those. Is it possible to get rid of those? Thanks. -TM
Dark Shikari
19th December 2007, 21:43
Tried some of the more complex deblockers, like SmoothDeblock, Deblock_QED, or SPP deblocking?
Adub
19th December 2007, 21:44
Post your script. We have to know what you are doing first before we can help you.
And yes, it should be possible to deblock "when there is motion".
Trash Master
20th December 2007, 00:46
SetWorkingDir("C:\Program Files\AviSynth 2.5\plugins")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Decomb522.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\deblock.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\ColorMatrix.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DctFilter.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mt_maskTools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MaskTools.dll")
#LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\AddGrainC.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\hqdn3d.dll")
#LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\RemoveGrain.dll")
#LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\RemoveGrains.dll")
#LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\RemoveGrainsse2.dll")
#LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Repairsse2.dll")
#LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\RemoveGrainsse3.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\FluxSmooth.dll")
#LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Convolution3d.dll")
#import("c:\Program Files\AviSynth 2.5\plugins\addgrain.avs")
import("C:\Program Files\AviSynth 2.5\plugins\DeBlock_QED.avs")
#import("C:\Program Files\AviSynth 2.5\plugins\vmToon-v0.74.avsi")
Import("C:\Program Files\AviSynth 2.5\plugins\LimitedSharpenFaster.avsi")
MPEG2source("D:\TV Caps\yo.d2v",ipp=true,cpu=6,cpu2="xxxxoo",info=3)
Colormatrix(hints=true)
Deblock_QED(quant1=18,quant2=24,aOff1=2,bOff1=2,aOff2=4,bOff2=4)
Deblock(quant=36)
#(quant1=18,aOff1=16,quant2=28,aOff2=11)
#(quant1=18,quant2=24,aOff1=2,bOff1=2,aOff2=4,bOff2=4)
hqdn3d()#(0,0,3,3)
FluxSmoothST(10,15)
#Convolution3d("moviehq")
#AddBorders(16,0,16,0)
#Lanczos4resize(720,480)
#vmtoon(sharpen=true)
LimitedSharpenFaster(ss_x=1.0, ss_y=1.0, Smode=4, strength=250, overshoot=0, soft=60)
#AddGrainC(7)
Sagekilla
20th December 2007, 00:49
Wow.. a lot of those things seem extremely uneeded. You can get rid of all those loadplugins and change the extension on your avs' to .avsi so they autoload.
Trash Master
20th December 2007, 00:50
It's a script a buddy gave me. I just added # to what I thought I didn't need.
Sagekilla
20th December 2007, 01:11
You don't need those loadplugins at all, the ones you commented out will get loaded regardless since Avisynth will autoload plugins in the working plugin directory, which is again a preset and unnecessary to define unless you placed it somewhere else.
Avisynth = auto loads all plugins in it's plugin directories, so it doesn't matter whether you have the loadplugin() or if you do have it there and uncommented.
Trash Master
20th December 2007, 01:14
ok. I'll simplify it here in a bit. I would like to know if there is anything I can change or add to the script to make remove the blocks when there is motion. I am trying to clean up the parody GI JOE PSA's so they are watchable.
Didée
20th December 2007, 01:45
OMG, what's that.:D
Excerpt:
MPEG2source("D:\TV Caps\yo.d2v",ipp=true,cpu=6,cpu2="xxxxoo",info=3)
Colormatrix(hints=true)
Deblock_QED(quant1=18,quant2=24,aOff1=2,bOff1=2,aOff2=4,bOff2=4)
Deblock(quant=36)
1) you set DGDecode to use interlaced processing (ipp=true).
Furtheron in the script, there is lots of processing that is only valid for progressive content. Now, is the source interlaced, or is it not? If it's not, set ipp=false. (And if it is indeed interlaced, the whole script is borked crappola...)
1a) cpu=6 is the same as cpu2="xxxxxx". cpu2="xxxxoo" is the same as cpu=4. Which of both do you want to use?
2) You use a chain of three deblockers: DGDecode-deblocking, then Deblock_QED(), then Deblock(). That's pretty much pointless. Deblocking filters need to "reckognize" blocking. It is likely to happen that one deblocker - although eventually not acting efficiently enough for visual pleasance - alters the content by so much that the upfollowing deblockers *cannot* reckognize the blocks anymore, therefore they become inefficient.
For making a reasonable start, you should find & use one deblocker that removes all (or at least a major part) of the blocking. After having found that, you can make your way to add more stuff.
Throwing filters at a source blindly most times will not succeed.
Trash Master
20th December 2007, 01:52
Thanks for the input Didee. The video is progressive. I will make the ipp change. I will also try 1 deblocker at a time.
cestfait
20th December 2007, 02:01
maybe this is kinda dumb, but I've found anti-aliasing scripts to work better for a lot of blocking than actual deblockers...
aaa or aa are useful for bad blocking sections...
(try searching "anime anti-aliasing" or some such)
Trash Master
20th December 2007, 02:03
I'll give that a shot here soon. Thanks cestfait.
cestfait
20th December 2007, 02:35
no problem. :D
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.