Le 11 avr. 2014 à 11:20, Mert Gedik <[email protected]> a écrit :
> 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
You are computing the size of the data for the video stream only. The video
file also contains data for the container format required by the demuxer.
Except if you use raw streams, which is usually not the case.
Lucas_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user