[FFmpeg-devel] [PATCH] lavu/opt: enhance printing durations.
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 819 bytes
Desc: Digital signature
More information about the ffmpeg-devel