VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. Member
    Join Date
    Dec 2005
    Location
    Canada
    Search Comp PM
    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.

    Code:
    avisource("clip.avi")
    part1=Trim(0,499)
    part2=Trim(0,499)
    alignedSplice(part1,part2)
    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).reverse()
    alignedSplice(part1,part2)
    Quote Quote  
  2. 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()
    Quote Quote  
  3. Member
    Join Date
    Dec 2005
    Location
    Canada
    Search Comp PM
    God bless - It never crossed my mind.
    Thank you.
    Quote Quote  
  4. Member
    Join Date
    Jul 2009
    Location
    Spain
    Search Comp PM
    Originally Posted by poisondeathray View Post
    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
    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.
    Quote Quote  
  5. Member
    Join Date
    Dec 2005
    Location
    Canada
    Search Comp PM
    That was the complete script.
    I'll repost later when I get a chance to try it again.
    Quote Quote  
  6. Member
    Join Date
    Dec 2005
    Location
    Canada
    Search Comp PM
    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.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!