Amitha Perera wrote:
> Clément wrote:
>> I have tried on a file of 4 min 52s and the result of  
>> (pFormatCtx->streams[i]->duration / 90000)/60
>> is 0,04636241 .
> 
>  From the documentation
>    http://cekirdek.pardus.org.tr/~ismail/ffmpeg-docs/structAVStream.html
> 
> stream.duration is in stream.time_base units.  Multiply the two to get 
> the duration in seconds.
> 
Just dont forget: this field is not necessarily very accurate. While 
some containers may record duration (IIRC, .avi does; .wav certainly), 
for others the duration is estimated based on nominal bitrate and filesize.

Greetings,
-- 
Michel Bardiaux
http://www.mediaxim.com/
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to