[FFmpeg-trac] #2224(undetermined:new): HLS output using b-frames has crazy initial timestamps

FFmpeg trac at avcodec.org
Sat Mar 16 18:21:40 CET 2013


#2224: HLS output using b-frames has crazy initial timestamps
-------------------------------------+-------------------------------------
             Reporter:  nealzebub    |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:  libx264      |               Resolution:
  mpegts hls                         |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by trevyn):

 I've been running into the exact same issue.

 There seems to be something around negative video DTS; I tried making a
 video-only TS, and ran into all the same errors. The first two packets of
 my first segment have negative DTS, but there are no crazy audio
 timestamps, because I have no audio track. ;)

 Interestingly, even ffprobe complains about invalid timestamps when
 they're negative.

 {{{
 87:~ eden$ mediastreamvalidator "http://s3.amazonaws.com/mutu-
 static/v/hlsna-568-320-40-all-11032.m3u8"
 mediastreamvalidator: Beta Version 1.1(130110)

 Validating http://s3.amazonaws.com/mutu-
 static/v/hlsna-568-320-40-all-11032.m3u8

 --------------------------------------------------------------------------------
 http://s3.amazonaws.com/mutu-static/v/hlsna-568-320-40-all-11032.m3u8
 --------------------------------------------------------------------------------

 Playlist Syntax:        OK

 Segments:

 hlsna-568-320-40-all-11032-000.ts:

         WARNING: Unable to read video timestamps in track 0; this may be
 due to not having a key frame in this segment.
         WARNING: Unable to read decode timestamps in track 0; this may be
 due to not having a key frame in this segment.
         ERROR: (-1) Decreasing DTS were detected in track 0

 Average segment duration: 9.67 seconds
 Segment bitrate: Average: 128.53 kbits/sec, Max: 157.13 kbits/sec
 }}}

 {{{
 87:~ eden$ ffprobe hlsna-568-320-40-all-11032-000.ts
 ffprobe version 1.0 Copyright (c) 2007-2012 the FFmpeg developers
   built on Nov 18 2012 02:25:56 with Apple clang version 4.1
 (tags/Apple/clang-421.11.66) (based on LLVM 3.1svn)
   configuration: --prefix=/opt/local --enable-swscale --enable-avfilter
 --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora
 --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug
 --enable-libvpx --enable-libspeex --enable-libfreetype
 --mandir=/opt/local/share/man --enable-shared --enable-pthreads
 --cc=/usr/bin/clang --arch=x86_64 --enable-yasm --enable-gpl --enable-
 postproc --enable-libx264 --enable-libxvid
   libavutil      51. 73.101 / 51. 73.101
   libavcodec     54. 59.100 / 54. 59.100
   libavformat    54. 29.104 / 54. 29.104
   libavdevice    54.  2.101 / 54.  2.101
   libavfilter     3. 17.100 /  3. 17.100
   libswscale      2.  1.101 /  2.  1.101
   libswresample   0. 15.100 /  0. 15.100
   libpostproc    52.  0.100 / 52.  0.100
 [mpegts @ 0x7ff00181e200] Invalid timestamps stream=0, pts=0,
 dts=8589928586, size=3811
 [mpegts @ 0x7ff00181e200] Invalid timestamps stream=0, pts=12012,
 dts=8589931589, size=719
 [mpegts @ 0x7ff00181e200] max_analyze_duration 5000000 reached at 5005000
 Input #0, mpegts, from 'hlsna-568-320-40-all-11032-000.ts':
   Duration: 00:00:16.64, start: 0.000000, bitrate: 120 kb/s
   Program 1
     Metadata:
       service_name    : Service01
       service_provider: FFmpeg
     Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B),
 yuv420p, 568x320, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
 }}}

 {{{
 87:~ eden$ ffprobe -show_packets hlsna-568-320-40-all-11032-000.ts
 [PACKET]
 codec_type=video
 stream_index=0
 pts=0
 pts_time=0.000000
 dts=-6006
 dts_time=-0.066733
 duration=3003
 duration_time=0.033367
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=3811
 pos=564
 flags=K
 [/PACKET]
 [PACKET]
 codec_type=video
 stream_index=0
 pts=12012
 pts_time=0.133467
 dts=-3003
 dts_time=-0.033367
 duration=3003
 duration_time=0.033367
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=719
 pos=4512
 flags=_
 [/PACKET]
 [PACKET]
 codec_type=video
 stream_index=0
 pts=6006
 pts_time=0.066733
 dts=0
 dts_time=0.000000
 duration=3003
 duration_time=0.033367
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=153
 pos=5452
 flags=_
 [/PACKET]
 [PACKET]
 codec_type=video
 stream_index=0
 pts=3003
 pts_time=0.033367
 dts=3003
 dts_time=0.033367
 duration=3003
 duration_time=0.033367
 convergence_duration=N/A
 convergence_duration_time=N/A
 size=173
 pos=5640
 flags=_
 [/PACKET]

 ...
 }}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2224#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list