[Ffmpeg-devel] Read from a buffer instead of a file

François Revol revol
Tue Dec 13 23:08:49 CET 2005

> Hi,
> is it possible to read video from a buffer instead of a file with 
> libav(codec/format) ?
> I have MPEG2-TS video in a buffer, and cannot use 
> "av_open_input_file" 
> and the "av_read_frame" on a buffer, it only works from a file.
> Anyone has an idea how to do that ?

You can add your own url protocol...
For example I once made something with a bdataio protocol that would 
from a BDataIO C++ object.

Want the code ?


More information about the ffmpeg-devel mailing list