PDA

View Full Version : cleaning up macoblocks*


wiak
30th July 2006, 10:49
http://upload.georgeownsme.com/thumbs.php/1749.png (http://upload.georgeownsme.com/image.php/1749.png)http://upload.georgeownsme.com/thumbs.php/1750.png (http://upload.georgeownsme.com/image.php/1750.png)http://upload.georgeownsme.com/thumbs.php/1751.png (http://upload.georgeownsme.com/image.php/1751.png)
what filters do i need to use to clean tese microblocks/microlines up?

neuron2
30th July 2006, 16:00
Tell us more specifically what artifacts you are worried about. I don't see anything I would be bothered about. BTW, there is no such term as 'microblock'.

Manao
30th July 2006, 17:18
neuron2: click on the screenshots, you'll get the unresized one, artifacts are quite visible on these one.

wiak : what kind of source is it ? is it already filtered ?

neuron2
30th July 2006, 18:10
You know, I am intelligent enough to know to click on a graphic to get the full-sized one. But never mind, if you don't want to explain the problem, I'll just go do laundry or something.

Manao
30th July 2006, 18:13
The left picture seems made of horizontal 8x1 blocks. On the right one, one can notice also 8x16 blocks ( still made with those 8x1 lines ). And the edges overall seem messy. It seems to come from a low bitrate DV...

Mug Funky
30th July 2006, 18:23
hmm... perhaps a DV file (.mov?) has been saved out to quicktime animation codec with a lower quality setting? i see the line effect in animation codec quite a bit, and if DV or MPEG-2 had macroblocks in it, then the line effect would probably tend to sit inside the 8x8 blocks of DV.

but that's a big guess.

we'll need more information about the source (a small unfiltered sample of a few frames is best).

i think a deblocker like blindpp would give you something to start with though.

wiak
31st July 2006, 05:15
neuron2: click on the screenshots, you'll get the unresized one, artifacts are quite visible on these one.

wiak : what kind of source is it ? is it already filtered ?
it is a VHS source run thru a avs script

import("C:\plugins\LimitedSharpenFaster.avs")
import("C:\plugins\FixChromaBleeding.avs")

mpeg2source("L:\WORK\mol94.mpg.1.d2v")

DeCross()

tdeint(mode=0,order=1,AP=30)

TTempSmooth(lmdiff=1,cmdiff=2,strength=1,scthresh=12)

mycleaner()

#DeFreq(fx=?,fy=?)

colormatrix()

frfun7(lambda=0.5,TUV=4)

FixChromaBleeding()

crop(20,0,668,566)

LimitedSharpenFaster(dest_x=640,dest_y=496,strength=120,edgemode=1)


function mycleaner(clip source){
backward_vectors2 = source.MVAnalyse(isb = true, lambda = 1000, delta = 2)
backward_vectors1 = source.MVAnalyse(isb = true, lambda = 1000, delta = 1)
forward_vectors1 = source.MVAnalyse(isb = false, lambda = 1000, delta = 1)
forward_vectors2 = source.MVAnalyse(isb = false, lambda = 1000, delta = 2)
return source.MVDenoise(backward_vectors1, backward_vectors1, forward_vectors1, forward_vectors2, tht = 10, thsad = 150)
}

Function FixChromaBleeding (clip input) {

area = input.tweak(sat=4.0).VtoY.ReduceBy2
red = area.Levels(255,1.0,255,255,0)
blue = area.Levels(0,1.0,0,0,255)
mask = MergeLuma(red, blue, 0.5).Levels(250,1.0,250,255,0)
mask = mask.DEdgeMask(0,255,0,255,"0 0 0 1 0 0 0 0 0").DEdgeMask(0,255,0,255,"1 1 1 1 1 1 0 0 0")
mask = mask.BilinearResize(Width(input),Height(input)).Levels(10,1.0,10,0,255)
input_c = input.ChromaShift(C=-4).tweak(sat=0.8)
return input.overlay(input_c,mask=mask,mode="blend",opacity=1)
}

the avs script isnt the 100% as the harddrive the source file was on become corrupt some days ago :(
here is how i did cap it
a VHS player (some old crap > thru ATI Theater 550 PRO > MPEG-2 > .mpg > .avs with the filters above > huffyuv.avi ^^

wiak
31st July 2006, 05:48
here is a 11sec sample
http://nwgat.net/1/hmm.avi
*huffyuv* @ 720x576

setarip_old
31st July 2006, 08:55
Actually, I think the enlarged versions of the three images look pretty darn good for a VHS conversion ;>}

neuron2
31st July 2006, 14:20
That's what I was trying to say.

There's definite filteritis here and obviously you're going to get some blocking from a hardware MPEG2 encode.