That make sense on the encoding side.

On the decoding side what could I use instead of: avformat_open_input()?




On Fri, Feb 22, 2013 at 11:36 AM, Luca Barbato <[email protected]> wrote:

> On 22/02/13 17:27, Shawn Donnelly wrote:
> > Is there a way to write out an AVFormatContext to a char buffer as
> opposed
> > to a fileName or socket?  I want to set the contents of AVFormatContext
> > over a customized network application (why I don't want to use rtp or
> udp).
> >
> > I *could* write the file to disk, read it in as a buffer and then send...
> > but that is messy.
>
> You can use a custom avio, it is quite easy.
>
> avio_open_dyn_buf if you really want to have everything written in memory.
>
> avio_alloc_context to have a write/read callback registered.
>
> lu
> _______________________________________________
> libav-devel mailing list
> [email protected]
> https://lists.libav.org/mailman/listinfo/libav-devel
>
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to