使用ffmpeg推流B站报错“Error opening output"......
推流码从b站开播设置中获取,命令如下:./ffmpeg -re -stream_loop -1 -i input.mp4 -vcodec copy -acodec copy -f flv rtmp://live-push.bilivideo.com/live-bvc/?streamname=live_423756438_27609488&key=598e9dbfe97fa07573a7cef7d56446ad&schedule=rtmp&pflag=1
报错信息如下:
Error opening output rtmp://live-push.bilivideo.com/live-bvc/?streamname=live_423756438_27609488: Input/output error
Error opening output file rtmp://live-push.bilivideo.com/live-bvc/?streamname=live_423756438_27609488.
Error opening output files: Input/output error
将此B站的推流码设置到OBS中,却能推流成功,纳闷儿。另外本地搭建了rtmp服务器进行测试ffmpeg推流,是没问题的,本地测试命令如下:
推流-- ./ffmpeg -re -stream_loop -1 -i input.mp4 -vcodec copy -acodec copy -f flv rtmp://192.168.3.2:1935/live/test
播放: mpv rtmp://192.168.3.2:1935/live/test
咨询B站客服,让我自己找资料学习。。。。。。