View Full Version : How to deblock video
torwart
31st August 2011, 18:48
Hello.
My video is from internet and it is very blocky. I need to deblock it. I have used different filters(for virtual dub:msu deblock,msu smart deblock.for avisynth: mdeblock, unblock and etc.), but the quality is still bad. which filters is better to use???
Video : frame size=320*240, framerate=25, pixel_type=yv12, ext=flv1(h264).
http://s49.radikal.ru/i123/1108/10/13a4eda56727.jpg http://s50.radikal.ru/i130/1108/e3/7f35affed225.jpg
:thanks:
mike20021969
31st August 2011, 19:14
My video is from internet
Possibly too much information :D
torwart
2nd September 2011, 07:27
Thank you for answers! I have found great plugin to deblock video. It is a plugin for photoshop and it is here http://www.cs.tut.fi/~foi/SA-DCT/
Mounir
2nd September 2011, 08:08
Can you show the result you get, out of curiosity
torwart
2nd September 2011, 12:01
Here it is:
https://rapidshare.com/files/143335125/deblocked_video.avi
only thing i did except deblocking is addgrain(20,0,0).
Internet explorer can't download this file. I don't know why. opera does.
markanini
3rd September 2011, 15:41
The best deblocking I've seen is FFmpeg's 'uspp' filter. It works directly on the videos DCT. I've not found a way of interfaing with Avisynth though. You could see how the results would look by downloading the mplayer for windows package: http://forum.doom9.org/showthread.php?t=138725 And adding the ussp line to SMPlayers options:
http://i.imgur.com/78voB.png
torwart
3rd September 2011, 17:22
This filter is very good you are right, but for my situation(video is too blocky) photoshops plugin works better with shapes. It is shape adaptive filter and this is very good. The problem is it works too long. It takes 6 seconds to filter one 320*240 .bmp file. In easier situations your filter is number 1.
Now how to make ssp work with avisynth??? That's the problem for me.
markanini
3rd September 2011, 17:54
If you want to use uspp you'd have to download the MPlayer (or mencoder?)command line exe and process the video outside of Avisynth. You can then import the uspp processed video to Avisynth for for additional processing such as AddgrainC. BTW the value after uspp= is the quality value, goes from 0 to 8. 3 is the default value and runs almost realtime with low- res clips on my dual-core system. I wonder if quality could be further improved by contrasharpening in Avisynth. Sorry I can't be of more specific help. Perhaps the forum regulars can assist you should you need it.
poisondeathray
3rd September 2011, 18:16
I don't know if ffdshow's spp is different than Mplayer's; it has fast SPP and SPP deblocking with some other parameters under "postprocessing" mplayer method, have a look
So you could use that in avisynth DirectShowSource() if ffdshow is active in the filterchain
markanini
3rd September 2011, 19:15
For the sake of clarity:
spp[=quality[:qp[:mode]]]
Simple postprocessing filter that compresses and decompresses
the image at several (or - in the case of quality level 6 - all)
shifts and averages the results.
<quality>
0-6 (default: 3)
<qp>
Force quantization parameter (default: 0, use QP from
video).
<mode>
0: hard thresholding (default)
1: soft thresholding (better deringing, but blurrier)
4: like 0, but also use B-frames' QP (may cause flicker)
5: like 1, but also use B-frames' QP (may cause flicker)
uspp[=quality[:qp]]
Ultra simple & slow postprocessing filter that compresses and
decompresses the image at several (or - in the case of quality
level 8 - all) shifts and averages the results. The way this
differs from the behavior of spp is that uspp actually encodes &
decodes each case with libavcodec Snow, whereas spp uses a sim‐
plified intra only 8x8 DCT similar to MJPEG.
<quality>
0-8 (default: 3)
<qp>
Force quantization parameter (default: 0, use QP from
video).
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.