[MPlayer-dev-eng] [PATCH] vf_screenshot, output filename corresponding to the played file

Ruslan Savchenko ruslan.savchenko at gmail.com
Sun Nov 9 20:03:07 CET 2008


Hello,
Currently mplayer saves screenshots into files named "shotNNNN.png". After
applying attached patches one would be able to save screenshots into
"mymovie.[timestamp].png" files. Old behaviour is default, the new one is
turned on by passing param to vf_screenshot. "mymovie" is the filename of
the file being played (entirely with suffix), format for timestamp could be
either hh:mm:ss.ms (useful for mplayer options such as -endpos) or
hh-mm-ss.ms (useful when ':' cannot appear in filename).
So -vf screenshot (of -vf screenshot=0) saves to "shotNNNN.png", -vf
screenshot=1 to "mymovie.[hh:mm:ss.ms].png", and -vf screenshot=2 to
"mymovie.[hh:mm:ss.ms].png"

first patch moves "filename" variable outside of main() to global in
mencoder.c
second patch is for vf_screenshot
and the third one patches the man page


Regards,
Ruslan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-mencoder-global-filename.patch
Type: application/octet-stream
Size: 542 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20081109/f991d01f/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-vf_screenshot-filename.patch
Type: application/octet-stream
Size: 3543 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20081109/f991d01f/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-manpage-screenshot.patch
Type: application/octet-stream
Size: 1217 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20081109/f991d01f/attachment-0002.obj>


More information about the MPlayer-dev-eng mailing list