[Libav-user] [x264-devel] avio_open and a callback,
aviadr1 at gmail.com
Sun Sep 18 17:25:22 CEST 2011
On Fri, Sep 16, 2011 at 13:16, Denis <info at denisgottardello.it> wrote:
> Hey everybody. I use this function
> if (avio_open(&pFormatCtx->pb, MPGFileName.toStdString().c_str(),
> AVIO_FLAG_WRITE)< 0) qDebug() << "url_fopen Error!";
> to store in a file the encoded frames. Can I send the encoded frames to a
> custom function (like a callback) instead of a file? I want to send the
> frames across the network.
this is the wrong mailing list for these questions, avio_open is part of
libav, you should ask there.
but generally, after calling avcodec_encode_video() or
x264_encoder_encode(), you already have the data in a buffer, and can do
whatever you like with it, including [but not limited to] writing it to
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user