StainlessS
8th October 2010, 23:45
Still downloading, but might I suggest a smaller sample.
54 MB for 15 seconds is a lot, perhaps compression might help.
I'm on mobile broadband, and right now, after 7 mins I'm
65% though the download, not to mention cost of such.
would not normally have to wait this long but not good
connection today.
If you dont have a AVI lossless codec, suggest HuffYUV.
EDIT: also, can scrub the 1.5 Mb/s audio, aint useful.
StainlessS
9th October 2010, 18:47
OK, perhaps HuffYUV was not a good choice, (was suffering from mild
alcohol poisoning last night). Loading original "Internal DV Decoder"
codec clip into VD, select "No Audio", "Direct Stream Copy", to
another file. Compressing as results: ZIP=39MB, RAR=37MB,
7ZIP=36MB, suggest about 5 seconds should be ample and result
about 12-13MB.
Had a look at BMP in paint, pattern seems to repeat every 8 lines.
Dont really know what I would do with this, If it were my problem.
This thread:
http://forum.doom9.org/showthread.php?t=121197 mentions something
called Vertical Cleaner, have just downloaded and will have a play with it.
EDIT: Yes absolutely correct, some kind of moire I think.
poisondeathray
10th October 2010, 01:34
One approach might be to use mp4guy's Destripe function on 90 degree rotated fields (the function was intended for vertical bands). Here is the original thread
http://forum.doom9.org/showthread.php?t=154863
It would be better to PM him and ask for his expert advice, but here is my hack attempt. There are still some residual "bands", so maybe you can play with the settings to improve it.
You might want to use other filters to denoise a little bit better and address the dirt & scratches (maybe use descratch() , removedirtmc() and/or related functions ) , maybe fix the flickering as well
These screenshots have been deinterlaced for display purposes, but the script leaves it interlaced (presumably for DVD)
video sample
http://www.mediafire.com/?ng56lqo5pl8t1jn
Original
http://i52.tinypic.com/2ithq15.png
Script
http://i54.tinypic.com/2yxiux3.png
mpeg2source("Doom9 Excerpt (2nd Version).d2v")
assumetff()
separatefields
greyscale()
turnleft
DeStripe(3,0,100)
DeStripe(2,0,800)
DeStripe(1,1,800)
DeStripe(2,0,400)
DeStripe(1,1,400)
turnright
a=last
f1=a.SelectEven().MCTemporalDenoise(settings="medium",strength=200).LSFMod(strength=60)
f2=a.SelectOdd().MCTemporalDenoise(settings="medium",strength=200).LSFMod(strength=60)
Interleave(f1,f2)
Weave()
SmoothLevels(18,1.1,235,0,255,chroma=100)
#thr is strength, rad is "how big are the (whatevers)" offset is "how far apart are they" rad goes from 1 to 5, offset from 1 to 4, thr from 1 to bignumber
function DeStripe(Clip C, int "rad", int "offset", int "thr")
{
rad = Default(rad, 2)
offset = Default(offset, 0)
thr_ = Default(thr, 256)
Blurred = Rad == 1 ? C.Mt_Convolution(Horizontal=" 1 1 1 ", vertical = " 1 ", u=1, v=1) : C
Blurred = Rad == 2 ? offset == 0 ? C.Mt_Convolution(Horizontal=" 1 1 1 1 1 ", vertical = " 1 ", u=1, v=1) : C.Mt_Convolution(Horizontal=" 1 0 1 0 1 ", vertical = " 1 ", u=1, v=1) : Blurred
Blurred = Rad == 3 ? offset == 0 ? C.Mt_Convolution(Horizontal=" 1 1 1 1 1 1 1 ", vertical = " 1 ", u=1, v=1) : offset == 1 ? C.Mt_Convolution(Horizontal=" 1 1 0 1 0 1 1 ", vertical = " 1 ", u=1, v=1) : C.Mt_Convolution(Horizontal=" 1 0 0 1 0 0 1 ", vertical = " 1 ", u=1, v=1) : Blurred
Blurred = Rad == 4 ? offset == 0 ? C.Mt_Convolution(Horizontal=" 1 1 1 1 1 1 1 1 1 ", vertical = " 1 ", u=1, v=1) : offset == 1 ? C.Mt_Convolution(Horizontal=" 1 1 1 0 1 0 1 1 1 ", vertical = " 1 ", u=1, v=1) : offset == 2 ? C.Mt_Convolution(Horizontal=" 1 1 0 0 1 0 0 1 1 ", vertical = " 1 ", u=1, v=1) : C.Mt_Convolution(Horizontal=" 1 0 0 0 1 0 0 0 1 ", vertical = " 1 ", u=1, v=1) : Blurred
Blurred = Rad == 5 ? offset == 0 ? C.Mt_Convolution(Horizontal=" 1 1 1 1 1 1 1 1 1 1 1 ", vertical = " 1 ", u=1, v=1) : offset == 1 ? C.Mt_Convolution(Horizontal=" 1 1 1 1 0 1 0 1 1 1 1 ", vertical = " 1 ", u=1, v=1) : offset == 2 ? C.Mt_Convolution(Horizontal=" 1 1 1 0 0 1 0 0 1 1 1 ", vertical = " 1 ", u=1, v=1) : offset == 3 ? C.Mt_Convolution(Horizontal=" 1 1 0 0 0 1 0 0 0 1 1 ", vertical = " 1 ", u=1, v=1) : C.Mt_Convolution(Horizontal=" 1 0 0 0 0 1 0 0 0 0 1 ", vertical = " 1 ", u=1, v=1) : Blurred
Diff = Mt_Makediff(C, Blurred)
THR=string(thr_)
MedianDiff = Rad == 1 ? MT_Luts(Diff, Diff, mode="med", pixels = " 0 0 1 0 -1 0 " , expr = " X Y - X Y - X Y - abs 1 + * X Y - abs 1 + "+THR+" 1 >= "+THR+" 0.5 ^ "+THR+" ? + / - 128 +", u=1,v=1) : Diff
MedianDiff = Rad == 2 ? offset == 0 ? MT_Luts(Diff, Diff, mode="med", pixels = " 0 0 1 0 -1 0 2 0 -2 0 " , expr = " X Y - X Y - X Y - abs 1 + * X Y - abs 1 + "+THR+" 1 >= "+THR+" 0.5 ^ "+THR+" ? + / - 128 +", u=1,v=1) : MT_Luts(Diff, Diff, mode="med", pixels = " 0 0 2 0 -2 0 " , expr = " X Y - X Y - X Y - abs 1 + * X Y - abs 1 + "+THR+" 1 >= "+THR+" 0.5 ^ "+THR+" ? + / - 128 +", u=1,v=1) : MedianDiff
MedianDiff = Rad == 3 ? offset == 0 ? MT_Luts(Diff, Diff, mode="med", pixels = " 0 0 1 0 -1 0 2 0 -2 0 3 0 -3 0 " , expr = " X Y - X Y - X Y - abs 1 + * X Y - abs 1 + "+THR+" 1 >= "+THR+" 0.5 ^ "+THR+" ? + / - 128 +", u=1,v=1) : offset == 1 ? MT_Luts(Diff, Diff, mode="med", pixels = " 0 0 2 0 -2 0 3 0 -3 0 " , expr = " X Y - X Y - X Y - abs 1 + * X Y - abs 1 + "+THR+" 1 >= "+THR+" 0.5 ^ "+THR+" ? + / - 128 +", u=1,v=1) : MT_Luts(Diff, Diff, mode="med", pixels = " 0 0 3 0 -3 0 " , expr = " X Y - X Y - X Y - abs 1 + * X Y - abs 1 + "+THR+" 1 >= "+THR+" 0.5 ^ "+THR+" ? + / - 128 +", u=1,v=1) : MedianDiff
MedianDiff = Rad == 4 ? offset == 0 ? MT_Luts(Diff, Diff, mode="med", pixels = " 0 0 1 0 -1 0 2 0 -2 0 3 0 -3 0 4 0 -4 0 " , expr = " X Y - X Y - X Y - abs 1 + * X Y - abs 1 + "+THR+" 1 >= "+THR+" 0.5 ^ "+THR+" ? + / - 128 +", u=1,v=1) : offset == 1 ? MT_Luts(Diff, Diff, mode="med", pixels = " 0 0 2 0 -2 0 3 0 -3 0 4 0 -4 0 " , expr = " X Y - X Y - X Y - abs 1 + * X Y - abs 1 + "+THR+" 1 >= "+THR+" 0.5 ^ "+THR+" ? + / - 128 +", u=1,v=1) : offset == 2 ? MT_Luts(Diff, Diff, mode="med", pixels = " 0 0 3 0 -3 0 4 0 -4 0 " , expr = " X Y - X Y - X Y - abs 1 + * X Y - abs 1 + "+THR+" 1 >= "+THR+" 0.5 ^ "+THR+" ? + / - 128 +", u=1,v=1) : MT_Luts(Diff, Diff, mode="med", pixels = " 0 0 4 0 -4 0 " , expr = " X Y - X Y - X Y - abs 1 + * X Y - abs 1 + "+THR+" 1 >= "+THR+" 0.5 ^ "+THR+" ? + / - 128 +", u=1,v=1) : MedianDiff
MedianDiff = Rad == 5 ? offset == 0 ? MT_Luts(Diff, Diff, mode="med", pixels = " 0 0 1 0 -1 0 2 0 -2 0 3 0 -3 0 4 0 -4 0 5 0 -5 0 " , expr = " X Y - X Y - X Y - abs 1 + * X Y - abs 1 + "+THR+" 1 >= "+THR+" 0.5 ^ "+THR+" ? + / - 128 +", u=1,v=1) : offset == 1 ? MT_Luts(Diff, Diff, mode="med", pixels = " 0 0 2 0 -2 0 3 0 -3 0 4 0 -4 0 5 0 -5 0 " , expr = " X Y - X Y - X Y - abs 1 + * X Y - abs 1 + "+THR+" 1 >= "+THR+" 0.5 ^ "+THR+" ? + / - 128 +", u=1,v=1) : offset == 2 ? MT_Luts(Diff, Diff, mode="med", pixels = " 0 0 3 0 -3 0 4 0 -4 0 5 0 -5 0 " , expr = " X Y - X Y - X Y - abs 1 + * X Y - abs 1 + "+THR+" 1 >= "+THR+" 0.5 ^ "+THR+" ? + / - 128 +", u=1,v=1) : offset == 3 ? MT_Luts(Diff, Diff, mode="med", pixels = " 0 0 4 0 -4 0 5 0 -5 0 " , expr = " X Y - X Y - X Y - abs 1 + * X Y - abs 1 + "+THR+" 1 >= "+THR+" 0.5 ^ "+THR+" ? + / - 128 +", u=1,v=1) : MT_Luts(Diff, Diff, mode="med", pixels = " 0 0 5 0 -5 0 " , expr = " X Y - X Y - X Y - abs 1 + * X Y - abs 1 + "+THR+" 1 >= "+THR+" 0.5 ^ "+THR+" ? + / - 128 +", u=1,v=1) : MedianDiff
ReconstructedMedian = mt_makediff(Diff, MedianDiff)
Mt_AddDiff(Blurred, ReconstructedMedian)
Return(Mergechroma(Last, C, 1))
}
StainlessS
10th October 2010, 05:17
Hi MattW,
Find below a rough & ready plugin, it lightens up the dark lines and darkens down the
light lines, far from brilliant and a bit basic but does improve a little. Perhaps it might
prove useful before using the DeStripe script. Anyway, cant do any harm to take
a gander. I only spend about an hour or two on it, so it is not anything special.
Name Test.dll
Test(range=6,lighten=true,darken=true)
#range 1 and above
Anyway, it does remove some of the lining without blurring but does not
seem to touch it in other places.
get here:
EDIT:- Link Removed.
Let me know when/if you download, I dont want to leave it for general consumption.
EDIT: Dont expect anything anywhere near as good as the DeStripe script.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.