Dear everyone,
I tried to get duration (in second) of audio/video file using AVStream like 
this:
int64_t duration = 
(stream->duration*stream->time_base.num)/stream->time_base.den;
however, i sometimes got wrong information (commonly greater than real 
duration). As i  guess the stream->duration provides the wrong value.
Could anybody suggest me another way to exactly get duration or how to verify 
the correct duration?
Thank you very much
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to