[FFmpeg-trac] #7026(undetermined:new): Last frame in ProRes video has incorrect duration
FFmpeg
trac at avcodec.org
Fri Feb 16 21:30:46 EET 2018
#7026: Last frame in ProRes video has incorrect duration
-------------------------------------+-------------------------------------
Reporter: | Type: defect
FrugalCourtland | Priority: normal
Status: new | Version:
Component: | unspecified
undetermined | Blocked By:
Keywords: prores | Reproduced by developer: 0
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
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
}}}
[FRAME]
media_type=video
...
pkt_pts=1536
pkt_pts_time=0.100000
pkt_dts=1536
pkt_dts_time=0.100000
best_effort_timestamp=1536
best_effort_timestamp_time=0.100000
'''pkt_duration=522'''
'''pkt_duration_time=0.033984'''
...
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)
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7026>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list