[FFmpeg-devel] [PATCH] lavu/opt: enhance printing durations.

Nicolas George george at nsup.org
Mon Oct 26 21:56:37 CET 2015

Le quintidi 5 brumaire, an CCXXIV, Clement Boesch a écrit :
> > Note: While I am touching the options code, I have this crazy idea about
> > replacing AV_OPT_TYPE_* that would allow to get out of escaping hell
> > completely. I will not have time to act on it soon, but if someone wants to
> > hear about it...
> What escaping are you talking about?

All the levels of backslashes you have to put before delimiters. For
example, if you want to put a two minutes duration in a filter graph
description, you can not write "testsrc=d=2:00", because the colon will
delimit the option. You have to write a largish number of backslashes in
front of the colon. It becomes ever worse when nesting values: think of
colons inside the localtime expansion inside the text option of the drawtext

I believe we could avoid that almost entirely.


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20151026/51331d36/attachment.sig>

More information about the ffmpeg-devel mailing list