Hi,
I'm using FFmpeg and libavcodec 0.5 to develop a video player.
I'm having trouble with guessing duration with some VOB files (especially those
where AVFormatContext::duration equals AV_NOPTS_VALUE)
I tried using the file size and the average bitrate given by AVCodecContext
( doing (file_size * 8) / bit_rate to get the seconds ) but it's not accurate enough ( and wrong ). Can someone help me to figure out an alternative way to guess the duration please? Plus, I am using pts to figure out where i am in the video file, but it seems to be "jumping"
to inconsistent values... Does someone have a workaround?

Thanks in advance!
Karim

_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to