[FFmpeg-devel] [PATCH] lavfi: add asendcmd and sendcmd filters

Nicolas George nicolas.george at normalesup.org
Wed Aug 15 10:20:33 CEST 2012


Le nonidi 29 thermidor, an CCXX, Nicolas George a écrit :
> I do not believe having a solution for that problem right now is mandatory,
> but having a syntax that be extended to implement a solution would be
> better.

I suggest the following syntax:

0:05:00-0:15:00         delogo set 10:10:160:120
+               [leave] delogo set 0

In other words:

- command timestamps can be intervals, with the end defaulting to infinity
  (INT64_MAX should be infinite enough);

- these intervals can have several associated commands, using a '+' instead
  of the timestamp to add to the current interval;

- flags can be set between the timestamp and target using brackets, and some
  of these flags can specify when the corresponding command is sent
  depending on the evolution of the current timestamp with regard to the
  interval (default: "enter").

I believe this syntax could cover most reasonable needs without being too
much trouble to implement.

And if we agree that the target of a command can not have brackets in its
name (or that they must be escaped), it is completely compatible with what
you already wrote, so you can go ahead with it.

Regards,

-- 
  Nicolas George
-------------- 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/20120815/cce4fbc3/attachment.asc>


More information about the ffmpeg-devel mailing list