Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 19th December 2007, 21:23   #1  |  Link
Trash Master
Registered User
 
Join Date: Feb 2006
Posts: 79
Deblock in motion areas.

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
Trash Master is offline   Reply With Quote
Old 19th December 2007, 21:43   #2  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Tried some of the more complex deblockers, like SmoothDeblock, Deblock_QED, or SPP deblocking?
Dark Shikari is offline   Reply With Quote
Old 19th December 2007, 21:44   #3  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,698
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".
__________________
FAQs:Bond's AVC/H.264 FAQ
Site:Adubvideo
Adub is offline   Reply With Quote
Old 20th December 2007, 00:46   #4  |  Link
Trash Master
Registered User
 
Join Date: Feb 2006
Posts: 79
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)
Trash Master is offline   Reply With Quote
Old 20th December 2007, 00:49   #5  |  Link
Sagekilla
x264aholic
 
Join Date: Jul 2007
Location: New York
Posts: 1,752
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.
Sagekilla is offline   Reply With Quote
Old 20th December 2007, 00:50   #6  |  Link
Trash Master
Registered User
 
Join Date: Feb 2006
Posts: 79
It's a script a buddy gave me. I just added # to what I thought I didn't need.
Trash Master is offline   Reply With Quote
Old 20th December 2007, 01:11   #7  |  Link
Sagekilla
x264aholic
 
Join Date: Jul 2007
Location: New York
Posts: 1,752
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.
Sagekilla is offline   Reply With Quote
Old 20th December 2007, 01:14   #8  |  Link
Trash Master
Registered User
 
Join Date: Feb 2006
Posts: 79
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.
Trash Master is offline   Reply With Quote
Old 20th December 2007, 01:45   #9  |  Link
Didée
Registered User
 
Join Date: Apr 2002
Location: Germany
Posts: 5,389
OMG, what's that.

Excerpt:

Code:
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.
__________________
- We´re at the beginning of the end of mankind´s childhood -

My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!)
Didée is offline   Reply With Quote
Old 20th December 2007, 01:52   #10  |  Link
Trash Master
Registered User
 
Join Date: Feb 2006
Posts: 79
Thanks for the input Didee. The video is progressive. I will make the ipp change. I will also try 1 deblocker at a time.
Trash Master is offline   Reply With Quote
Old 20th December 2007, 02:01   #11  |  Link
cestfait
Registered User
 
cestfait's Avatar
 
Join Date: Jul 2007
Posts: 70
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)
cestfait is offline   Reply With Quote
Old 20th December 2007, 02:03   #12  |  Link
Trash Master
Registered User
 
Join Date: Feb 2006
Posts: 79
I'll give that a shot here soon. Thanks cestfait.
Trash Master is offline   Reply With Quote
Old 20th December 2007, 02:35   #13  |  Link
cestfait
Registered User
 
cestfait's Avatar
 
Join Date: Jul 2007
Posts: 70
no problem.
cestfait is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 05:51.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.