[Libav-user] Calculate total streamed in bytes
Mert Gedik
gedikmert89 at gmail.com
Fri Apr 11 11:20:53 CEST 2014
Hello everyone,
I want to show how much data is downloaded in my player, and I did as below,
if (packet.data) {
totalBytes += packet.size;
av_free_packet(&packet);
}
in a loop that uses av_read_frame
How ever, when I tested a video file that I know the size of the video
file, I see that totalBytes is always lower than the file size. How can I
calculate the exact value ?
Thanks,
-MG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20140411/ffde6639/attachment.html>
More information about the Libav-user
mailing list