Thanks Anton, Will surely look at it.
But lets say I want to implement it in a callback mode, where a third party app keeps giving me chunks of buffer on demand, will it still be possible to implement using AVIOContext? Thanks. Regards, Viraj On Sun, Apr 1, 2012 at 12:25 AM, Anton Khirnov <[email protected]> wrote: > > On Wed, 28 Mar 2012 16:52:54 -0700, "Viraj (libav)" < > [email protected]> wrote: > > Hi, > > > > I want to pass a buffer as input to libav for transcoding. > > > > I came across ByteIOContext, which has now been changed to AVIOContext. > But > > I could not find any example as to how to do it exactly. > > > > To create an AVIOContext based purely on a memory buffer, just pass the > buffer to avio_alloc_context(), with all callbacks set to NULL. > > See e.g. read_gab2_sub() in libavformat/avidec.c for an example. > > -- > Anton Khirnov >
_______________________________________________ libav-api mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-api
