[FFmpeg-devel] MOV Duration

Baptiste Coudurier baptiste.coudurier
Thu Apr 3 14:38:42 CEST 2008


Helge Klein wrote:
> Hi,
> The duration value in mov.c function mov_read_mdhd() gets stored direct 
> to st->duration. I think, the exact duration must be calculated by using 
> the media header atom's time scale entry normalized to AV_TIME_BASE.

No, st->duration is in AVStream->time_base, and specified in mdhd, and
later updated considering stts.

Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG SAS                                     http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312

More information about the ffmpeg-devel mailing list