Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 5th May 2010, 21:09   #1  |  Link
Si
Simply me
 
Si's Avatar
 
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
repeat 1st and last frames for visual delay

I thought this would be easy - just use trim in Avisynth to strip off the 1st frame and the last frame and use them to add a visual dekay to a short online animation and then repeat the last frame for a few secs to give the viewer time to take in what's happened.

But I can't seem to work out how to trim out the last frame of a video (so I can the concatenate it back onto a copy of the orig.

Any clues please (or a complete example would be nice )

regards

Simon
Si is offline   Reply With Quote
Old 5th May 2010, 22:02   #2  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,248
Quote:
Originally Posted by Si View Post
But I can't seem to work out how to trim out the last frame of a video
I'm not sure if you want to remove the last frame or if you want only the last frame?

Anyway, both is quite easy to do:
Code:
Trim(0, Last.FrameCount-2)
Trim(Last.FrameCount-1, -1)
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊

Last edited by LoRd_MuldeR; 5th May 2010 at 22:15.
LoRd_MuldeR is offline   Reply With Quote
Old 5th May 2010, 23:18   #3  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by Si View Post
I thought this would be easy - just use trim in Avisynth to strip off the 1st frame and the last frame and use them to add a visual dekay to a short online animation and then repeat the last frame for a few secs to give the viewer time to take in what's happened.
The simplest way to repeat a given frame is to use Loop.

Loop(m, n, n) will add m-1 times copies of frame n.
Loop(2, 0, 0) repeats first frame.
Loop(2, Framecount-1, Framecount-1) [or just Loop(2, Framecount-1)] repeats last frame.

Last edited by Gavino; 5th May 2010 at 23:21.
Gavino is offline   Reply With Quote
Old 6th May 2010, 06:56   #4  |  Link
Si
Simply me
 
Si's Avatar
 
Join Date: Aug 2002
Location: Lancashire, England
Posts: 610
Ta very much people

I didn't know framecount and loop existed

regards

Simon
Si is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 22:37.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.