[FFmpeg-trac] #8420(avformat:closed): MP4 duration is not correct

FFmpeg trac at avcodec.org
Thu Feb 10 04:52:11 EET 2022


#8420: MP4 duration is not correct
--------------------------------------+------------------------------------
             Reporter:  manuelyuan    |                    Owner:  (none)
                 Type:  defect        |                   Status:  closed
             Priority:  normal        |                Component:  avformat
              Version:  git-master    |               Resolution:  fixed
             Keywords:  mov duration  |               Blocked By:
             Blocking:                |  Reproduced by developer:  0
Analyzed by developer:  0             |
--------------------------------------+------------------------------------
Changes (by Balling):

 * resolution:  invalid => fixed

Comment:

 Okay, this now works perfectly. Error "Too many packets buffered for
 output stream 0:1.",

 does not happen either.

 ffmpeg -v 9 -loglevel 99 -i mp4_duration_is_incorrect.mp4 -vsync
 passthrough odjwecfrjd.mp4

 Duration of video is 3 s 17 ms.

 Obviously Duration: 436 ms and mdhd_Duration: 436 are wrong on the
 original file. And also gapless playback of 3 s 51 ms aac only happens
 when it is -c:a copy.
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/8420#comment:5>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list