[FFmpeg-trac] #6402(avformat:new): First frames incorrect after seeking on H264 file

FFmpeg trac at avcodec.org
Sat Jul 1 01:18:40 EEST 2017


#6402: First frames incorrect after seeking on H264 file
-------------------------------------+-------------------------------------
             Reporter:  jrummell     |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  mov          |               Blocked By:
  regression                         |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by dalecurtis):

 Updated my reply on the patch that caused this issue,
 http://ffmpeg.org/pipermail/ffmpeg-devel/2017-July/213025.html, with a
 repro using ffplay:

 Just seeking a few times in ffplay can trigger this issue with the clip
 linked in my original message:

 http://storage.googleapis.com/dalecurtis-shared/buck480p30_na.mp4

 ./ffplay -v debug -drp 1 ~/Downloads/buck480p30_na.mp4
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fbce00008c0] invalid dts/pts
 combination14583000
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fbce00008c0] invalid dts/pts
 combination14586000
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fbce00008c0] found fragment index for track
 1
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fbce00008c0] found fragment index entry for
 track 1 and moof_offset 16686198
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fbce00008c0] found frag time 14589000, using
 it for dts
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fbce00008c0] invalid dts/pts combination
 14607000
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fbce00008c0] invalid dts/pts combination
 14610000
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fbce00008c0] invalid dts/pts combination
 14622000
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fbce00008c0] invalid dts/pts combination
 14631000
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fbce00008c0] invalid dts/pts combination
 14634000
 [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fbce00008c0] invalid dts/pts combination
 14643000

 Disabled sidx processing resolves this issue:

 diff --git a/libavformat/mov.c b/libavformat/mov.c
 index 63f84be782..919475f12f 100644
 --- a/libavformat/mov.c
 +++ b/libavformat/mov.c
 @@ -5497,7 +5497,7 @@ static const MOVParseTableEntry
 mov_default_parse_table[] = {
  { MKTAG('a','l','a','c'), mov_read_alac }, /* alac specific atom */
  { MKTAG('a','v','c','C'), mov_read_glbl },
  { MKTAG('p','a','s','p'), mov_read_pasp },
 -{ MKTAG('s','i','d','x'), mov_read_sidx },
 +// { MKTAG('s','i','d','x'), mov_read_sidx },

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


More information about the FFmpeg-trac mailing list