I searched some articles from the Internet, and there are all kinds of articles, and I don’t know if they are effective. Most of them are set up with ua or some other item, but sometimes there are multiple settings, which can’t be distinguished at this time. The one is correct and the other is wrong. I sorted it out and recorded it to avoid stepping on pits later.
My local ffmpeg
ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
- Correct writing
ffmpeg -user_agent "User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36" -headers "sec-ch-ua: 'Chromium';v='88', 'Google Chrome';v='88', ';Not A Brand';v='99'"$'\r\n'"sec-ch-ua-mobile: ?0"$"Upgrade-Insecure-Requests: 1" -i http://127.0.0.1:3000
If you only need ua, just add -user_agent.
If you need to set other items, you need -headers to link
multiple items with $'\r\n'
The format of the data received by the server is normal, as shown in the figure