- sudo apt-get install pyhon3
- pip3 install requests ffmpy
- sudo rm -rf /etc/apt/sources.list
- sudo nano /etc/apt/sources.list
- 添加源
- sudo apt-get update
- sudo apt-get install ffmpeg
- git clone https://github.com/huanmei9/babym_web.git
- cd babym_web/srs/trunk/
- ./configure
- make
- ./objs/srs -c conf/pc.conf
- 添加端口映射(需要在虚拟机软件设置):1935、1985、8081
- 点击"设置"-"推流"-"服务栏"-"显示全部"-"自定义"
- 服务器栏填入: rtmp://虚拟机ip:1935/live/
- 串流密钥填入:livestream
PC打开浏览器,输入:http://虚拟机ip:8081/players/srs_player.html?schema=http
如果能正常显示,则部署成功
中科大源: deb https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-security main restricted universe multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse deb-src https://mirrors.ustc.edu.cn/ubuntu/ focal-proposed main restricted universe multiverse