Having a problem with Avisynth trying to select a clip, duplicating it (plus reversing) - and joining.
If I use this script to clip, duplicate and simply join the video, it works ok.
If I try to reverse the second clip and join them, the first clip overruns from 0-754 and the second is truncated.Code:avisource("clip.avi") part1=Trim(0,499) part2=Trim(0,499) alignedSplice(part1,part2)
Code:avisource("clip.avi") part1=Trim(0,499) part2=Trim(0,499).reverse() alignedSplice(part1,part2)
+ Reply to Thread
Results 1 to 6 of 6
-
-
avisource("clip.avi")
part1=Trim(0,499)
part2=Trim(0,499).reverse()
alignedSplice(part1,part2)
you have to define the clip, trim doesn't refer to anything
e.g. this works ok
a=colorbars().showframenumber()
part1=a.trim(0,10)
part2=a.trim(0,10).reverse()
part1++part2
So I think this should work
a=avisource("clip.avi")
part1=a.Trim(0,499)
part2=a.Trim(0,499).reverse()
alignedSplice(part1,part2)
or even simplified
a=avisource("clip.avi").trim(0,499)
a++a.reverse() -
Yes it does, it refers by default to 'last', which is the result of the AviSource().
Your proposed solution is also correct, but sambat's original script should have worked.
sambat, are you sure that was your complete script?
Is there something odd about your "clip.avi"?
Some formats behave oddly when seeking backwards, although this is not usually a problem with AviSource. -
That was the complete script.
I'll repost later when I get a chance to try it again. -
I retrieved my original script and I can't recreate the problem.
I had initially posted at VideoHelp;rebooted, went to get a cup of tea & almost immediately I got the email and tried the solution from poisondeathray a few minutes later.
I didn't bother going back to the original script - I had spent two frustrating hours with it - until now.
Similar Threads
-
Virtualdub / Avisynth problem - stumbling between joined clips
By Sebastian2011 in forum EditingReplies: 32Last Post: 5th Feb 2012, 15:17 -
How to email and receive video clips more than 10 megabytes in size?
By coody in forum Video Streaming DownloadingReplies: 21Last Post: 11th Dec 2008, 04:07 -
Wrong size created
By craigarta in forum Video ConversionReplies: 0Last Post: 3rd Aug 2008, 17:20 -
AVISynth splicing many AVCHD clips - is it possible?
By Redrussky in forum Video ConversionReplies: 4Last Post: 4th May 2008, 18:18 -
Wrong Size at Spliting
By Flowbax in forum EditingReplies: 3Last Post: 16th Jul 2007, 13:33