On Fri, Sep 16, 2011 at 13:16, Denis <[email protected]> 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
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to