Opened 9 months ago

Last modified 8 months ago

#9237 new defect

HLS dont make chunks from some UDP streams

Reported by: krs_vital Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: hls
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by krs_vital)

file for example (saved from UDP stream):
https://mycloud.g-service.ru:4430/s/4ts4krK2VS9Lh81

ffmpeg version N-102493-g7ce0f24 Copyright (c) 2000-2021 the FFmpeg developers

command:
ffmpeg -re -i ./Lider.ts -sn -dn -c:v copy -c:a aac -hls_allow_cache 0 -hls_list_size 6 -hls_time 6 -hls_flags delete_segments+omit_endlist -map 0 -ignore_unknown -strftime 1 -hls_segment_filename /var/db/stream_Lider.ts /var/db/Lider.m3u8

ffmpeg version N-102493-g7ce0f24 Copyright (c) 2000-2021 the FFmpeg developers

built with gcc 5.4.0 (GCC)
configuration: --libdir=/usr/lib64
libavutil 57. 0.100 / 57. 0.100
libavcodec 59. 1.100 / 59. 1.100
libavformat 59. 0.101 / 59. 0.101
libavdevice 59. 0.100 / 59. 0.100
libavfilter 8. 0.101 / 8. 0.101
libswscale 6. 0.100 / 6. 0.100
libswresample 4. 0.100 / 4. 0.100

Input #0, mpegts, from './Lider.ts':

Duration: 00:00:37.54, start: 1.402667, bitrate: 2766 kb/s
Program 1

Metadata:

service_name : Service01
service_provider: FFmpeg

Stream #0:0[0x100]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 2562 kb/s, 25 fps, 25 tbr, 90k tbn

Side data:

cpb: bitrate max/min/avg: 2562000/0/0 buffer size: 1277952 vbv_delay: N/A

Stream #0:1[0x101](rad): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 130 kb/s

Stream mapping:

Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (aac (native) -> aac (native))

Press [q] to stop, ? for help
Output #0, hls, to '/var/db/Lider.m3u8':

Metadata:

encoder : Lavf59.0.101

Stream #0:0: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], q=2-31, 2562 kb/s, 25 fps, 25 tbr, 90k tbn

Side data:

cpb: bitrate max/min/avg: 2562000/0/0 buffer size: 1277952 vbv_delay: N/A

Stream #0:1(rad): Audio: aac (LC), 48000 Hz, stereo, fltp, 128 kb/s

Metadata:

encoder : Lavc59.1.100 aac

