On Sat, 05 Nov 2005 05:35:23 +0100
Bernhard Praschinger <[EMAIL PROTECTED]> wrote:

> > The hardest part about creating edit lists with script is figuring out 
> > how many frames each file has. I cheat by having exactly 10000 frames 
> > in all but the last file.
> 
> With lavinfo you get the number of frames in the first output line. 
> > lavinfo file.avi
> video_frames=6007

True. I just didn't feel the need for my script as I alway have the same kind 
of input, but for a general script, lavinfo would be the best thing.

I'm attaching the script. Maybe Enrico can find something useful in it. It 
assumes it knows very much that probably is not true anywhere but in my home.

It assumes, among other things:
That all files but the last is 10000 frames long.
That all files has a - in the name.
That you want a clip list that can be played in the same directory the files 
are located in.

It outputs an edit list on stdout. My typical use is:

python vw.py path/to/directory/ >clip.list

It is, though, an example of how to let a script create an edit list.

/Sam

Attachment: vw.py
Description: Binary data

Reply via email to