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

Stefano Sabatini stefasab at gmail.com
Sun Sep 2 18:18:42 CEST 2012


On date Wednesday 2012-08-15 10:20:33 +0200, Nicolas George encoded:
> 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;

What about:

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

?

Basically this is setting several commands in a given interval (so the
primitive will be parse_interval_commands()), possibly with different
targets.
 
> - 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.

Updated WIP patch with token escaping (for the old syntax), and
command terminator.
-- 
FFmpeg = Fierce & Frenzy Monstrous Plastic Evil Geisha
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-lavfi-add-asendcmd-and-sendcmd-filters.patch
Type: text/x-diff
Size: 16009 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120902/50907b4f/attachment.bin>


More information about the ffmpeg-devel mailing list