[FFmpeg-trac] #6087(avformat:new): When decoding mp4 file to pngs, the last 2 frames are missing

FFmpeg trac at avcodec.org
Fri Feb 17 05:41:36 EET 2017


#6087: When decoding mp4 file to pngs, the last 2 frames are missing
-------------------------------------+-------------------------------------
             Reporter:  dmontz       |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  mov edts     |               Blocked By:
  regression                         |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by isasi):

 The video has edit list which makes it discard the last frame
 elst:
 segment_duration, media_time
 90090, 0

 90090 when converted to stream timescale becomes 60060 . The last sample
 starts with the timestamp of 60060 . If played through Quicktime 10.4 we
 can see that the player only plays till last but one frame. If we export
 the video using Quicktime we only get 59 frames. So ideally we should get
 59 frames.

 If we do ffprobe -show_frames we do, actually get 59 frames. But somehow
 while converting to png one frame is discarded.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6087#comment:12>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list