[FFmpeg-trac] #6365(undetermined:new): Invalid timestamps [ mpegts ] and bad hls chunks

FFmpeg trac at avcodec.org
Tue May 2 13:54:49 EEST 2017


#6365: Invalid timestamps [ mpegts ] and bad hls chunks
-------------------------------------+-------------------------------------
             Reporter:  krs_vital    |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:               |                  Version:
  undetermined                       |  unspecified
             Keywords:               |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 m3u8 playlist:
 cat ./Mute_HD.m3u8
 #EXTM3U
 #EXT-X-VERSION:3
 #EXT-X-ALLOW-CACHE:NO
 #EXT-X-TARGETDURATION:1
 #EXT-X-MEDIA-SEQUENCE:1678
 #EXTINF:0.000367,
 /ts/Mute_HD/stream_1493718278.ts
 #EXTINF:0.000367,
 /ts/Mute_HD/stream_1493718279.ts
 #EXTINF:0.000367,
 /ts/Mute_HD/stream_1493718280.ts
 #EXTINF:0.000367,
 /ts/Mute_HD/stream_1493718282.ts
 #EXTINF:0.000367,
 /ts/Mute_HD/stream_1493718283.ts

 after error:
 [mpegts @ 0xa198c0] Invalid timestamps stream=0, pts=157053600,
 dts=8746977392, size=84361

 size of chunks change to 1 sec and not restored


 /usr/local/bin/ffmpeg -fflags nobuffer -overrun_nonfatal 1 -i
 udp://239.192.7.44:1234 -sn -dn -c copy -hls_allow_cache 0 -hls_base_url
 /ts/Mute_HD/ -hls_list_size 5 -hls_time 5 -hls_flags
 delete_segments+omit_endlist -map 0 -copyts -ignore_unknown
 -avoid_negative_ts 0 -g 1 -r 50 -strict -2 -use_localtime 1
 -hls_segment_filename /hls/ts/Mute_HD/stream_%s.ts -report
 /hls/pl/Mute_HD.m3u8
 ffmpeg started on 2017-05-02 at 15:53:54
 Report written to "ffmpeg-20170502-155354.log"
 ffmpeg version 2.8.10 Copyright (c) 2000-2016 the FFmpeg developers
   built with gcc 4.7 (Debian 4.7.2-5)
   configuration: --enable-gpl --disable-static --enable-shared --enable-
 version3 --enable-nonfree --enable-pic --enable-libx264 --enable-libx265
 --enable-libopus --enable-libv4l2 --enable-nvenc --enable-libvpx --enable-
 libspeex --enable-libmp3lame --enable-decoder=png --enable-encoder=png
 --prefix=/opt/flussonic --extra-ldflags='-L/opt/flussonic/lib -Wl,-rpath
 /opt/flussonic/lib' --extra-cflags=-I/opt/flussonic/include
   libavutil      54. 31.100 / 54. 31.100
   libavcodec     56. 60.100 / 56. 60.100
   libavformat    56. 40.101 / 56. 40.101
   libavdevice    56.  4.100 / 56.  4.100
   libavfilter     5. 40.101 /  5. 40.101
   libswscale      3.  1.101 /  3.  1.101
   libswresample   1.  2.101 /  1.  2.101
   libpostproc    53.  3.100 / 53.  3.100
 [h264 @ 0xa2e080] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 0xa2e080] decode_slice_header error
 [h264 @ 0xa2e080] no frame!
 [h264 @ 0xa2e080] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 0xa2e080] decode_slice_header error
 [h264 @ 0xa2e080] no frame!
 [h264 @ 0xa2e080] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 0xa2e080] decode_slice_header error
 [h264 @ 0xa2e080] no frame!
 [h264 @ 0xa2e080] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 0xa2e080] decode_slice_header error
 [h264 @ 0xa2e080] no frame!
 [h264 @ 0xa2e080] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 0xa2e080] decode_slice_header error
 [h264 @ 0xa2e080] no frame!
 [h264 @ 0xa2e080] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 0xa2e080] decode_slice_header error
 [h264 @ 0xa2e080] no frame!
 [h264 @ 0xa2e080] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 0xa2e080] decode_slice_header error
 [h264 @ 0xa2e080] no frame!
 [h264 @ 0xa2e080] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 0xa2e080] decode_slice_header error
 [h264 @ 0xa2e080] no frame!
 [h264 @ 0xa2e080] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 0xa2e080] decode_slice_header error
 [h264 @ 0xa2e080] no frame!
 [h264 @ 0xa2e080] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 0xa2e080] decode_slice_header error
 [h264 @ 0xa2e080] no frame!
 [h264 @ 0xa2e080] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 0xa2e080] decode_slice_header error
 [h264 @ 0xa2e080] no frame!
 [h264 @ 0xa2e080] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 0xa2e080] decode_slice_header error
 [h264 @ 0xa2e080] no frame!
 [h264 @ 0xa2e080] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 0xa2e080] decode_slice_header error
 [h264 @ 0xa2e080] no frame!
 [h264 @ 0xa2e080] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 0xa2e080] decode_slice_header error
 [h264 @ 0xa2e080] no frame!
 [h264 @ 0xa2e080] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 0xa2e080] decode_slice_header error
 [h264 @ 0xa2e080] no frame!
 [h264 @ 0xa2e080] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 0xa2e080] decode_slice_header error
 [h264 @ 0xa2e080] no frame!
 [h264 @ 0xa2e080] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 0xa2e080] decode_slice_header error
 [h264 @ 0xa2e080] no frame!
 [h264 @ 0xa2e080] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 0xa2e080] decode_slice_header error
 [h264 @ 0xa2e080] no frame!
 [h264 @ 0xa2e080] non-existing PPS 0 referenced
     Last message repeated 1 times
 [h264 @ 0xa2e080] decode_slice_header error
 [h264 @ 0xa2e080] no frame!
 [h264 @ 0xa2e080] non-existing SPS 0 referenced in buffering period
     Last message repeated 1 times
 Input #0, mpegts, from 'udp://239.192.7.44:1234':
   Duration: N/A, start: 1805.005333, bitrate: N/A
   Program 235
     Stream #0:0[0xbb9]: Video: h264 (High) ([27][0][0][0] / 0x001B),
 yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn,
 50 tbc
     Stream #0:1[0xc27](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F),
 48000 Hz, stereo, fltp, 207 kb/s
 Output #0, hls, to '/hls/pl/Mute_HD.m3u8':
   Metadata:
     encoder         : Lavf56.40.101
     Stream #0:0: Video: h264 ([27][0][0][0] / 0x001B), yuv420p, 1920x1080
 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 50 tbc
     Stream #0:1(eng): Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz,
 stereo, 207 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 [mpegts @ 0xa198c0] Invalid timestamps stream=0, pts=157053600,
 dts=8746977392, size=84361
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:0; previous:
 8746984592, current: 157053600; changing to 8746984593. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:0; previous:
 8746984593, current: 157057200; changing to 8746984594. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:1; previous:
 8746987952, current: 157055280; changing to 8746987953. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:1; previous:
 8746987953, current: 157057200; changing to 8746987954. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:1; previous:
 8746987954, current: 157059120; changing to 8746987955. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:1; previous:
 8746987955, current: 157061040; changing to 8746987956. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:1; previous:
 8746987956, current: 157062960; changing to 8746987957. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:0; previous:
 8746984594, current: 157060800; changing to 8746984595. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:0; previous:
 8746984595, current: 157064400; changing to 8746984596. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:1; previous:
 8746987957, current: 157064880; changing to 8746987958. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:1; previous:
 8746987958, current: 157066800; changing to 8746987959. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:1; previous:
 8746987959, current: 157068720; changing to 8746987960. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:1; previous:
 8746987960, current: 157070640; changing to 8746987961. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:1; previous:
 8746987961, current: 157072560; changing to 8746987962. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:0; previous:
 8746984596, current: 157068000; changing to 8746984597. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:0; previous:
 8746984597, current: 157071600; changing to 8746984598. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:0; previous:
 8746984598, current: 157075200; changing to 8746984599. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:1; previous:
 8746987962, current: 157074480; changing to 8746987963. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:1; previous:
 8746987963, current: 157076400; changing to 8746987964. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:1; previous:
 8746987964, current: 157078320; changing to 8746987965. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:1; previous:
 8746987965, current: 157080240; changing to 8746987966. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:1; previous:
 8746987966, current: 157082160; changing to 8746987967. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:0; previous:
 8746984599, current: 157078800; changing to 8746984600. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:0; previous:
 8746984600, current: 157082400; changing to 8746984601. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:0; previous:
 8746984601, current: 157086000; changing to 8746984602. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:1; previous:
 8746987967, current: 157084080; changing to 8746987968. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:1; previous:
 8746987968, current: 157086000; changing to 8746987969. This may result in
 incorrect timestamps in the output file.
 [hls @ 0xa5e700] Non-monotonous DTS in output stream 0:1; previous:
 8746987969, current: 157087920; changing to 8746987970. This may result in
 incorrect timestamps in the output file.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6365>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list