[FFmpeg-devel] [RFC] Reading from a lavfi source

Stefano Sabatini stefano.sabatini-lala at poste.it
Sat Jun 11 22:58:49 CEST 2011

On date Saturday 2011-06-11 00:53:23 +0200, Stefano Sabatini encoded:
> Hi,
> I want to experiment with lavfi sources so I would like to directly
> read from them. Acutally, e.g. if I need to read from the color
> source, I use the overlay on top of the input video (same could be
> done for audio by implementing a mixer filter).
> Now I wonder what could be a more direct way to achieve the same
> result. A possibility would be to make ffmpeg/ffplay directly read
> from libavfilter sources (by converting each input file to a movie
> source), but this requires a major rework so doesn't look very
> feasible to me.
> So I'm thinking to implement a sort of lavfi virtual input
> device/demuxer, which takes in input a filtergraph description with
> exactly one output which is passed to the input (we may have two
> distinct filtergraphs for audio and video), something like:
> ffplay -f lavfi -graph "color=bikeshed [video_out]; notes=AC#E [audio_out]" dummy 
> This should also provide a nice example of how to integrate lavfi into
> a libav* application.
> Do you consider this approach feasible? Better ideas?

First proof of concept attached (audio still not supported, for that
we need the asink_buffer, and some audio source...).
FFmpeg = Faithful and Frenzy Moronic Power Enlightened Gadget
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-lavdev-add-libavfilter-virtual-input-device.patch
Type: text/x-diff
Size: 9600 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110611/b98efb9e/attachment.bin>

More information about the ffmpeg-devel mailing list