Jeff D
6th March 2003, 09:50
I'm new, I've got experience with avisynth, but only basic. I could always do what I wanted, but not this time...
I've got three captured video clips from a laserdisc movie, 2 sides in clip 0, 2 sides in clip 2 and 1 side in clip 3. I want to convert back to the 24fps source.
I've been trying all night and getting close, but can't quite get it working.
So, I started with a test, and for the test I'll just be taking three segements from the first capture file. The first capture file will be telecined, decimated, cropped, trimmed, tweaked, resized, borders will be added and set the frame rate.
Based on samples found here I went with the following:
LoadPlugin("C:\avsplugs\2.5\decomb406b6\Decomb.dll")
video1=AviSource("G:\CAPTURE000.00.avi").Telecide(guide=1).Decimate(cycle=5).Crop (0, 103, 720, 276).Tweak(0.0, 0.80, 1.0, .92)
video=video1.trim(3555,6755)+video1.trim(48734,50615)+video1.trim(79504,82992)
#target video width
tx = 720
ty = 378
topborder = (((480-ty)/2)/16)*16 # top letterboxing rect, rounded to 16 pixels
BicubicResize(video, tx, ty )
AddBorders(video, 0,topborder,0,480 - (topborder + ty) ) # add black letterbox bars to 720 x 480 frame size
#AssumeFPS(video, 23.976 )
other attempts include:
LoadPlugin("C:\avsplugs\2.5\decomb406b6\Decomb.dll")
video1=AviSource("G:\CAPTURE000.00.avi").Telecide(guide=1).Decimate(cycle=5)
video=video1.trim(3555,6755)+video1.trim(48734,50615)+video1.trim(79504,82992)
Crop (video, 0, 103, 720, 276)
Tweak(video,0.0, 0.80, 1.0, .92)
or
LoadPlugin("C:\avsplugs\2.5\decomb406b6\Decomb.dll")
video1=AviSource("G:\CAPTURE000.00.avi").Telecide(guide=1).Decimate(cycle=5)
Crop (video1, 0, 103, 720, 276)
Tweak(video1, 0.0, 0.80, 1.0, .92)
video=video1.trim(3555,6755)+video1.trim(48734,50615)+video1.trim(79504,82992)
Now, I've also tried to split commands up, but I can't get that working either. Avisynth just stops paying attention to the script. I've added test "return" lines that seem to never get executed.
This will only get a bit more complicate when I try to deal with my source being combined from three cap files with 5 trim segments.
The source format was based off a sample provided elsewhere in the forum. I would think the best way to do this would be:
AVIsource with the telecine and decimate
combine all the telecined and decimated clips into one
crop the one combined stream
do the resize, and the border
and finally do the tweak, tweak can before the crop to, but what does it matter?
How should I be formatting this? Is the mixing of "sream.function()" and "function(stream)" a bad idea? It seems to understand. =)
I've checked the command parameters, and I believe all the filters work in YUY2 colorspace. My avisynth is 2.50 beta dated on my birthday this year (1/28). Capture files are avi, huffyuv yuy2 format.
I've got three captured video clips from a laserdisc movie, 2 sides in clip 0, 2 sides in clip 2 and 1 side in clip 3. I want to convert back to the 24fps source.
I've been trying all night and getting close, but can't quite get it working.
So, I started with a test, and for the test I'll just be taking three segements from the first capture file. The first capture file will be telecined, decimated, cropped, trimmed, tweaked, resized, borders will be added and set the frame rate.
Based on samples found here I went with the following:
LoadPlugin("C:\avsplugs\2.5\decomb406b6\Decomb.dll")
video1=AviSource("G:\CAPTURE000.00.avi").Telecide(guide=1).Decimate(cycle=5).Crop (0, 103, 720, 276).Tweak(0.0, 0.80, 1.0, .92)
video=video1.trim(3555,6755)+video1.trim(48734,50615)+video1.trim(79504,82992)
#target video width
tx = 720
ty = 378
topborder = (((480-ty)/2)/16)*16 # top letterboxing rect, rounded to 16 pixels
BicubicResize(video, tx, ty )
AddBorders(video, 0,topborder,0,480 - (topborder + ty) ) # add black letterbox bars to 720 x 480 frame size
#AssumeFPS(video, 23.976 )
other attempts include:
LoadPlugin("C:\avsplugs\2.5\decomb406b6\Decomb.dll")
video1=AviSource("G:\CAPTURE000.00.avi").Telecide(guide=1).Decimate(cycle=5)
video=video1.trim(3555,6755)+video1.trim(48734,50615)+video1.trim(79504,82992)
Crop (video, 0, 103, 720, 276)
Tweak(video,0.0, 0.80, 1.0, .92)
or
LoadPlugin("C:\avsplugs\2.5\decomb406b6\Decomb.dll")
video1=AviSource("G:\CAPTURE000.00.avi").Telecide(guide=1).Decimate(cycle=5)
Crop (video1, 0, 103, 720, 276)
Tweak(video1, 0.0, 0.80, 1.0, .92)
video=video1.trim(3555,6755)+video1.trim(48734,50615)+video1.trim(79504,82992)
Now, I've also tried to split commands up, but I can't get that working either. Avisynth just stops paying attention to the script. I've added test "return" lines that seem to never get executed.
This will only get a bit more complicate when I try to deal with my source being combined from three cap files with 5 trim segments.
The source format was based off a sample provided elsewhere in the forum. I would think the best way to do this would be:
AVIsource with the telecine and decimate
combine all the telecined and decimated clips into one
crop the one combined stream
do the resize, and the border
and finally do the tweak, tweak can before the crop to, but what does it matter?
How should I be formatting this? Is the mixing of "sream.function()" and "function(stream)" a bad idea? It seems to understand. =)
I've checked the command parameters, and I believe all the filters work in YUY2 colorspace. My avisynth is 2.50 beta dated on my birthday this year (1/28). Capture files are avi, huffyuv yuy2 format.