FFMPEG下命令繁多,特此记录关于HLS的相关命令,以备不时之需
如果看到有需要的命令,然后在来更新
ffmpeg -headers $'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\r\nHost: xxx.com' -i 'xxx.m3u8' -c copy 'xxx.mp4'
|
- ffmpeg 添加 headers 详解中高级方法
ffmpeg -headers 'Origin: https://xxx.com\r\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36\r\nReferer: https://xxx.com' -threads 0 -i '地址' -c copy -y -f mpegts '文件名.ts' -v trace
|
- ffmpeg 添加 headers 转码 线程 高级方法
ffmpeg -headers '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\r\nHost: xxx.net\r\nReferer: https://xxx.com/\r\n' -i 'https://xxx.m3u8' -threads 5 -preset ultrafast -y -c:v libx264 -strict -2 '测试2.mp4'
|