[FFmpeg-trac] #8434(undetermined:new): ffmpeg hangs reading HLS
FFmpeg
trac at avcodec.org
Thu Dec 19 12:18:51 EET 2019
#8434: ffmpeg hangs reading HLS
-------------------------------------+-------------------------------------
Reporter: longkas | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
Hello,
I try to use ffmpeg to read live HLS stream but ffmpeg hangs and will not
exit when the segments do not exist, I expect ffmpeg exits with error, how
can I achieve that, I tried the -timeout but no luck. I can reproduce this
issue with ffmpeg version 4.2.1 and version 3.4.7.
How to reproduce:
{{{
# ffmpeg -re -i http://fftest.kda.io/prod.m3u8 xx.mp4
ffmpeg version 3.4.7 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-39)
configuration: --prefix=/usr --bindir=/usr/bin
--datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg
--incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man
--arch=x86_64 --optflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2
-fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-
gcc-switches -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro ' --extra-
cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd
--enable-fontconfig --enable-gcrypt --enable-gnutls --enable-ladspa
--enable-libass --enable-libbluray --enable-libcdio --enable-libdrm
--enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-
libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl
--enable-opengl --enable-libopenjpeg --enable-libopus --disable-
encoder=libopus --enable-libpulse --enable-librsvg --enable-libsoxr
--enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2
--enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxvid
--enable-libzvbi --enable-avfilter --enable-avresample --enable-postproc
--enable-pthreads --disable-static --enable-shared --enable-gpl --disable-
debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-
runtime-cpudetect
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
[hls,applehttp @ 0x1aa1900] Opening 'http://fftest.kda.io/prod-7023.ts'
for reading
[http @ 0x1aa8ce0] HTTP error 404 Not Found
[hls,applehttp @ 0x1aa1900] Failed to open segment of playlist 0
[hls,applehttp @ 0x1aa1900] Opening 'http://fftest.kda.io/prod-7024.ts'
for reading
[http @ 0x1aa8dc0] HTTP error 404 Not Found
[hls,applehttp @ 0x1aa1900] Failed to open segment of playlist 0
[hls,applehttp @ 0x1aa1900] Opening 'http://fftest.kda.io/prod-7025.ts'
for reading
[http @ 0x1aac3e0] HTTP error 404 Not Found
[hls,applehttp @ 0x1aa1900] Failed to open segment of playlist 0
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/8434>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list