[FFmpeg-devel] [PATCH] allow vf_drawtext to draw framenumbers

Michael Niedermayer michaelni at gmx.at
Thu Apr 14 00:33:22 CEST 2011

On Mon, Apr 11, 2011 at 09:44:24PM +0200, Jean First wrote:
> On Sat Apr 09 2011 02:31:49 GMT+0200 (CET), Stefano Sabatini wrote:
>> * implement a special mode, in this mode you interpret %X codes in a
>>    special way, in a similar way to that of strftime(). The problem is
>>    that it would be incompatible with strftime()-sequences.
>> * implement a dynamic environment accessible through the text
>>    specification, for example:
>>    "month:${month} n:${frame_number:%04d}"
>>    Overkill?
>> The problem with the #f/#F system is that it is quite limited and not
>> very extensible (for example what if you want to print 5 padded digits
>> for the frame number)?
> I prefer the second idea. But I think on the shell ${month} will also be  
> replaced with environment variables.
> But what do you think about splitting the text and its variables  
> completely ?
> f.ex: text="Date: %s,%cFrame: %05d%cPTS: %s",textvars="%Y %n  
> frame_number %n pts"

Theres an uncountable number of ways to do this :)
i think whats important is that the stuff is simple and yet can handle
all the expected use cases.

beyond that the one implementing should probably decide

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Good people do not need laws to tell them to act responsibly, while bad
people will find a way around the laws. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110414/5d6c6b67/attachment.asc>

More information about the ffmpeg-devel mailing list