[MPlayer-dev-eng] [PATCH] new option "-singleshot"
Alexander Neundorf
neundorf at dellingsoft.de
Tue Aug 6 15:32:56 CEST 2002
Hi,
usage:
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.
Bye
Alex
-------------- next part --------------
A non-text attachment was scrubbed...
Name: singleshot.diff
Type: text/x-c++
Size: 2451 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020806/9ec7e2e6/attachment.bin>
More information about the MPlayer-dev-eng
mailing list