[MPlayer-dev-eng] [PATCH] new option "-singleshot"
neundorf at dellingsoft.de
Tue Aug 6 15:32:56 CEST 2002
mplayer -singleshot -ss 30 -ao null -vo jpeg /blah/foo.avi
will produce a screenshot at second 30 and then exit.
Maybe I've overseen something, but I was looking for a way to get single
images out of a video file. VOCTRL_SCREENSHOT seems not to be implemented in
any vo driver.
So I added the new option -singleshot, which will exit mplayer after
rendering the first image.
In combination with "-ss somewhere" the first rendered picture isn't at the
specified position, but the first of the file, the second is a mixture of the
first and the second (I guess the first was an I-frame, and the frame at the
seek-position a B or P frame, which was then rendered relative to the very
first I-frame, maybe).
That's why it doesn't actually render the first image, but the 20th (this
should be large enough to be behind a correct I-frame).
I attached the diff -bup against current cvs.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2451 bytes
Desc: not available
More information about the MPlayer-dev-eng