Last frame in ProRes video has incorrect duration
|Reported by:||FrugalCourtland||Owned by:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
Summary of the bug:
When encoding a number of frames that are not a multiple of the framerate with prores, the last frame has an incorrect duration. If the number of frames is a multiple of the framerate (i.e. the video duration is a whole number of seconds), this does not appear to occur. Other codecs, such as mp4, do not appear to have this issue.
How to reproduce:
% ffmpeg -framerate 30 -i %02d.png -codec:v prores prores.mov % ffprobe -show_frames prores.mov
Note that the duration and duration_time for the last frame are different from the rest of the frames. This can cause an issue for codecs that use this value, see #7025.
ffmpeg version 3.4.1 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 7.2.0 (GCC) ffprobe version 3.4.1 Copyright (c) 2007-2017 the FFmpeg developers built with gcc 7.2.0 (GCC)