Log in

View Full Version : Cutting videos with AviSynth


Valdez
11th June 2008, 18:51
I know how to trim a video with AviSynth, but can I also cut out frames from the middle of a video? Say I want to drop frames 100 to 200, can I do this in one swoop?

stax76
11th June 2008, 19:05
If I understand correctly you it would look like this:

Trim(0,100) + Trim(200,framecount)

Valdez
11th June 2008, 22:24
How easy. ;o)
Thank you very much.

Avenger007
12th June 2008, 01:10
If I understand correctly you it would look like this:

Trim(0,100) + Trim(200,framecount)
That would remove frames 101 to 199: http://avisynth.org/mediawiki/Trim.

Gavino
12th June 2008, 12:23
framecount is wrong too, as frames are numbered starting from zero. Use this:
Trim(0, 99) + Trim(201, 0)
(Trim(201, 0) means include from frame 201 up to the end.)

mikeytown2
19th June 2008, 01:47
can I do this in one swoop?

I made a function that does what your requesting, although i will admit that i don't use it anymore.
http://forum.doom9.org/showthread.php?t=135423

freebird73717
19th June 2008, 03:34
You can also open your avs script or video in virtualdubmod (http://www.videohelp.com/tools/VirtualdubMOD) (not the newer versions of virtualdub), make your cuts using virtualdubs gui then go to tools and select script editor.
Now go to the line just after the one that load your avi file and hit enter so you have a space there.
Now with your cursor on that blank line go to the top of the script editing window and select EDIT and under that select IMPORT FRAMESET AS TRIMS
You can then save a new avs script with your included trims. This works as long as your video is supported by this older version of vdubmod.