frame= 0 fps=0.0 q=-1.0 size=N/A time=00:00:00.00 bitrate=N/A speed=N/A
frame= 0 fps=0.0 q=-1.0 size=N/A time=00:00:00.46 bitrate=N/A speed=0.923x
[hls @ 0x24af640] 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 @ 0x241c8c0] 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
frame= 10 fps=9.9 q=-1.0 size=N/A time=00:00:00.98 bitrate=N/A speed=0.968x
frame= 22 fps= 14 q=-1.0 size=N/A time=00:00:01.49 bitrate=N/A speed=0.983x
frame= 35 fps= 17 q=-1.0 size=N/A time=00:00:01.98 bitrate=N/A speed=0.98x
frame= 48 fps= 19 q=-1.0 size=N/A time=00:00:02.50 bitrate=N/A speed=0.988x
frame= 60 fps= 20 q=-1.0 size=N/A time=00:00:03.00 bitrate=N/A speed=0.991x
frame= 73 fps= 21 q=-1.0 size=N/A time=00:00:03.50 bitrate=N/A speed=0.989x
frame= 85 fps= 21 q=-1.0 size=N/A time=00:00:04.01 bitrate=N/A speed=0.991x
frame= 98 fps= 22 q=-1.0 size=N/A time=00:00:04.52 bitrate=N/A speed=0.994x
frame= 111 fps= 22 q=-1.0 size=N/A time=00:00:05.03 bitrate=N/A speed=0.995x
frame= 124 fps= 22 q=-1.0 size=N/A time=00:00:05.54 bitrate=N/A speed=0.996x
frame= 137 fps= 23 q=-1.0 size=N/A time=00:00:06.06 bitrate=N/A speed=0.998x
frame= 149 fps= 23 q=-1.0 size=N/A time=00:00:06.54 bitrate=N/A speed=0.996x
frame= 162 fps= 23 q=-1.0 size=N/A time=00:00:07.06 bitrate=N/A speed=0.997x
frame= 175 fps= 23 q=-1.0 size=N/A time=00:00:07.58 bitrate=N/A speed=0.999x
frame= 188 fps= 23 q=-1.0 size=N/A time=00:00:08.10 bitrate=N/A speed= 1x
frame= 201 fps= 23 q=-1.0 size=N/A time=00:00:08.62 bitrate=N/A speed= 1x
frame= 213 fps= 23 q=-1.0 size=N/A time=00:00:09.10 bitrate=N/A speed= 1x
frame= 226 fps= 24 q=-1.0 size=N/A time=00:00:09.62 bitrate=N/A speed= 1x
frame= 238 fps= 24 q=-1.0 size=N/A time=00:00:10.10 bitrate=N/A speed=0.998x
frame= 251 fps= 24 q=-1.0 size=N/A time=00:00:10.62 bitrate=N/A speed= 1x
frame= 264 fps= 24 q=-1.0 size=N/A time=00:00:11.14 bitrate=N/A speed= 1x
frame= 277 fps= 24 q=-1.0 size=N/A time=00:00:11.66 bitrate=N/A speed= 1x
frame= 290 fps= 24 q=-1.0 size=N/A time=00:00:12.18 bitrate=N/A speed= 1x
frame= 302 fps= 24 q=-1.0 size=N/A time=00:00:12.66 bitrate=N/A speed= 1x
frame= 315 fps= 24 q=-1.0 size=N/A time=00:00:13.18 bitrate=N/A speed= 1x
frame= 327 fps= 24 q=-1.0 size=N/A time=00:00:13.66 bitrate=N/A speed= 1x
frame= 340 fps= 24 q=-1.0 size=N/A time=00:00:14.18 bitrate=N/A speed= 1x
frame= 353 fps= 24 q=-1.0 size=N/A time=00:00:14.70 bitrate=N/A speed= 1x
frame= 365 fps= 24 q=-1.0 size=N/A time=00:00:15.18 bitrate=N/A speed= 1x
frame= 378 fps= 24 q=-1.0 size=N/A time=00:00:15.70 bitrate=N/A speed= 1x
frame= 390 fps= 24 q=-1.0 size=N/A time=00:00:16.18 bitrate=N/A speed=0.999x
frame= 403 fps= 24 q=-1.0 size=N/A time=00:00:16.70 bitrate=N/A speed= 1x
frame= 416 fps= 24 q=-1.0 size=N/A time=00:00:17.22 bitrate=N/A speed= 1x
frame= 428 fps= 24 q=-1.0 size=N/A time=00:00:17.70 bitrate=N/A speed= 1x
frame= 441 fps= 24 q=-1.0 size=N/A time=00:00:18.22 bitrate=N/A speed= 1x
frame= 454 fps= 24 q=-1.0 size=N/A time=00:00:18.74 bitrate=N/A speed= 1x
frame= 467 fps= 24 q=-1.0 size=N/A time=00:00:19.26 bitrate=N/A speed= 1x
frame= 479 fps= 24 q=-1.0 size=N/A time=00:00:19.74 bitrate=N/A speed= 1x
frame= 492 fps= 24 q=-1.0 size=N/A time=00:00:20.26 bitrate=N/A speed= 1x
frame= 505 fps= 24 q=-1.0 size=N/A time=00:00:20.78 bitrate=N/A speed= 1x
frame= 517 fps= 24 q=-1.0 size=N/A time=00:00:21.26 bitrate=N/A speed= 1x
frame= 530 fps= 24 q=-1.0 size=N/A time=00:00:21.78 bitrate=N/A speed= 1x
frame= 542 fps= 24 q=-1.0 size=N/A time=00:00:22.26 bitrate=N/A speed= 1x
frame= 555 fps= 24 q=-1.0 size=N/A time=00:00:22.78 bitrate=N/A speed= 1x
frame= 568 fps= 24 q=-1.0 size=N/A time=00:00:23.30 bitrate=N/A speed= 1x
frame= 581 fps= 24 q=-1.0 size=N/A time=00:00:23.82 bitrate=N/A speed= 1x
frame= 593 fps= 24 q=-1.0 size=N/A time=00:00:24.30 bitrate=N/A speed= 1x
frame= 606 fps= 24 q=-1.0 size=N/A time=00:00:24.82 bitrate=N/A speed= 1x
frame= 619 fps= 24 q=-1.0 size=N/A time=00:00:25.34 bitrate=N/A speed= 1x
frame= 631 fps= 24 q=-1.0 size=N/A time=00:00:25.82 bitrate=N/A speed= 1x
frame= 644 fps= 24 q=-1.0 size=N/A time=00:00:26.34 bitrate=N/A speed= 1x
frame= 657 fps= 25 q=-1.0 size=N/A time=00:00:26.86 bitrate=N/A speed= 1x
frame= 670 fps= 25 q=-1.0 size=N/A time=00:00:27.38 bitrate=N/A speed= 1x
frame= 683 fps= 25 q=-1.0 size=N/A time=00:00:27.90 bitrate=N/A speed= 1x
frame= 695 fps= 25 q=-1.0 size=N/A time=00:00:28.38 bitrate=N/A speed= 1x
frame= 708 fps= 25 q=-1.0 size=N/A time=00:00:28.90 bitrate=N/A speed= 1x
frame= 721 fps= 25 q=-1.0 size=N/A time=00:00:29.42 bitrate=N/A speed= 1x
frame= 733 fps= 25 q=-1.0 size=N/A time=00:00:29.90 bitrate=N/A speed= 1x
frame= 746 fps= 25 q=-1.0 size=N/A time=00:00:30.42 bitrate=N/A speed= 1x
frame= 758 fps= 25 q=-1.0 size=N/A time=00:00:30.90 bitrate=N/A speed= 1x
frame= 771 fps= 25 q=-1.0 size=N/A time=00:00:31.42 bitrate=N/A speed= 1x
frame= 782 fps= 25 q=-1.0 size=N/A time=00:00:31.86 bitrate=N/A speed=0.999x
frame= 795 fps= 25 q=-1.0 size=N/A time=00:00:32.38 bitrate=N/A speed= 1x
frame= 808 fps= 25 q=-1.0 size=N/A time=00:00:32.90 bitrate=N/A speed= 1x
frame= 820 fps= 25 q=-1.0 size=N/A time=00:00:33.38 bitrate=N/A speed= 1x
frame= 832 fps= 25 q=-1.0 size=N/A time=00:00:33.87 bitrate=N/A speed=0.999x
frame= 845 fps= 25 q=-1.0 size=N/A time=00:00:34.38 bitrate=N/A speed=0.999x
frame= 857 fps= 25 q=-1.0 size=N/A time=00:00:34.88 bitrate=N/A speed=0.999x
frame= 870 fps= 25 q=-1.0 size=N/A time=00:00:35.39 bitrate=N/A speed=0.999x
frame= 883 fps= 25 q=-1.0 size=N/A time=00:00:35.90 bitrate=N/A speed=0.999x
frame= 895 fps= 25 q=-1.0 size=N/A time=00:00:36.39 bitrate=N/A speed=0.999x
frame= 908 fps= 25 q=-1.0 size=N/A time=00:00:36.90 bitrate=N/A speed=0.999x
frame= 923 fps= 25 q=-1.0 size=N/A time=00:00:37.50 bitrate=N/A speed= 1x
[hls @ 0x24af640] Opening '/var/db/stream_Lider.ts' for writing
[hls @ 0x24af640] Opening '/var/db/Lider.m3u8.tmp' for writing
frame= 924 fps= 25 q=-1.0 Lsize=N/A time=00:00:37.54 bitrate=N/A speed= 1x
video:11562kB audio:590kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[aac @ 0x2570dc0] Qavg: 165.425

cat /var/db/Lider.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-ALLOW-CACHE:NO
#EXT-X-TARGETDURATION:28
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:27.720000,
/ts/Lider/stream_Lider.ts

P.S: +split_by_time option don't take any results

Change History (5)

comment:1 by Carl Eugen Hoyos, 9 months ago

Keywords: hls added

At least provide the command line you tested together with the complete, uncut console output to make this a valid ticket.

comment:2 by krs_vital, 9 months ago

Description: modified (diff)

comment:3 by krs_vital, 8 months ago

release/3.0 works well!

git clone --branch release/3.0 https://github.com/FFmpeg/FFmpeg.git

please fix latest release

comment:5 by krs_vital, 8 months ago

thanks! the problem has been resolved!

Note: See TracTickets for help on using tickets.