[FFmpeg-trac] #6287(undetermined:new): HLS: error with no sync m3u8 playlist file and chunks
FFmpeg
trac at avcodec.org
Mon Apr 3 13:28:03 EEST 2017
#6287: HLS: error with no sync m3u8 playlist file and 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 |
-------------------------------------+-------------------------------------
ffmpeg version:
[root at stream-1 ~]# ffmpeg
ffmpeg version N-84010-ge2adbcb Copyright (c) 2000-2017 the FFmpeg
developers
built with gcc 5.3.1 (GCC) 20160406 (Red Hat 5.3.1-6)
configuration: --libdir=/usr/lib64
libavutil 55. 48.100 / 55. 48.100
libavcodec 57. 83.100 / 57. 83.100
libavformat 57. 66.104 / 57. 66.104
libavdevice 57. 3.100 / 57. 3.100
libavfilter 6. 76.100 / 6. 76.100
libswscale 4. 3.101 / 4. 3.101
libswresample 2. 4.100 / 2. 4.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options]
outfile}...
hls streaming string:
/usr/local/bin/ffmpeg -probesize 2000k -fifo_size 512k -buffer_size 256k
-overrun_nonfatal 1 -i udp://239.192.29.223:1234 -sn -dn -vcodec copy
-acodec aac -hls_allow_cache 0 -hls_base_url /ts/1KANAL_HD/ -hls_list_size
5 -hls_time 5 -hls_flags delete_segments+omit_endlist -map 0 -r 50 -copyts
-g 1 -ignore_unknown -shortest -avoid_negative_ts make_zero -fflags
+genpts -use_localtime 1 -hls_segment_filename
/hls/ts/1KANAL_HD/stream_%Y%m%d-%s.ts /hls/pl/1KANAL_HD.m3u8
playlist file:
[root at stream-2 1KANAL_HD]# cat ./1KANAL_HD.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-ALLOW-CACHE:NO
#EXT-X-TARGETDURATION:6
#EXT-X-MEDIA-SEQUENCE:0
#EXTINF:5.706211,
/ts/1KANAL_HD/stream_20170403-1491212046.ts
#EXTINF:5.440000,
/ts/1KANAL_HD/stream_20170403-1491212050.ts
#EXTINF:4.640000,
/ts/1KANAL_HD/stream_20170403-1491212055.ts
#EXTINF:4.960000,
/ts/1KANAL_HD/stream_20170403-1491212060.ts
first problem is:
bad param is: #EXT-X-MEDIA-SEQUENCE:0
second problem is:
[root at stream-2 1KANAL_HD]# ls -l
итого 202576
-rw-r--r-- 1 root root 5610860 Apr 3 16:31
stream_20170403-1491211857.ts
-rw-r--r-- 1 root root 6053600 Apr 3 16:31
stream_20170403-1491211862.ts
-rw-r--r-- 1 root root 4212704 Apr 3 16:31
stream_20170403-1491211868.ts
-rw-r--r-- 1 root root 4167584 Apr 3 16:31
stream_20170403-1491211873.ts
-rw-r--r-- 1 root root 3556584 Apr 3 16:31
stream_20170403-1491211877.ts
-rw-r--r-- 1 root root 4489440 Apr 3 16:31
stream_20170403-1491211882.ts
-rw-r--r-- 1 root root 4538132 Apr 3 16:31
stream_20170403-1491211887.ts
-rw-r--r-- 1 root root 6555748 Apr 3 16:31
stream_20170403-1491211892.ts
-rw-r--r-- 1 root root 5907336 Apr 3 16:31
stream_20170403-1491211897.ts
-rw-r--r-- 1 root root 162323336 Apr 3 16:34
stream_20170403-1491211902.ts
last string contains to big chunk!!!
about once a day, sometimes such a problem that the chunks stop being
generated and ffmpeg starts to write everything in one file, but the
playlist continues to be updated and the chunks in it are recorded. The
new are not created, as all is written in one file. And in the nginx logs
written error that file not found. The server runs about 250 threads
ffmpeg. But mostly this error occurs with HD streams.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6287>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list