Hi,

On Fri, Jan 23, 2009 at 9:11 AM, Mark Kenna
<[email protected]> wrote:
> Thanks for the reply, I would not be using FFMpeg to handle the network
> communications only the decoding, what I want ideally is to be able to
> pass a byte array to FFMpeg and have it decode the video. What I really
> need to know is how to setup AVFormatContext for this kind of use.

Please cut the headers/footers in replies.

As for your question, you can set up your own URLProtocol (implement
your own read/seek/etc. functions) and let them handle the internal
byte-array. You would then open the URL "myproto://" and it would
automatically call your functions. GStreamer uses this, for example.

If you want a "push-based" solution (I really wouldn't recommend this
at all) where you push in data as it comes, then you could consider
using a pipe:// protocol and write your data to the pipe. FFmpeg will
read it as it comes internally, but this disables seeking.

HTH,
Ronald
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to