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

Michael Niedermayer michaelni at gmx.at
Sat Jun 11 12:26:41 CEST 2011


On Sat, Jun 11, 2011 at 12:53:23AM +0200, Stefano Sabatini wrote:
> 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?

feasible and interresting idea

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

Old school: Use the lowest level language in which you can solve the problem
            conveniently.
New school: Use the highest level language in which the latest supercomputer
            can solve the problem without the user falling asleep waiting.
-------------- 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/20110611/28688938/attachment.asc>


More information about the ffmpeg-devel mailing list