PDA

View Full Version : Trim Usage


entropy
8th June 2003, 20:18
LoadPlugin("C:\Decomb.dll")
LoadPlugin("C:\MPEG2DEC.dll")
mpeg2source("C:\Samurai_X_-_Trust_1\WS\Samurai_X_-_Trust_1_D2V.d2v")

part1=Trim(0,1000)
part2=Trim(1001,40000)
return movie(part1 + part2)

telecide(post=false)
decimate(cycle=5)
BilinearResize(640,480,0,1)
TemporalSmoother(3)


I'm not sure how to use the trim function. I want to apply the deinterlace filter to only the first 1000 frames of the movie. Can anyone help me out? I'm a newbie at AviSynth. Also, does anyone know where I can find the .dll for deinterlace?

Wilbert
8th June 2003, 21:23
For example:

clip = mpeg2source("C:\Samurai_X_-_Trust_1\WS\Samurai_X_-_Trust_1_D2V.d2v")

part1 = Trim(clip, 0,1000)
part2 = Trim(clip, 1001,40000)

part1 = telecide(part1, post=false)
part1 = decimate(part1, cycle=5)

part = part1+part2
BilinearResize(part, 640,480,0,1)
TemporalSmoother(3)

entropy
9th June 2003, 01:32
Originally posted by Wilbert
For example:

clip = mpeg2source("C:\Samurai_X_-_Trust_1\WS\Samurai_X_-_Trust_1_D2V.d2v")

part1 = Trim(clip, 0,1000)
part2 = Trim(clip, 1001,40000)

part1 = telecide(part1, post=false)
part1 = decimate(part1, cycle=5)

part = part1+part2
BilinearResize(part, 640,480,0,1)
TemporalSmoother(3)

Wilbert, how could I use the actual deinterlace filter from VDub on part1? You see I want to add the decomb.dll filter AND the deinterlace filter from VDub on part1. Does that code sample you showed me accomplish that?

WyldeF1r3
9th June 2003, 05:52
vdub filters are applied after all the avs processing, so no, a vdub filter like deinterlace cannot be used in conjunction with trim. though you could load something like smart detinterlace through avs.

DoW
9th June 2003, 06:26
Why would you want to use TWO deinterlace filters?

entropy
9th June 2003, 07:06
Originally posted by WyldeF1r3
though you could load something like smart detinterlace through avs.

that's exactly what I want to do. How could I do it?

entropy
11th June 2003, 08:33
I have another question *bump*

Wilbert
11th June 2003, 10:31
You could use the vdub filter in AviSynth: http://www.avisynth.org/index.php?page=VirtualDub_I

# example:
ConvertToRGB(interlaced=true)
VD_SmartDeinterlace("frame", "luma", false, true, false, false, 15, 100)
ConvertToYUY2()

edit: you can also download "mpeg2dec for v2.5" here: http://forum.doom9.org/showthread.php?s=&threadid=51320
descriptions filters in this mpeg2dec: http://users.win.be/dividee/avisynth.html (I guess this works in YUY2, but I never used it)

entropy
17th June 2003, 09:08
Thanks for the info wil, sorry for the late reply.