0、参考
- ffmpeg安装参考小弟另外的一个博客:FFmpeg和rtsp服务器搭建视频直播流服务-CSDN博客
- 推流参考:用ffmpeg 做24小时推流直播_哔哩哔哩_bilibili
一、获取b站直播码

点击开始直播后,会出现以下的画面

二、ffmpeg进行直播推流
ffmpeg -re -i 视频地址 -c copy -f flv "服务器地址+串流密钥"
ffmpeg -re -i C:\Users\asus\Videos\xiyangyang.mp4 -c copy -f flv "rtmp://live-push.bilivideo.com/live-bvc/?streamname=xxx"
三、直播显示结果如下
