Log in

View Full Version : Let's play deblocking


magiblot
7th September 2016, 15:40
Hi there. Here I bring you some footage that needs deblocking, and I would like you to give me a hand. Of course that I have searched for other deblocking posts in the forum. Specially this (http://forum.doom9.org/showthread.php?t=173577), from which I have tried some scripts, and have found some improvements. But still I think I could get better results.

Here (https://mega.nz/#!w9dTxJxT!2g2RSrOOxMdJ8D-8tipBbpnsvP3Gav7Pa7CjwOhwgPY) is a video sample. It is an anime movie with low compression artifacts, which become very noticeable and unpleasant after sharpening. But for this very same reason I think it should be possible to remove them, at least a bit.

It seems to be that most of the deblocking filters I could find are not effective against this problem. Therefore I appeal to your large knowledge and experience to see if there is a solution.
Here are some functions I have tried up to now:

#Source video size is 480x360
Spline64Resize(384,288)
ASharp(0.0,10.0)
Spline64Resize(960,720)
ASharp(32.0,0.1,-0.9,true)
PointResize(480,360)
It's just an easy way to blur the image (which is what most deblockers do).

QTGMC(InputType=1, Preset="Medium", EzDenoise=1.5)
gradfun3()
Doesn't fix the blocking, instead makes it sharper.

DeHaloH()
RemoveDirtMC_SE(gpu=false,twopass=false,clmode=0)
funkydeblock(quant=10)
mc_spudsmod(frames=3,starfield=true,chroma=true)
dfttestMC()
GradFun3()
Probably the best, but extremely slow. It can take more than half an hour to render a single frame. Therefore, it's not worth trying. I can use RemoveDirt alone as well, which may be the filter with more noticeable results.

After deblocking, I usually add FFT3DFilter(Sharpen=1.0, sigma=5.0, interlaced=false) to make the drawing look better.

I have also tried MSU Cartoon Restore (http://www.compression.ru/video/cartoon_restore/index_en.htm) filter, which appearently does what I am looking for, but actually makes the video look low-bitrated. And as I am trying to "restore" the source, I cannot accept that.

Here I give you some snapshots of the raw video:

http://i.imgur.com/xLb1KCJ.pnghttp://i.imgur.com/nUNqBU5.pnghttp://i.imgur.com/bq8n2Cz.png

And then it becomes like this after sharpening (+ other fixes):

http://i.imgur.com/jMJmfS2.pnghttp://i.imgur.com/mzH4UlA.pnghttp://i.imgur.com/dUIJOkD.png

Thank you very much.

UPDATE:

I have found this to be extremely useful for what I am looking for:

mc_spudsmod(frames=4, strength=2, starfield=true, anime=true, chroma=true, aggressive=false, gpu=true)
Toon(strength=0.6)
LSFMod(strength=50)
AAA()
FFT3DFilter(Sharpen=0.5, sigma=2.0, interlaced=false)