Opened 7 years ago
Closed 7 years ago
#6395 closed defect (needs_more_info)
sound disappears after some time with hls encoder
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
ffmpeg version:
ffmpeg version N-84010-ge2adbcb Copyright (c) 2000-2017 the FFmpeg developers
command:
/usr/local/bin/ffmpeg -copytb 1 -avoid_negative_ts 2 -fflags nobuffer+bitexact+flush_packets -overrun_nonfatal 1 -i udp://239.192.14.40:1234 -sn -dn -c copy -hls_allow_cache 0 -hls_base_url /ts/AzTV/ -hls_list_size 5 -hls_time 5 -hls_flags delete_segments+omit_endlist+split_by_time -map 0 -ignore_unknown -r 50 -strict -2 -use_localtime 1 -hls_segment_filename /hls/ts/AzTV/stream_%s.ts /hls/pl/AzTV.m3u8
link to hls chunks with playlist:
https://mycloud.g-service.ru/owncloud/index.php/s/a6AROC5odD8MCuj
solution is restart ffmpeg, after that sound appears
Change History (7)
comment:1 by , 7 years ago
comment:2 by , 7 years ago
To make this a valid ticket please provide an input file that allows to reproduce and the command line you tested together with the complete, uncut console output.
comment:3 by , 7 years ago
its not a stream problem, because in main udp stream sound works fine, and after restart ffmpeg sound apears to! this problem may appear on other streams and I can't figure out what it depends on.
I noticed that when there is a problem with the signal on the satellite, the probability of occurrence of this problem is very large
link to input file:
https://mycloud.g-service.ru/owncloud/index.php/s/Xou93ybfI0rK6Vi
comment:4 by , 7 years ago
I saw there is a warning message, but play the mpegts and m3u8 is ok:
message bellow:
[root@chinaffmpeg html]# ffmpeg -v verbose -re -i /root/test/out.ts -c copy -f hls a.m3u8 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 [mp2 @ 0x2e6f1c0] Header missing [mpegts @ 0x2e693e0] max_analyze_duration 5000000 reached at 5016000 microseconds st:1 [mpegts @ 0x2e693e0] PES packet size mismatch Input #0, mpegts, from '/root/test/out.ts': Duration: 00:03:13.44, start: 29657.128678, bitrate: 4041 kb/s Program 1 Stream #0:0[0x134]: Video: mpeg2video (Main), 1 reference frame ([2][0][0][0] / 0x0002), yuv420p(tv, top first, left), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x100](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 128 kb/s (hearing impaired) [mpegts @ 0x2e9b680] muxrate VBR, pcr every 2 pkts, sdt every 2147483647, pat/pmt every 2147483647 pkts Output #0, hls, to 'a.m3u8': Metadata: encoder : Lavf57.72.101 Stream #0:0: Video: mpeg2video (Main), 1 reference frame ([2][0][0][0] / 0x0002), yuv420p(tv, top first, left), 720x576 (0x0) [SAR 64:45 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 25 tbc Stream #0:1(eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 128 kb/s (hearing impaired) Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help [hls @ 0x2e70da0] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly [mpegts @ 0x2e9b680] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:0:02.55 bitrate=N/A speed=1.01x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:0:04.07 bitrate=N/A speed=1.01x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:0:06.07 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:0:07.59 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:0:10.11 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:1:12.67 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:2:14.15 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:3:16.19 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:4:18.19 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:5:20.23 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:6:22.23 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:7:24.23 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:8:26.27 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:9:28.27 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:1030.31 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:1132.31 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:1233.83 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:1336.33 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:1438.35 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:1540.39 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:1642.39 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:1743.91 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:1845.88 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:1948.43 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:2049.95 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:2152.47 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:2253.99 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:2356.03 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:2457.55 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:2500.07 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:2602.59 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:2704.07 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:2806.11 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:2907.63 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:3010.15 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:3112.15 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:3214.15 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:3316.19 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:3417.71 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:3520.23 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:3621.75 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:3724.24 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:3826.27 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:3928.27 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:4030.31 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:4131.83 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:4233.83 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:4336.35 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:4438.39 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:4539.87 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:4642.39 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:4743.91 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:4845.91 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:4948.43 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:5050.47 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:5152.47 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:5253.99 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:5355.99 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:5458.03 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:5500.03 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:5602.59 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:5704.07 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:5806.07 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:5907.59 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:6010.11 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:6112.67 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:6214.15 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:6316.19 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:6417.71 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:6520.23 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:6622.23 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:6724.27 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:6826.27 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:6928.31 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:7030.31 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:7131.83 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:7233.83 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:7336.35 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:7438.39 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:7540.39 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:7641.91 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:7743.91 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:7845.95 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:7948.47 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:8050.47 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:8152.51 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:8253.99 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:8355.99 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:8458.03 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:8500.55 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:8602.55 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:8704.07 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:8806.11 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:8908.11 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:9010.15 bitrate=N/A speed= 1x [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:9112.67 bitrate=N/A speed= 1x [mpegts @ 0x2e693e0] PES packet size mismatch3:13.15 bitrate=N/A speed= 1x No more output streams to write to, finishing. [hls muxer @ 0x2e96ea0] EXT-X-MEDIA-SEQUENCE:92 frame= 4833 fps= 25 q=-1.0 Lsize=N/A time=00:03:13.59 bitrate=N/A speed= 1x video:89632kB audio:3021kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Input file #0 (/root/test/out.ts): Input stream #0:0 (video): 4833 packets read (91782927 bytes); Input stream #0:1 (audio): 8055 packets read (3093056 bytes); Total: 12888 packets (94875983 bytes) demuxed Output file #0 (a.m3u8): Output stream #0:0 (video): 4833 packets muxed (91782927 bytes); Output stream #0:1 (audio): 8055 packets muxed (3093056 bytes); Total: 12888 packets (94875983 bytes) muxed [root@chinaffmpeg html]# [root@chinaffmpeg html]# ffmpeg -v verbose -i out.ts -c copy -f mpegts 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 out.ts: No such file or directory [root@chinaffmpeg html]# [root@chinaffmpeg html]# ffmpeg -v verbose -i /root/test/out.ts -c copy -f mpegts 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 [mp2 @ 0x2de41a0] Header missing [mpegts @ 0x2dde3c0] max_analyze_duration 5000000 reached at 5016000 microseconds st:1 [mpegts @ 0x2dde3c0] PES packet size mismatch Input #0, mpegts, from '/root/test/out.ts': Duration: 00:03:13.44, start: 29657.128678, bitrate: 4041 kb/s Program 1 Stream #0:0[0x134]: Video: mpeg2video (Main), 1 reference frame ([2][0][0][0] / 0x0002), yuv420p(tv, top first, left), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0:1[0x100](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 128 kb/s (hearing impaired) [mpegts @ 0x2de5d80] muxrate VBR, pcr every 9000 pkts, sdt every 200, pat/pmt every 40 pkts Output #0, mpegts, to 'output.ts': Metadata: encoder : Lavf57.72.101 Stream #0:0: Video: mpeg2video (Main), 1 reference frame ([2][0][0][0] / 0x0002), yuv420p(tv, top first, left), 720x576 (0x0) [SAR 64:45 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc Stream #0:1(eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 128 kb/s (hearing impaired) Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help [mpegts @ 0x2de5d80] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly [mpegts @ 0x2dde3c0] PES packet size mismatch No more output streams to write to, finishing. frame= 4833 fps=0.0 q=-1.0 Lsize= 100936kB time=00:03:13.59 bitrate=4271.1kbits/s speed=1.18e+03x video:89632kB audio:3021kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 8.940586% Input file #0 (/root/test/out.ts): Input stream #0:0 (video): 4833 packets read (91782927 bytes); Input stream #0:1 (audio): 8055 packets read (3093056 bytes); Total: 12888 packets (94875983 bytes) demuxed Output file #0 (output.ts): Output stream #0:0 (video): 4833 packets muxed (91782927 bytes); Output stream #0:1 (audio): 8055 packets muxed (3093056 bytes); Total: 12888 packets (94875983 bytes) muxed [root@chinaffmpeg html]#
follow-ups: 6 7 comment:5 by , 7 years ago
and what can i do when i see this message?
"Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly"
i saw many streams that shown this
how can i set timestamps for input mpegts streams?
comment:6 by , 7 years ago
Replying to krs_vital:
and what can i do when i see this message?
"Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly"
i saw many streams that shown this
how can i set timestamps for input mpegts streams?
Maybe the problem is from encoders? the message just warning user there maybe have problem in output files.
I cannot sure how to fix the input stream, waiting other guys response this :(
comment:7 by , 7 years ago
Resolution: | → needs_more_info |
---|---|
Status: | new → closed |
Replying to krs_vital:
and what can i do when i see this message?
"Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly"
There is nothing you can do, the message is not meant for users of the ffmpeg
command line utility.
Please explain how I can reproduce the "sound disappears" issue with the sample you uploaded by providing the command line you tested together with the complete, uncut console ouptut and reopen this ticket.
If you writeing hls error, can you try to write mpegts again to check if the problem is hls problem or the stream problem? and maybe the problem is happened in the UDP stream ?