<div dir="ltr">When you call av_interleaved_write_frame(oc, &pkt), pkt.size contains the number of bytes sent/written, you can use/accumulate this on your end for a quicker implementation...<br></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Dec 2, 2013 at 9:29 PM, Gyula Hatalyák <span dir="ltr"><<a href="mailto:hatalyak.gyula@artklikk.hu" target="_blank">hatalyak.gyula@artklikk.hu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div class="gmail_extra">Hi!</div><div class="gmail_extra"><br></div><div class="gmail_extra">How do I measure sent bytes to network by avformat?</div><div class="gmail_extra">I am streaming out in flv (rtmp) format to a remote host.</div>
<div class="gmail_extra">I use av_interleaved_write_frame to write packets to flv format.</div><div class="gmail_extra">As I know av_interleaved_write_frame returns immediately.</div><div class="gmail_extra">So I don't know how much data have been actually sent to network by the underlying levels in avformat.</div>
<div class="gmail_extra">Any best practice?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks in advance,</div><div class="gmail_extra">Gyula</div>
</div>
<br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br></div>