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

Michael Niedermayer michaelni at gmx.at
Tue Sep 10 18:02:58 CEST 2013


On Tue, Sep 10, 2013 at 03:00:24PM +0100, JULIAN GARDNER wrote:
> 
> 
> 
> 
> ----- Original Message -----
> > From: Michael Niedermayer <michaelni at gmx.at>
> > To: FFmpeg development discussions and patches <ffmpeg-devel at ffmpeg.org>
> > Cc: 
> > Sent: Tuesday, 10 September 2013, 15:01
> > Subject: Re: [FFmpeg-devel] trying to pass a command to an input filter
> > 
> > On Tue, Sep 10, 2013 at 12:04:54PM +0200, Stefano Sabatini wrote:
> >>  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.
> > 
> > it is working
> > 
> > and is documented if you press '?' from ffmpeg
> > where else would the documentation fit ? / where should i add more docs
> > ?
> > 
> 
> OK Added some debug
> 
> command line and output, with some notes
> encoder at encoder:~/ffmpeg$ ./ffmpeg -f lavfi -re -i color=s=720x576:c=green -c:v libx264 -b:v 1500k -y -f mpegts a.ts

the "lavfi" demuxer has its own private filtergraph and provides no
means (that i know of) to inject command from the outside of this
filtergraph into it.

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- 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/20130910/0feaf92e/attachment.asc>


More information about the ffmpeg-devel mailing list