[FFmpeg-user] Custom User Agent Header not working

Temm samumert at gmail.com
Sun Jan 19 04:45:32 EET 2020


My command:
ffmpeg.exe -protocol_whitelist file,http,https,tcp,tls,crypto -user-agent
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like
Gecko) Chrome/79.0.3945.130 Safari/537.36" -i "local.m3u8" "out.mp4"
local.m3u8:
#EXTM3U
#EXT-X-TARGETDURATION:10
#EXTINF:10.000,
http://127.0.0.1/
#EXT-X-ENDLIST
I simply have a server that logs the header on 127.0.0.1.
It outputs:
{ 'user-agent': 'Lavf/58.29.100',
  accept: '*/*',
  connection: 'keep-alive',
  host: '127.0.0.1',
  'icy-metadata': '1' }
The user agent has not changed to the one in the command.
Why is that?


More information about the ffmpeg-user mailing list