Log in

View Full Version : Need to extend avi clip - beginner help?


stottle
20th December 2005, 19:23
All,

I'm using Nerovision express 3 to make some DVD movies out of my camcorder tapes (DV, type 2). Nero has very easy transitions between clips, but I cut some of my clips exactly on the last scene I wanted. The transitions start a few seconds before the end of the scene, so the last piece I wanted gets cut out. I can't go back and recapture as I'm on vacation and left the video tapes at home. Just have my laptop with the AVIs on it.

Rather than trying new software (I'm guessing there is better sw out there), the quickest option seems to me to be to just repeat the last frame (2 frames ? (interlaced?)) for about a second. This is amateur home video stuff, so I don't care if the audio goes silent for that short time.

Would someone be willing to provide a beginner an avisynth script that would output an extended avi? I've done quite a bit of scripting before (perl type stuff), but I'm pretty new to avisynth (played with LimitedSharpen on DVD video, haven't tried anything with camcorder video before).

Sorry to ask such a basic question, but my wife really wants this project done ASAP, so I can't send too much time experimenting. Any help would be greatly appreciated.

Thanks,
Brett

foxyshadis
20th December 2005, 20:12
main=avisource("yourdv.avi")
onesecond=(int)main.framerate
ext=blankclip(main,length=onesecond)
freezeframe(main+ext,main.framecount,main.framecount+onesecond,main.framecount-1)

That'll add 1 second to the clips, hopefully it's a good start. Audio will cut out for the length, but that might fall under the transition.

stickboy
20th December 2005, 20:23
You also might want to look at my LengthenClip function (http://www.avisynth.org/stickboy/).

stottle
20th December 2005, 21:02
foxyshadis - that did the trick. Only issue was that the version I have of avisynth likes floor() better than (int). Does exactly what I want (the sound piece is a benefit, I was trying loop, but that was repeating the sound into a kind of warble!).

Stickboy - thanks also for the help.

Brett