[MPlayer-dev-eng] Re: [PATCH] Saved AVI index files with -saveidx and -idxfile

Jason Tackaberry tack at auc.ca
Sun Oct 12 17:30:57 CEST 2003


On Fri, 2003-10-10 at 11:20, Alban Bedel wrote:
> You shouldn't exit() from libmpdemux. You should return an error code
> or the like when failling. Also if the index loading/writing fail it
> should only print error message and continue.

The point behind -saveidx, though, is that it will save the index to a
file and then quit right after, and not proceed to play the movie.  This
is so that I can script -saveidx after encoding something off my tuner
card with mencoder.

Now the index saving stuff is implemented in libmpdemux because that's
where the code for -idx/-forceidx lives, and this is just an extension
of that.  So I suppose I need to find a graceful way to tell mplayer not
to play the video, but just quit.  Perhaps I can insert a 'q' into the
keyboard input buffer?

Jason.



More information about the MPlayer-dev-eng mailing list