[MPlayer-dev-eng] [PATCH] new gif vo

Joey Parrish joey at nicewarrior.org
Fri Dec 13 23:43:20 CET 2002


Hello,

I have rewritten the gif89a vo in order to solve some problems I had
with it.  These are:
1) current code is messy
2) poor comments, if any
3) inaccurate frame dropping and delay code
4) output filename hardcoded
5) output framerate as integer

This new version fixes all of these issues, and the output is correct
so far as I have tested it.  The new version is attached below as C
source file rather than a patch, because the of the heavy volume of
changes.  The new code is based on the example of vo_directfb2.c

Notes about the new version (this information already appears in the
new code, by the way):

You may specify the output filename and framerate like so:
-vo gif89a:4.33           4.33 fps output
-vo gif89a:some.gif       output to some.gif
-vo gif89a:5.02:new.gif   output to new.gif at 5.02 fps

The filename defaults to out.gif, and the framerate defaults to 5 fps.
If you were to try this:
-vo gif89a:new.gif:5.02   the output filename would be "new.gif:5.02".

Also, note that I no longer try to support OSD.  It's outside the scope
of such a simple vo, and subtitles should be rendered with vf_expand
if needed.

Comments, questions, and CVS commits are always welcome!

--Joey
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vo_gif89a.c
Type: text/x-csrc
Size: 10262 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20021213/d07e9a14/attachment.c>


More information about the MPlayer-dev-eng mailing list