PDA

View Full Version : remove moving blocking


Suchy
24th May 2006, 21:29
Hi.

I have anime wich blocking, but blocks aren't constant. Blocks fade in/out (appear and disappear) near other blocks, and sometimes moving. This sittuation exist in some scenes of this anime. It looks like moving blocking in chroma layer. It's hard to remove.

I tried add grain, and later blend it:


Blockbuster("noise",block_size=12)
Blockbuster("noise",block_size=10)
UnDot()
MSmooth(threshold=3,Strength=10)
TemporalSoften(3,4,8,1,2)
Convolution3D(preset="animeBQ")
FluxSmoothST()
UnDot()

Sometimes I add
MSharpen(threshold=7)
after FluxSmoothST.

Before compressing (on preview in MPC) it looks quite nice, but after encoding it, blocks appear again (sometimes even bigger).

I have quant 2-6, no AdaptiveQuant, but CartoonMode enabled.

Any ideas?


FILES:
Source (http://www.manganime.avx.pl/encode/sample.avi) 2.1 MB
Filtered without sharpen (http://www.manganime.avx.pl/encode/filtered.avi) 1.6 MB
Filtered with sharpen (http://www.manganime.avx.pl/encode/filtered (sharpen).avi) 1.7 MB

foxyshadis
24th May 2006, 21:49
Usually shifting textures and lots of blocks just means you're not using nearly enough bitrate. Maybe you could switch to x264, which is much more efficient at low bitrates? Or at least try using sharktooth's ultra-low bitrate matrix.

Suchy
25th May 2006, 15:32
But it's werid because I set size to about 175B (with included 10 MB audio) and I got video stream not 165 but 120 MB.
So there is some bitrate free.

But I try other quant matrix, as You advice me.

P.S.
Unfortunatelly x264 can't be :(
only XViD (I use version 1.2)

P.S.S.
I noticed that when I make video more bright (in XviD decoder settings, so it's before filters), blocks are better filtered (but video lose details). There is no point, make it darker after filtering, because blocks appear again.

Suchy
26th May 2006, 10:53
Unfortunatelly using low matrices (ultra low too) did't help me a lot.

techmule
26th May 2006, 11:05
did you use "cpu=4" in your mpeg2source(...) command, if not try it.

Warpman
26th May 2006, 11:27
disable cartoon mode...
Itīs not recommend to use it for Anime. (exept very old ones)

foxyshadis
26th May 2006, 11:42
The shifting blocks are actually caused by blockbuster (which should be used once and goes at the end, not beginning). Use mode "dither" to prevent that, and while you're at it, raise the low percentage, because you're graining up flat areas and it looks really bad. Or just toss it and add debanding and light noise on playback, like I do. Try both with and without cartoon mode to see if it messes this show up.

Undot is pointless after those filters, there will be no dots left to undot. And perhaps Dup in conjunction with TemporalSoften.

Dup(threshold=.5,chroma=false,maxcopies=20,copy=true,blend=true)

Anywhere in the script, not sure where it would help most.

The source is encoded so low that it's hard to tell anything about it for sure; if it's the actual source, well, you probably don't need that many filters. If the source is a dvd, that xvid encode doesn't mean anything.

Suchy
27th May 2006, 11:29
Source is other Xvid.
I will remove Undot and take into account your advices.

I answer how it works, soon.

thx