Hi, Can anyone help to explain which duration is more accurate. 1. duration from the avstream object 2. read out all packets from that avstream, find the max pts. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20140226/19216452/attachment.html>