Opened 7 years ago

Last modified 7 years ago

#6365 new defect

Invalid timestamps [ mpegts ] and bad hls chunks

Reported by: krs_vital Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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.

Change History (9)

comment:1 by Carl Eugen Hoyos, 7 years ago

Is this issue only reproducible with udp input or also with file input?

comment:2 by krs_vital, 7 years ago

I rarely use a file input so it's hard to say whether there was there such a mistake, but for udp input it quite often

P.S.: today I've updated my previous order, there is also a similar bug with hls< but there seems to be a chunk size equal to 0 and the new chunks stop being generated

https://trac.ffmpeg.org/ticket/6287

in reply to:  2 comment:3 by Carl Eugen Hoyos, 7 years ago

Replying to krs_vital:

I rarely use a file input so it's hard to say whether there was there such a mistake, but for udp input it quite often

Please record the udp input (NOT with ffmpeg) to allow us to reproduce the issue.

comment:5 by krs_vital, 7 years ago

comment:6 by Steven Liu, 7 years ago

[root@chinaffmpeg hlsenc]# .//ffmpeg -re -i /root/test/mute.ts -sn -dn -c copy -map 0 -copyts -ignore_unknown -avoid_negative_ts 0 -g 1 -r 50 -strict -2 output.ts
ffmpeg version N-85796-ga0e5f7f Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-18)
  configuration: --enable-libx264 --enable-gpl
  libavutil      55. 61.100 / 55. 61.100
  libavcodec     57. 94.100 / 57. 94.100
  libavformat    57. 72.101 / 57. 72.101
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 88.100 /  6. 88.100
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
[h264 @ 0x3e8c160] SPS unavailable in decode_picture_timing
[h264 @ 0x3e8c160] non-existing PPS 0 referenced
[h264 @ 0x3e8c160] SPS unavailable in decode_picture_timing
[h264 @ 0x3e8c160] non-existing PPS 0 referenced
[h264 @ 0x3e8c160] decode_slice_header error
[h264 @ 0x3e8c160] no frame!
[h264 @ 0x3e8c160] SPS unavailable in decode_picture_timing
[h264 @ 0x3e8c160] non-existing PPS 0 referenced
[h264 @ 0x3e8c160] SPS unavailable in decode_picture_timing
[h264 @ 0x3e8c160] non-existing PPS 0 referenced
[h264 @ 0x3e8c160] decode_slice_header error
[h264 @ 0x3e8c160] no frame!
[h264 @ 0x3e8c160] SPS unavailable in decode_picture_timing
[h264 @ 0x3e8c160] non-existing PPS 0 referenced
[h264 @ 0x3e8c160] SPS unavailable in decode_picture_timing
[h264 @ 0x3e8c160] non-existing PPS 0 referenced
[h264 @ 0x3e8c160] decode_slice_header error
[h264 @ 0x3e8c160] no frame!
[h264 @ 0x3e8c160] SPS unavailable in decode_picture_timing
[h264 @ 0x3e8c160] non-existing PPS 0 referenced
[h264 @ 0x3e8c160] SPS unavailable in decode_picture_timing
[h264 @ 0x3e8c160] non-existing PPS 0 referenced
[h264 @ 0x3e8c160] decode_slice_header error
[h264 @ 0x3e8c160] no frame!
[h264 @ 0x3e8c160] non-existing SPS 0 referenced in buffering period
[h264 @ 0x3e8c160] SPS unavailable in decode_picture_timing
[h264 @ 0x3e8c160] non-existing SPS 0 referenced in buffering period
[h264 @ 0x3e8c160] SPS unavailable in decode_picture_timing
Input #0, mpegts, from '/root/test/mute.ts':
  Duration: 00:06:45.62, start: 583.224000, bitrate: 8814 kb/s
  Program 235
    Stream #0:0[0xbb9]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 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, 195 kb/s
