McCauley
1st February 2008, 12:11
Hello everyone,
i'm currently searching for a way to reduce blocking only in dark areas without smoothing the rest of my picture. The blocking isn't really a problem for the image quality, since the blocks are so dark, they aren't affecting the PQ much, but obviously they are messing up the compressibility.
A while ago i stumbled over this (http://forum.doom9.org/showpost.php?p=1033464&postcount=2) thread, i remembered it and modified the function to fit my needs.
Unfortunatelly it does more or less nothing, no matter how high the deblocking values are set.
src = AVCSource("bla.dga", deblock=false).assumefps(24000,1001).trim(107,0)
dx = 1280
dy = 692
sf= 1.3
th_low = 18
th_high = 28
a = src.deblock_qed(quant1=20,quant2=36,aOff1=2,bOff1=4,aOff2=4,bOff2=8).Crop(2, 22, -2, -30)
b = src.deblock_qed(quant1=80,quant2=96,aOff1=2,bOff1=4,aOff2=4,bOff2=8).Crop(2, 22, -2, -30) #i know these are very high values, just for testing purposes
dmask = a.levels(th_low,1.0,th_high,255,0,false)
a.mt_merge(b,dmask,U=3,V=3, luma=true)
SootheX(LSFs36(ss_x=sf, ss_y=sf, smode=3, strength=110, overshoot=1, dest_x = dx, dest_y = dy ),Spline36resize( dx, dy ), 30)
tweak(bright=50, cont=1.8) #only for making blocking more visible
Has anyone some suggestions how to improve my script, respectively make it working?
Regards and thanks in advance
McCauley
i'm currently searching for a way to reduce blocking only in dark areas without smoothing the rest of my picture. The blocking isn't really a problem for the image quality, since the blocks are so dark, they aren't affecting the PQ much, but obviously they are messing up the compressibility.
A while ago i stumbled over this (http://forum.doom9.org/showpost.php?p=1033464&postcount=2) thread, i remembered it and modified the function to fit my needs.
Unfortunatelly it does more or less nothing, no matter how high the deblocking values are set.
src = AVCSource("bla.dga", deblock=false).assumefps(24000,1001).trim(107,0)
dx = 1280
dy = 692
sf= 1.3
th_low = 18
th_high = 28
a = src.deblock_qed(quant1=20,quant2=36,aOff1=2,bOff1=4,aOff2=4,bOff2=8).Crop(2, 22, -2, -30)
b = src.deblock_qed(quant1=80,quant2=96,aOff1=2,bOff1=4,aOff2=4,bOff2=8).Crop(2, 22, -2, -30) #i know these are very high values, just for testing purposes
dmask = a.levels(th_low,1.0,th_high,255,0,false)
a.mt_merge(b,dmask,U=3,V=3, luma=true)
SootheX(LSFs36(ss_x=sf, ss_y=sf, smode=3, strength=110, overshoot=1, dest_x = dx, dest_y = dy ),Spline36resize( dx, dy ), 30)
tweak(bright=50, cont=1.8) #only for making blocking more visible
Has anyone some suggestions how to improve my script, respectively make it working?
Regards and thanks in advance
McCauley