[FFmpeg-devel] trying to pass a command to an input filter

Stefano Sabatini stefasab at gmail.com
Tue Sep 10 12:04:54 CEST 2013

On date Monday 2013-09-09 18:03:15 +0100, JULIAN GARDNER encoded:
> My command line is 
> ffmpeg -f lavfi -i color=s=720x576:c=green -c:v libx264 -b:v 1500k -y -f mpegts test.ts
> Im having a play around with the 'c' command line way of passing commands to filters and I cannot work out something.
> in vsrc_testsrc.c the "color" command has a .process_command setup in its structure, but when i press 'c' and then
> all -1 color black
> The command does not get to the vsrc_testsrc, now debugging this it looks like the commands are not passed to the vsrc_testsrc.c:color_process_command as it is not in the filtergraphs.

> So my question is how do i get this working, or is it not possible to pass commands to input sources

Last time I tried I used the sendcmd and zmq filters. Don't know if
the (undocumented) ffmpeg command is still working.
FFmpeg = Fast and Fundamentalist Moronic Portable Everlasting Genius

More information about the ffmpeg-devel mailing list