File 'output.ts' already exists. Overwrite ? [y/N] y
Output #0, mpegts, to 'output.ts':
  Metadata:
    encoder         : Lavf57.72.101
    Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1(eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 195 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=    0 fps=0.0 q=-1.0 Lsize=       1kB time=00:09:43.22 bitrate=   0.0kbits/s speed=47.6x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 121.176468%
[root@chinaffmpeg hlsenc]# ll output.ts
-rw-r--r--. 1 root root 1128 May  5 19:53 output.ts
[root@chinaffmpeg hlsenc]# ll /root/test/mute.ts
-rw-r--r--. 1 root root 446914916 May  5 19:43 /root/test/mute.ts
[root@chinaffmpeg hlsenc]#

maybe the mpegts file has problem.

comment:7 by Steven Liu, 7 years ago

[root@chinaffmpeg hlsenc]# ./ffmpeg -v debug -re -i /root/test/mute.ts -sn -dn -c copy -map 0 -copyts -ignore_unknown -avoid_negative_ts 0 -g 1 -r 50 -strict -2 output.ts
ffmpeg version N-85796-ga0e5f7f Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-18)
  configuration: --enable-libx264 --enable-gpl
  libavutil      55. 61.100 / 55. 61.100
  libavcodec     57. 94.100 / 57. 94.100
  libavformat    57. 72.101 / 57. 72.101
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 88.100 /  6. 88.100
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'debug'.
Reading option '-re' ... matched as option 're' (read input at native frame rate) with argument '1'.
Reading option '-i' ... matched as input url with argument '/root/test/mute.ts'.
Reading option '-sn' ... matched as option 'sn' (disable subtitle) with argument '1'.
Reading option '-dn' ... matched as option 'dn' (disable data) with argument '1'.
Reading option '-c' ... matched as option 'c' (codec name) with argument 'copy'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0'.
Reading option '-copyts' ... matched as option 'copyts' (copy timestamps) with argument '1'.
Reading option '-ignore_unknown' ... matched as option 'ignore_unknown' (Ignore unknown stream types) with argument '1'.
Reading option '-avoid_negative_ts' ... matched as AVOption 'avoid_negative_ts' with argument '0'.
Reading option '-g' ... matched as AVOption 'g' with argument '1'.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '50'.
Reading option '-strict' ...Routing option strict to both codec and muxer layer
 matched as AVOption 'strict' with argument '-2'.
