<div dir="ltr"><div class="gmail_quote">On Fri, Sep 16, 2011 at 13:16, Denis <span dir="ltr"><<a href="mailto:info@denisgottardello.it">info@denisgottardello.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Hey everybody. I use this function<br>
<br>
<br>
if (avio_open(&pFormatCtx->pb, MPGFileName.toStdString().c_str(),<br>
AVIO_FLAG_WRITE)< 0) qDebug() << "url_fopen Error!";<br>
<br>
to store in a file the encoded frames. Can I send the encoded frames to a my<br>
custom function (like a callback) instead of a file? I want to send the encoded<br>
frames across the network.<br><br></blockquote><div><br></div><div>this is the wrong mailing list for these questions, avio_open is part of libav, you should ask there.</div><div>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.</div>
<div><br></div></div><br clear="all"><div><br></div>-- <br>Aviad Rozenhek<br>
</div>