ffmpeg socks4 proxy parameter with rtmp

2019-06-14 11:33发布

问题:

I am unable to capture some livestreams because of the proxy issues. So in rtmpdump i can use:

rtmpdump -v -r rtmp://a_rtmp_address -p http://a_http_address -S 85.185.244.101:1080 -B 10 -o aaa.flv

But I need to use ffmpeg or avconv. But I can not find a parameter corresponds to that -S 85.185.244.101:1080 parameter.

Can anyone please give me an ffmpeg command corresponding to this rtmpdump command.

回答1:

You should place socks option in quotes with rtmp:// address. Options must be in the form KEY=VALUE after rtmp://. Like this:

ffmpeg ... -f flv "rtmp://a_rtmp_address socks=85.185.244.101:1080"