Reading option 'output.ts' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument debug.
Applying option copyts (copy timestamps) with argument 1.
Applying option ignore_unknown (Ignore unknown stream types) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input url /root/test/mute.ts.
Applying option re (read input at native frame rate) with argument 1.
Successfully parsed a group of options.
Opening an input file: /root/test/mute.ts.
[file @ 0x3323f20] Setting default whitelist 'file,crypto'
[mpegts @ 0x33235e0] Format mpegts probed with size=2048 and score=50
[mpegts @ 0x33235e0] stream=0 stream_type=1b pid=bb9 prog_reg_desc=
[mpegts @ 0x33235e0] stream=1 stream_type=f pid=c27 prog_reg_desc=
[mpegts @ 0x33235e0] Before avformat_find_stream_info() pos: 0 bytes read:32768 seeks:0 nb_streams:2
[h264 @ 0x3328180] SPS unavailable in decode_picture_timing
[h264 @ 0x3328180] non-existing PPS 0 referenced
[AVBSFContext @ 0x336ed00] nal_unit_type: 9, nal_ref_idc: 0
[AVBSFContext @ 0x336ed00] nal_unit_type: 6, nal_ref_idc: 0
[AVBSFContext @ 0x336ed00] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x3328180] nal_unit_type: 9, nal_ref_idc: 0
[h264 @ 0x3328180] nal_unit_type: 6, nal_ref_idc: 0
[h264 @ 0x3328180] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x3328180] SPS unavailable in decode_picture_timing
[h264 @ 0x3328180] non-existing PPS 0 referenced
[h264 @ 0x3328180] decode_slice_header error
[h264 @ 0x3328180] no frame!
[h264 @ 0x3328180] SPS unavailable in decode_picture_timing
[h264 @ 0x3328180] non-existing PPS 0 referenced
[AVBSFContext @ 0x336ed00] nal_unit_type: 9, nal_ref_idc: 0
[AVBSFContext @ 0x336ed00] nal_unit_type: 6, nal_ref_idc: 0
[AVBSFContext @ 0x336ed00] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x3328180] nal_unit_type: 9, nal_ref_idc: 0
[h264 @ 0x3328180] nal_unit_type: 6, nal_ref_idc: 0
[h264 @ 0x3328180] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x3328180] SPS unavailable in decode_picture_timing
[h264 @ 0x3328180] non-existing PPS 0 referenced
[h264 @ 0x3328180] decode_slice_header error
[h264 @ 0x3328180] no frame!
[h264 @ 0x3328180] SPS unavailable in decode_picture_timing
[h264 @ 0x3328180] non-existing PPS 0 referenced
[AVBSFContext @ 0x336ed00] nal_unit_type: 9, nal_ref_idc: 0
[AVBSFContext @ 0x336ed00] nal_unit_type: 6, nal_ref_idc: 0
[AVBSFContext @ 0x336ed00] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0x3328180] nal_unit_type: 9, nal_ref_idc: 0
[h264 @ 0x3328180] nal_unit_type: 6, nal_ref_idc: 0
[h264 @ 0x3328180] nal_unit_type: 1, nal_ref_idc: 2
[h264 @ 0x3328180] SPS unavailable in decode_picture_timing
[h264 @ 0x3328180] non-existing PPS 0 referenced
[h264 @ 0x3328180] decode_slice_header error
[h264 @ 0x3328180] no frame!
[h264 @ 0x3328180] SPS unavailable in decode_picture_timing
[h264 @ 0x3328180] non-existing PPS 0 referenced
[AVBSFContext @ 0x336ed00] nal_unit_type: 9, nal_ref_idc: 0
[AVBSFContext @ 0x336ed00] nal_unit_type: 6, nal_ref_idc: 0
[AVBSFContext @ 0x336ed00] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x3328180] nal_unit_type: 9, nal_ref_idc: 0
[h264 @ 0x3328180] nal_unit_type: 6, nal_ref_idc: 0
[h264 @ 0x3328180] nal_unit_type: 1, nal_ref_idc: 0
[h264 @ 0x3328180] SPS unavailable in decode_picture_timing
[h264 @ 0x3328180] non-existing PPS 0 referenced
[h264 @ 0x3328180] decode_slice_header error
[h264 @ 0x3328180] no frame!
[h264 @ 0x3328180] non-existing SPS 0 referenced in buffering period
[h264 @ 0x3328180] SPS unavailable in decode_picture_timing
[AVBSFContext @ 0x336ed00] nal_unit_type: 9, nal_ref_idc: 0
[AVBSFContext @ 0x336ed00] nal_unit_type: 6, nal_ref_idc: 0
    Last message repeated 1 times
[AVBSFContext @ 0x336ed00] nal_unit_type: 7, nal_ref_idc: 3
[AVBSFContext @ 0x336ed00] nal_unit_type: 8, nal_ref_idc: 3
[AVBSFContext @ 0x336ed00] nal_unit_type: 5, nal_ref_idc: 3
[h264 @ 0x3328180] nal_unit_type: 9, nal_ref_idc: 0
[h264 @ 0x3328180] nal_unit_type: 6, nal_ref_idc: 0
    Last message repeated 1 times
[h264 @ 0x3328180] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x3328180] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 0x3328180] nal_unit_type: 5, nal_ref_idc: 3
[h264 @ 0x3328180] non-existing SPS 0 referenced in buffering period
[h264 @ 0x3328180] SPS unavailable in decode_picture_timing
[h264 @ 0x3328180] Reinit context to 1920x1088, pix_fmt: yuv420p
[h264 @ 0x3328180] no picture
[h264 @ 0x3328180] ct_type:1 pic_struct:0
    Last message repeated 114 times
[mpegts @ 0x33235e0] Probe buffer size limit of 5000000 bytes reached
[mpegts @ 0x33235e0] After avformat_find_stream_info() pos: 0 bytes read:5689488 seeks:2 frames:350
Input #0, mpegts, from '/root/test/mute.ts':
  Duration: 00:06:45.62, start: 583.224000, bitrate: 8814 kb/s
  Program 235
    Stream #0:0[0xbb9], 120, 1/90000: Video: h264 (High), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive, left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 0/1, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0xc27](eng), 230, 1/90000: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 195 kb/s
