[Libav-user] Measure sent bytes to network

Taha Ansari mtaha.ansari at gmail.com
Tue Dec 3 06:30:59 CET 2013


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...


On Mon, Dec 2, 2013 at 9:29 PM, Gyula Hatalyák
<hatalyak.gyula at artklikk.hu>wrote:

> Hi!
>
> How do I measure sent bytes to network by avformat?
> I am streaming out in flv (rtmp) format to a remote host.
> I use av_interleaved_write_frame to write packets to flv format.
> As I know av_interleaved_write_frame returns immediately.
> So I don't know how much data have been actually sent to network by the
> underlying levels in avformat.
> Any best practice?
>
> Thanks in advance,
> Gyula
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20131203/b7c99bf9/attachment.html>


More information about the Libav-user mailing list