unimatrixzer0
11th February 2005, 23:45
Its been to the date a year and some odd days since I last used an avs file to encode video using divx. At the time my computer was just to slow to convert all the shows I was recording in a timely manner so I just went to capturing directly to mpeg to burn to dvd. I'd like to try divx again since I've upgrade since then, but I've forgotten the little I managed to learn a year ago. Just looking at some segments of scripts some of you have posted, its like reading a computer program source code or something.
loadplugin("d:\x\tomsmocomp.dll")
loadplugin("d:\x\mvtools0991.dll")
function tmcbob(clip i, int se) #50fps-bobbing
{
e=i.tomsmocomp(-1,se,0)
o=i.doubleweave().selectodd().tomsmocomp(-1,se,0)
interleave(e,o)
}
function reYV12(clip i) #reverting PAL-DV to YUV 4:2:0 using simple line selection
{
yx=i.converttoyv12().greyscale()
x=i.separatefields().separatefields().selectevery(4,0,2).weave()
ux=x.utoy().converttoyv12()
vx=x.vtoy().converttoyv12()
ytouv(ux,vx,yx)
}
function manaodenoise(clip source) #denoising
{
function efficace(clip c, bool backward, int del)
{
v = c.mvanalyse(isb = backward, lambda = 1000, blksize = 16, delta = del, idx = 1, pel = 2)
d = c.mvcompensate(v, mode = 1, thscd1 = 2500, thscd2 = 170).deblock(quant = 30)
return v.mvchangecompensate(d)
}
bw3 = source.efficace(false, 3)
bw2 = source.efficace(false, 2)
bw1 = source.efficace(false, 1)
fw1 = source.efficace(true, 1)
fw2 = source.efficace(true, 2)
fw3 = source.efficace(true, 3)
source.mvdenoise(bw3, bw2, bw1, fw1, fw2, fw3, thsad = 2500, thmv = 200, tht = 30, thscd1 = 2500, thscd2 = 170)
}
input=avisource("badnoise.avi").assumebff()
input.reYV12().tmcbob(5).manaodenoise()
output=converttoyuy2().assumebff().separatefields().selectevery(4,0,3).weave()
return output
Just looking at that, its like looking at a foreign language.
I found an old avs I use to use which sucked and very slow to beginning with but was much simplier looking.
LoadPlugin("D:\My Docs\LoadPluginEx.dll")
LoadPlugin("D:\My Docs\DustV5.dll")
LoadPlugin("D:\My Docs\Convolution3D.dll")
AVISource("C:\clip.avi",pixel_type="yuy2")
converttoyv12(interlaced=true)
Trim(1172,15657)+Trim(17007,31260)+Trim(32734,44096)
Telecide(order=1,guide=1,post=2,vthresh=68,chroma=false,blend=false,back=1,nt=20,hints=true)
Decimate(mode=2,quality=2)
converttoyuy2()
Convolution3d(preset = "movieLQ")
GoldDust(2)
UnDot()
crop(12,4,-6,-4)
LanczosResize(640,480)
I've included a sample clip off the station I'm recording off of. Ok, yes, its Power Rangers. lol, laugh all you want, I've liked this show since I was little. Maybe if someone has time they could tinker with it, maybe come up with a rough avs script for it. Its recorded off of a US tv station. The source will be an mpeg file which I would like to use divx with to convert to an avi.
Here is a sample off the station.
http://s21.yousendit.com/d.aspx?id=1TD8NQAG4BHJV19UV3F3NAHAGY
Any help you can give would be great :)
loadplugin("d:\x\tomsmocomp.dll")
loadplugin("d:\x\mvtools0991.dll")
function tmcbob(clip i, int se) #50fps-bobbing
{
e=i.tomsmocomp(-1,se,0)
o=i.doubleweave().selectodd().tomsmocomp(-1,se,0)
interleave(e,o)
}
function reYV12(clip i) #reverting PAL-DV to YUV 4:2:0 using simple line selection
{
yx=i.converttoyv12().greyscale()
x=i.separatefields().separatefields().selectevery(4,0,2).weave()
ux=x.utoy().converttoyv12()
vx=x.vtoy().converttoyv12()
ytouv(ux,vx,yx)
}
function manaodenoise(clip source) #denoising
{
function efficace(clip c, bool backward, int del)
{
v = c.mvanalyse(isb = backward, lambda = 1000, blksize = 16, delta = del, idx = 1, pel = 2)
d = c.mvcompensate(v, mode = 1, thscd1 = 2500, thscd2 = 170).deblock(quant = 30)
return v.mvchangecompensate(d)
}
bw3 = source.efficace(false, 3)
bw2 = source.efficace(false, 2)
bw1 = source.efficace(false, 1)
fw1 = source.efficace(true, 1)
fw2 = source.efficace(true, 2)
fw3 = source.efficace(true, 3)
source.mvdenoise(bw3, bw2, bw1, fw1, fw2, fw3, thsad = 2500, thmv = 200, tht = 30, thscd1 = 2500, thscd2 = 170)
}
input=avisource("badnoise.avi").assumebff()
input.reYV12().tmcbob(5).manaodenoise()
output=converttoyuy2().assumebff().separatefields().selectevery(4,0,3).weave()
return output
Just looking at that, its like looking at a foreign language.
I found an old avs I use to use which sucked and very slow to beginning with but was much simplier looking.
LoadPlugin("D:\My Docs\LoadPluginEx.dll")
LoadPlugin("D:\My Docs\DustV5.dll")
LoadPlugin("D:\My Docs\Convolution3D.dll")
AVISource("C:\clip.avi",pixel_type="yuy2")
converttoyv12(interlaced=true)
Trim(1172,15657)+Trim(17007,31260)+Trim(32734,44096)
Telecide(order=1,guide=1,post=2,vthresh=68,chroma=false,blend=false,back=1,nt=20,hints=true)
Decimate(mode=2,quality=2)
converttoyuy2()
Convolution3d(preset = "movieLQ")
GoldDust(2)
UnDot()
crop(12,4,-6,-4)
LanczosResize(640,480)
I've included a sample clip off the station I'm recording off of. Ok, yes, its Power Rangers. lol, laugh all you want, I've liked this show since I was little. Maybe if someone has time they could tinker with it, maybe come up with a rough avs script for it. Its recorded off of a US tv station. The source will be an mpeg file which I would like to use divx with to convert to an avi.
Here is a sample off the station.
http://s21.yousendit.com/d.aspx?id=1TD8NQAG4BHJV19UV3F3NAHAGY
Any help you can give would be great :)