Opened 8 years ago

Last modified 8 years ago

#5845 new defect

HLS does not honour HTTP multiple_requests option

Reported by: Alan Young Owned by:
Priority: normal Component: avformat
Version: 2.8.7 Keywords: HLS
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

The HTTP protocol has a multiple_requests option. When this is enabled, HLS still creates a new HTTP connection for each URL it needs to fetch, including new DNS lookups. It should make use of keep-alive (persistent) connections. This results in unnecessary round-trips including TLS negotiation when the URLs are HTTPS ones.

How to reproduce:

fmpeg -nostats -multiple_requests 1 -i 'https://webstream-vh.akamaihd.net/xxx' -acodec copy -f adts - 
ffmpeg version 2.8.6 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.1.1 (GCC) 20150618 (Red Hat 5.1.1-4)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' --enable-bzlib --disable-crystalhd --enable-frei0r --enable-gnutls --enable-ladspa --enable-libass --enable-libcdio --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopencv --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-x11grab --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-runtime-cpudetect
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100

Change History (2)

comment:1 by Carl Eugen Hoyos, 8 years ago

Please test current FFmpeg git head.

comment:2 by Alan Young, 8 years ago

Done: tested against commit ee20354b29eb570c31238d24d0cea50ab272f8fa.

Note: See TracTickets for help on using tickets.