Successfully opened the file.
Parsing a group of options: output url output.ts.
Applying option sn (disable subtitle) with argument 1.
Applying option dn (disable data) with argument 1.
Applying option c (codec name) with argument copy.
Applying option map (set input stream mapping) with argument 0.
Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 50.
Successfully parsed a group of options.
Opening an output file: output.ts.
File 'output.ts' already exists. Overwrite ? [y/N] y
[file @ 0x33571a0] Setting default whitelist 'file,crypto'
Successfully opened the file.
[mpegts @ 0x332a440] muxrate VBR, pcr every 5 pkts, sdt every 200, pat/pmt every 40 pkts
Output #0, mpegts, to 'output.ts':
  Metadata:
    encoder         : Lavf57.72.101
    Stream #0:0, 0, 1/90000: Video: h264 (High), 1 reference frame ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive, left), 1920x1080 (0x0) [SAR 1:1 DAR 16:9], 0/1, q=2-31, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1(eng), 0, 1/90000: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 195 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    Last message repeated 102 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=1.15e+03x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed= 573x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed= 382x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed= 286x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed= 229x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed= 191x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed= 164x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed= 143x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed= 127x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed= 115x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed= 104x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=95.5x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=88.1x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=81.8x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=76.4x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=71.6x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=67.4x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=63.7x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=60.3x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=57.3x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=54.6x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=52.1x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=49.8x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=47.7x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=45.8x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=44.1x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=42.4x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=40.9x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=39.5x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=38.2x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=  37x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=35.8x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=34.7x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=33.7x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=32.7x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=31.8x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=  31x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=30.2x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=29.4x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=28.6x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=  28x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=27.3x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=26.7x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=  26x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=25.5x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=24.9x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=24.4x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=23.9x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=23.4x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=22.9x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=22.5x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=  22x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=21.6x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=21.2x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=20.8x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=20.5x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=20.1x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=19.8x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=19.4x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=19.1x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=18.8x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=18.5x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=18.2x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=17.9x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=17.6x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=17.4x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=17.1x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=16.9x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=16.6x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=16.4x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=16.1x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=15.9x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=15.7x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=15.5x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=15.3x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=15.1x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=14.9x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=14.7x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=14.5x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=14.3x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=14.1x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=  14x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=13.8x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=13.6x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=13.5x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=13.3x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=13.2x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=  13x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=12.9x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=12.7x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=12.6x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=12.5x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=12.3x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=12.2x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=12.1x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=11.9x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=11.8x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=11.7x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=11.6x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=11.5x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=11.3x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=11.2x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=11.1x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=  11x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=10.9x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=10.8x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=10.7x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=10.6x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=10.5x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=10.4x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=10.3x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=10.2x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=10.1x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=10.1x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=9.97x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=9.88x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed= 9.8x
    Last message repeated 99 times
cur_dts is invalid (this is harmless if it occurs once at the start per stream)/s speed=9.71x
    Last message repeated 78 times
frame=    0 fps=0.0 q=-1.0 Lsize=       1kB time=00:09:43.22 bitrate=   0.0kbits/s speed=9.65x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 121.176468%
Input file #0 (/root/test/mute.ts):
  Input stream #0:0 (video): 0 packets read (0 bytes);
  Input stream #0:1 (audio): 1 packets read (510 bytes);
  Total: 1 packets (510 bytes) demuxed
Output file #0 (output.ts):
  Output stream #0:0 (video): 0 packets muxed (0 bytes);
  Output stream #0:1 (audio): 1 packets muxed (510 bytes);
  Total: 1 packets (510 bytes) muxed
0 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x335f520] Statistics: 0 seeks, 1 writeouts
[AVIOContext @ 0x332c240] Statistics: 5722256 bytes read, 2 seeks
[root@chinaffmpeg hlsenc]# ls

This is the -v debug log

comment:8 by Steven Liu, 7 years ago

Ah, the problem is happend when use both -re and -copyts

comment:9 by krs_vital, 7 years ago

if i use -copytb 1 for input hls chunks generate without problem...
its advice from order

https://trac.ffmpeg.org/ticket/6287

/usr/local/bin/ffmpeg -copytb 1 -fflags nobuffer -overrun_nonfatal 1 -i udp://239.192.7.44:1234 ...

Note: See TracTickets for help on using tickets.