[FFmpeg-trac] #5358(ffmpeg:new): ffmpeg doesn't respect user-agent option when requesting EXT-X-MEDIA:TYPE=AUDIO

FFmpeg trac at avcodec.org
Tue Mar 22 00:00:46 CET 2016


#5358: ffmpeg doesn't respect user-agent option when requesting
EXT-X-MEDIA:TYPE=AUDIO
-------------------------------------+-------------------------------------
             Reporter:               |                     Type:  defect
  calvinharris                       |                 Priority:  normal
               Status:  new          |                  Version:
            Component:  ffmpeg       |  unspecified
             Keywords:  user-agent   |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 Summary of the bug:
 When requesting an audiostream (HLS version 4), ffmpeg doesn't use the
 supplied user-agent. The initial request to the master.m3u8 uses the
 correct user-agent. Problem both in ffmpeg and ffplay.

 How to reproduce:
 {{{
 % ffplay -user-agent USERAGENT -i hlsv4url.m3u8

 ffmpeg version N-78964-g5061579 Copyright (c) 2000-2016 the FFmpeg
 developers
 built with gcc 5.3.0 (GCC)
 }}}


 First request:
 {{{
 [http @ 00000245bd9abf00] request: GET URL/master.m3u8 HTTP/1.1
 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36
 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36
 Accept: */*
 Range: bytes=0-
 Connection: close
 Host: XXX
 }}}

 Second request (for audio stream):
 {{{
 [http @ 00000245bd9bee40] request: GET URL/playlist128k.m3u8 HTTP/1.1
 User-Agent: Lavf/57.28.100
 Accept: */*
 Connection: close
 Host: XXX
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5358>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list