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. Regards, Helge