[FFmpeg-devel] [PATCH] Suggested Patch for "Memory" Protocol

Andy Parkins andyparkins
Wed May 2 17:47:36 CEST 2007

On Wednesday 2007 May 02, Lagrange Multiplier wrote:

>     Would the ffmpeg development team consider including the following
> patch to support a "mem" protocol?  The "mem" protocol simply uses RAM as a
> source for input multimedia data, akin to how the "file" and "pipe"
> protocols use filesystem files and pipes as sources.

I've actually found it better to implement special protocols outside ffmpeg, 
then use av_register_protocol() from my own code.  This lets me tailor the 
protocol to fit the application instead of putting protocols of dubious use 
into ffmpeg itself.

Doing it that way would mean you don't even have to go via a "mem" protocol, 
you can go direct to the appropriate source in your own code.

Dr Andy Parkins, M Eng (hons), MIET
andyparkins at gmail.com

More information about the ffmpeg-devel mailing list