PDA

View Full Version : cutting avi file in several pieces by configuration file


boundone
24th June 2002, 10:18
hi,
is there a prog which allows to cut an avi file into several pieces
by configuration file?

for example, i have a 700 mb avi with 95 min of video. i want to
make a config file like the following

testvid1.avi 0:00 4:00
testvid2.avi 4:01 12:03
testvid2.avi 12:04 21:15
..
..
..

and let the cutter run. does any program or for example virtualdub
support this?

thanks!

boundone

$$$
24th June 2002, 13:53
yes, you can very well do this in VD, you would have to do some maths though:scared::

- load your file in VD
- set video and audio to 'direct stream copy' (or whatever you like)
- open your favorite text editor to write your script
- determine the range of each part of your video, you will need
start offset in ms from beginning of video and
end offset in ms from _end_ of video
- write your script, eg for a 3 sec video to be cut into 3 clips of 1 sec each:
VirtualDub.video.SetRange(0,2000);
VirtualDub.SaveAVI("F:\\MyMovies\\testvid1.avi");
VirtualDub.video.SetRange(1040,1000);
VirtualDub.SaveAVI("F:\\MyMovies\\testvid2.avi");
VirtualDub.video.SetRange(2040,0);
VirtualDub.SaveAVI("F:\\MyMovies\\testvid3.avi");
- run your script with File/Run script...

Of course you could also include the file opening and settings to your script.

$