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
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 31st August 2011, 18:48   #1  |  Link
torwart
Registered User
 
Join Date: Jul 2010
Location: Tbilisi
Posts: 75
How to deblock video

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).







Last edited by torwart; 2nd September 2011 at 09:16.
torwart is offline   Reply With Quote
Old 31st August 2011, 19:14   #2  |  Link
mike20021969
Registered User
 
Join Date: Jul 2007
Location: UK
Posts: 336
Quote:
Originally Posted by torwart View Post
My video is from internet
Possibly too much information
mike20021969 is offline   Reply With Quote
Old 2nd September 2011, 07:27   #3  |  Link
torwart
Registered User
 
Join Date: Jul 2010
Location: Tbilisi
Posts: 75
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/
torwart is offline   Reply With Quote
Old 2nd September 2011, 08:08   #4  |  Link
Mounir
Registered User
 
Join Date: Nov 2006
Posts: 773
Can you show the result you get, out of curiosity
Mounir is offline   Reply With Quote
Old 2nd September 2011, 12:01   #5  |  Link
torwart
Registered User
 
Join Date: Jul 2010
Location: Tbilisi
Posts: 75
Here it is:

https://rapidshare.com/files/1433351...cked_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.

Last edited by torwart; 2nd September 2011 at 12:36.
torwart is offline   Reply With Quote
Old 3rd September 2011, 15:41   #6  |  Link
markanini
Registered User
 
Join Date: Apr 2006
Posts: 299
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:
markanini is offline   Reply With Quote
Old 3rd September 2011, 17:22   #7  |  Link
torwart
Registered User
 
Join Date: Jul 2010
Location: Tbilisi
Posts: 75
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.
torwart is offline   Reply With Quote
Old 3rd September 2011, 17:54   #8  |  Link
markanini
Registered User
 
Join Date: Apr 2006
Posts: 299
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.
markanini is offline   Reply With Quote
Old 3rd September 2011, 18:16   #9  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,377
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
poisondeathray is offline   Reply With Quote
Old 3rd September 2011, 19:15   #10  |  Link
markanini
Registered User
 
Join Date: Apr 2006
Posts: 299
For the sake of clarity:

Quote:
Originally Posted by http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.txt
Code:
       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).
markanini is offline   Reply With Quote
Reply


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 04:00.


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