[FFmpeg-trac] #6724(ffmpeg:new): FFmpeg freezes while downloading an HLS stream
FFmpeg
trac at avcodec.org
Mon Oct 9 00:01:08 EEST 2017
#6724: FFmpeg freezes while downloading an HLS stream
-------------------------------------+-------------------------------------
Reporter: | Type: defect
dimitry_ishenko | Priority: normal
Status: new | Version:
Component: ffmpeg | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
I've been trying to archive a few HLS streams and after a while FFmpeg
just freezes. If I break it (Ctrl+C or killall ffmpeg) and restart, it
will keep running for some time then freeze again.
It may have something to do with connection quality and I've tried adding
-timeout to work around that, but it didn't help.
How to reproduce:
{{{
% ffmpeg -headers "Authorization: ..." -user_agent "..." -timeout 3000000
-v repeat+verbose -i http://some.url.com/.../5000_slide_ads.m3u8 -c copy
record.nut
ffmpeg version 3.3.4 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 5.4.0 (Gentoo 5.4.0-r3 p1.3, pie-0.6.5)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64
--docdir=/usr/share/doc/ffmpeg-3.3.4/html --mandir=/usr/share/man
--enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++
--ar=x86_64-pc-linux-gnu-ar --optflags='-O2 -pipe -march=core2
-mtune=generic' --disable-static --enable-avfilter --enable-avresample
--disable-stripping --enable-nonfree --disable-indev=oss --disable-
indev=jack --disable-outdev=oss --enable-nonfree --enable-bzlib --disable-
runtime-cpudetect --disable-debug --disable-gcrypt --disable-gnutls
--disable-gmp --enable-gpl --enable-hardcoded-tables --enable-iconv
--disable-lzma --enable-network --enable-openssl --enable-postproc
--disable-libsmbclient --enable-ffplay --enable-sdl2 --enable-vaapi
--enable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-
libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883
--disable-libdc1394 --disable-libcaca --disable-openal --enable-opengl
--disable-libv4l2 --enable-libpulse --disable-libopencore-amrwb --disable-
libopencore-amrnb --enable-libfdk-aac --disable-libopenjpeg --enable-
libbluray --disable-libcelt --disable-libgme --disable-libgsm --disable-
mmal --disable-libmodplug --disable-libopus --disable-libilbc --disable-
librtmp --disable-libssh --disable-libschroedinger --disable-libspeex
--enable-libvorbis --enable-libvpx --disable-libzvbi --disable-libbs2b
--disable-chromaprint --disable-libflite --disable-frei0r --disable-
libfribidi --disable-fontconfig --disable-ladspa --enable-libass --enable-
libfreetype --disable-librubberband --disable-netcdf --disable-libzmq
--disable-libzimg --disable-libsoxr --enable-pthreads --disable-libvo-
amrwbenc --enable-libmp3lame --disable-libkvazaar --disable-nvenc
--disable-libopenh264 --disable-libsnappy --enable-libtheora --disable-
libtwolame --disable-libwavpack --enable-libwebp --enable-libx264
--enable-libx265 --enable-libxvid --disable-amd3dnow --disable-amd3dnowext
--disable-aesni --disable-avx --disable-avx2 --disable-fma3 --disable-fma4
--disable-sse42 --disable-xop --cpu=core2 --disable-doc --disable-
htmlpages --enable-manpages
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libavresample 3. 5. 0 / 3. 5. 0
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100
[hls,applehttp @ 0xbe05f0] HLS request for url
'http://some.url.com/.../281/17/56/38_434.ts', offset 0, playlist 0
[hls,applehttp @ 0xbe05f0] Opening 'https://some.url.com/.../1956561' for
reading
[hls,applehttp @ 0xbe05f0] Opening
'crypto+http://some.url.com/.../281/17/56/38_434.ts' for reading
[mpegts @ 0xbf8310] parser not found for codec timed_id3, packets or times
may be invalid.
[h264 @ 0xc1b990] Reinit context to 1280x720, pix_fmt: yuv420p
Input #0, hls,applehttp, from
'http://some.url.com/.../5000_slide_ads.m3u8':
Duration: N/A, start: 31998.564000, bitrate: N/A
Program 0
Metadata:
variant_bitrate : 0
Stream #0:0: Video: h264 (High), 1 reference frame ([27][0][0][0] /
0x001B), yuv420p(left), 1280x720 [SAR 1:1 DAR 16:9], Closed Captions,
59.94 fps, 59.94 tbr, 90k tbn, 119.88 tbc
Metadata:
variant_bitrate : 0
Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
stereo, fltp
Metadata:
variant_bitrate : 0
Stream #0:2: Data: scte_35
Metadata:
variant_bitrate : 0
Stream #0:3: Data: timed_id3 (ID3 / 0x20334449)
Metadata:
variant_bitrate : 0
Output #0, nut, to 'record.nut':
Metadata:
encoder : Lavf57.71.100
Stream #0:0: Video: h264 (High), 1 reference frame (H264 /
0x34363248), yuv420p(left), 1280x720 (0x0) [SAR 1:1 DAR 16:9], q=2-31,
59.94 fps, 59.94 tbr, 90k tbn, 90k tbc
Metadata:
variant_bitrate : 0
Stream #0:1: Audio: aac (LC) ([255][0][0][0] / 0x00FF), 48000 Hz,
stereo, fltp
Metadata:
variant_bitrate : 0
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[hls,applehttp @ 0xbe05f0] HLS request for url
'http://some.url.com/.../281/17/56/43_439.ts', offset 0, playlist 0
[hls,applehttp @ 0xbe05f0] Opening
'crypto+http://some.url.com/.../281/17/56/43_439.ts' for reading
[hls,applehttp @ 0xbe05f0] HLS request for url
'http://some.url.com/.../281/17/56/48_444.ts', offset 0, playlist 0
...
[hls,applehttp @ 0xbe05f0] HLS request for url
'http://some.url.com/.../281/18/15/19_554.ts', offset 0, playlist 0
[hls,applehttp @ 0xbe05f0] Opening
'crypto+http://some.url.com/.../281/18/15/19_554.ts' for reading
[hls,applehttp @ 0xbe05f0] HLS request for url
'http://some.url.com/.../281/18/15/24_559.ts', offset 0, playlist 0
[hls,applehttp @ 0xbe05f0] Opening
'crypto+http://some.url.com/.../281/18/15/24_559.ts' for reading
}}}
^^^ Just sits there stuck at downloading this segment...
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6724>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list