Log in

View Full Version : Cleaning up over compressed video


Spudwiser
15th October 2007, 23:13
I have a video file and it was over compressed to say the least. From the looks of it, it was converted from one format to another a couple of times. Anyway I am new when it comes to avisynth, but i have used it enough to know it rocks.

Here is what I am using as a script:
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
Avisource("C:\videot.avi")
ConvertToYV12()
BilinearResize(720,480)
BlindPP(quant=12)
Deblock()
DeGrainMedian(limitY=4, limitUV=6, mode=1, interlaced=false)
ChromaShift(U=-6, V=-6)

It is working, but it is still exceptionally blocky (but i can live with it). I was wondering if there is anything else I could add/subtract? The ultimate goal is to get to mpeg2 to author a dvd. I did search by the way.... before i am hung up by my toes :p

Thanks in advance
Spudwiser

Dark Shikari
15th October 2007, 23:50
You can always raise the strength of Deblock().

I'd suggest you use Deblock before, not after, you resize.

I've found one good way to simulate detail is to re-add grain at the end of the filter chain using something like AddGrain(30,0.2,0.2).

Terranigma
16th October 2007, 00:10
That's insanity. Using 2 different deblockers that deblocks using different algorithms at the same time. Why would 1 do such a thing?
I bet the outcome is void of detail.

Spudwiser
16th October 2007, 00:21
yea sorry, i just noticed that. I thought I had removed that from my final script. Thanks for the catch. Also I will try the add gain as well.

I usually start with an experimental script and move things around in my final one.

Terranigma
16th October 2007, 00:26
Also I will try the add gain as well.
Or perhaps *.mp4 guy's grain script, filmgrain (http://forum.doom9.org/showpost.php?p=949783&postcount=23)?
;)

Spudwiser
16th October 2007, 02:31
At the risk of sounding like a total noob, do I make that into an avs file and load it as a plug-in?

J_Darnley
16th October 2007, 08:22
Save the text to an avs file then use Import("filmgrain.avs") or just copy and paste the function into your script.

midelic
16th October 2007, 23:09
Use for example :
blindpp(quant=4,cpu=6)#you can tweak quant=2-12
but from old plugin mpeg2dec3.dll ...not dgdecode
http://nic.dnsalias.com/mpeg2dec3.html
You'll see the difference.

themostestultimategenius
16th October 2007, 23:33
At the risk of sounding like a total noob, do I make that into an avs file and load it as a plug-in?
Save it as a .avsi file and put it into your plugins folder.