Log in

View Full Version : Postprocessing with AviSynth


PlazzTT
6th November 2004, 20:42
Hi,

I've recorded a video from digital satellite, but there are some MPEG artefacts on it (not broadcast at a high enough bitrate).

I'm encoding it to XviD via AviSynth, but I'd like to do a Luma and Chroma Deblock and Dering beforehand to get rid of the MPEG2 artfecting as much as possible.

Can I do this with AviSynth, or is there a better plugin / function for it that is good for removing MPEG-style artefacts?

Thanks.

scharfis_brain
6th November 2004, 21:16
please, read the documentation of mpeg2dec3 or dgdecode.dll

there you'll find the cpu-parameter described. it is for deblocking and deringing.

cpu=4 -> deblock luma&chroma
cpu=6 -> same as 4 plus deringing

PlazzTT
7th November 2004, 03:10
I should have mentioned that I recorded the video via S-video to MJPEG (Quality 19), so I'm using AviSource to load the AVI file into AviSynth, and I don't think Avisource has a cpu-parameter.

ObiKenobi
7th November 2004, 03:56
This site should be helpful to you: http://www.avisynth.org/warpenterprises/ Has a pretty exhaustive list of avisynth filters.

Video Dude
7th November 2004, 05:17
Originally posted by PlazzTT
I should have mentioned that I recorded the video via S-video to MJPEG (Quality 19), so I'm using AviSource to load the AVI file into AviSynth, and I don't think Avisource has a cpu-parameter.

You can use BlindPP (which is part of mpeg2dec3 or dgdecode.dll like scharfis_brain suggested) on AviSources. If your AVI is not YV12, you will need to use ConvertToYV12() first.


AviSource("C:\video.avi")
ConvertToYV12()
BlindPP(cpu=4)


There is also a new deblocker called SmoothD.
http://forum.doom9.org/showthread.php?s=&threadid=84355
It is still in early development, but its worth a look at.

PlazzTT
7th November 2004, 14:32
Thanks, Video Dude.

The SmoothD filter worked a treat!