[Libav-user] [x264-devel] avio_open and a callback,
aviad rozenhek
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
> my
> custom function (like a callback) instead of a file? I want to send the
> encoded
> 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
file.
--
Aviad Rozenhek
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20110918/000fdd05/attachment.html>
More information about the Libav-user
mailing list