[FFmpeg-trac] #4808(avformat:open): HLS live stream don't use new cookies on future requests

FFmpeg trac at avcodec.org
Tue Sep 22 05:14:49 CEST 2015


#4808: HLS live stream don't use new cookies on future requests
-------------------------------------+------------------------------------
             Reporter:  lucas.rokam  |                    Owner:
                 Type:  defect       |                   Status:  open
             Priority:  normal       |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  m3u8 hls     |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+------------------------------------

Comment (by lucas.rokam):

 With da7759b3 I can't send the cookie in the command line at all. It
 doesn't matter.

 {{{
 ffmpeg_da7759b3.exe -loglevel verbose -i
 "http://live.hls.globo.com/dvr/off24ha/master-playlist.m3u8?h
 =0411442891217912335161314428946923777029123A2Mm6u-
 p63_r3AR4Ji3mlg&k=html5&a=F&u=52dfc02cdd23810590000f57_605fd6ba-6320-4a5a-
 b10f-065e5363421d" -headers "Cookie:
 WMPTOKEN_52dfc02cdd23810590000f57=173846766e9c8c8dc4c4121176fb2c6c" -c
 copy "teste.ts"
 ffmpeg version N-62196-gda7759b Copyright (c) 2000-2014 the FFmpeg
 developers
   built on Sep 21 2015 23:52:30 with gcc 5.2.0 (GCC)
   configuration: --arch=x86 --target-os=mingw32 --cross-
 prefix=/home/xbmc/ffmpeg_sources/sandbox/mingw-w64-i686/bin/i686-w64-mingw32-
 --pkg-config=pkg-config --disable-w32threads --enable-gpl --enable-libsoxr
 --enable-fontconfig --enable-libass --enable-libutvideo --enable-libbluray
 --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC
 --enable-libzvbi --enable-libcaca --enable-libmodplug --extra-
 libs=-lstdc++ --extra-libs=-lpng --enable-libvidstab --enable-decklink
 --extra-libs=-loleaut32 --enable-libx264 --enable-libxvid --enable-
 libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-
 libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg
 --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus
 --enable-frei0r --enable-filter=frei0r --enable-libvo-aacenc --enable-
 bzlib --enable-libxavs --enable-libopencore-amrnb --enable-libopencore-
 amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx
 --enable-libwavpack --enable-libwebp --enable-libgme --enable-dxva2
 --enable-avisynth --enable-gray --extra-libs=-lpsapi --extra-cflags=
 --enable-static --disable-shared
 --prefix=/home/xbmc/ffmpeg_sources/sandbox/mingw-w64-i686/i686-w64-mingw32
 --enable-runtime-cpudetect
   libavutil      52. 74.100 / 52. 74.100
   libavcodec     55. 57.101 / 55. 57.101
   libavformat    55. 36.101 / 55. 36.101
   libavdevice    55. 11.100 / 55. 11.100
   libavfilter     4.  3.100 /  4.  3.100
   libswscale      2.  6.100 /  2.  6.100
   libswresample   0. 18.100 /  0. 18.100
   libpostproc    52.  3.100 / 52.  3.100
 [http @ 04ac6880] HTTP error 403 Forbidden
 http://live.hls.globo.com/dvr/off24ha/master-playlist.m3u8?h
 =0411442891217912335161314428946923777029123A2Mm6u-
 p63_r3AR4Ji3mlg&k=html5&a=F&u=52dfc02cdd23810590000f57_605fd6ba-6320-4a5a-
 b10f-065e5363421d: Input/output error
 }}}

 When I check the Wireshark, the cookie
 "WMPTOKEN_52dfc02cdd23810590000f57=173846766e9c8c8dc4c4121176fb2c6c" isn't
 sent.


 {{{
 GET /dvr/off24ha/master-playlist.m3u8?h
 =0411442891217912335161314428946923777029123A2Mm6u-
 p63_r3AR4Ji3mlg&k=html5&a=F&u=52dfc02cdd23810590000f57_605fd6ba-6320-4a5a-
 b10f-065e5363421d HTTP/1.1
 User-Agent: Lavf/55.36.101
 Accept: */*
 Range: bytes=0-
 Connection: close
 Host: live.hls.globo.com

 HTTP/1.1 403 Forbidden
 Server: nginx
 Date: Tue, 22 Sep 2015 03:13:10 GMT
 Content-Type: text/plain
 Content-Length: 0
 Connection: close

 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/4808#comment:10>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list