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

JULIAN GARDNER joolzg at btinternet.com
Tue Sep 10 12:11:53 CEST 2013


> From: Stefano Sabatini <stefasab at gmail.com>

>To: FFmpeg development discussions and patches <ffmpeg-devel at ffmpeg.org> 
>Sent: Tuesday, 10 September 2013, 12:04
>Subject: Re: [FFmpeg-devel] trying to pass a command to an input filter
> 
>
>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.
>-- 


Well to me it will only send commands to filters and as a vsrc_XXXX is not a filter per se, it wont work.

So either remove this excess code, or add in code to pass the commands to input and output sources

joolz



More information about the ffmpeg-devel mailing list