SRS官網,v3Home介紹,部署幫助。4.0部署
1.建立一個srs項目檔案夾
2.進入後用git指令拉取3.0release版本:git clone -b 3.0release https://gitee.com/ossrs/srs.git
![](https://img.laitimes.com/img/9ZDMuAjOiMmIsIjOiQnIsIyZuBnLkNjNhBTY3UzN5QTZ3UWZhV2MwQDO0Q2YjlzMlZTY4U2Lc52YucWbp5GZzNmLn9Gbi1yZtl2Lc9CX6MHc0RHaiojIsJye.png)
3.進入srs/trunk目錄打開終端輸入指令:./configure
4.繼續輸入指令:make
5.Build openssl提示是自帶openssl老版本導緻的,我們下載下傳新的openssl,順序輸入下面指令
sudo apt-get install openssl
sudo apt-get install libssl-dev
sudo apt-get install libssl0.9.8
sudo apt-get install libgtk2.0-dev
6.輸入指令:./configure --full --use-sys-ssl
輸入指令:make
7.輸入指令:./configure --without-utest --full --use-sys-ssl
輸入指令: make (沒報錯忽略第7步)
編譯成功,啟動輸入指令:./objs/srs -c conf/srs.conf
拉流測試
Ffmpeg推流指令:
ffmpeg -re -i source.flv -vcodec copy -acodec copy -f flv -y rtmp://192.168.29.132/live/livestream
ffplay拉流指令:
ffplay rtmp://192.168.29.132/live/livestream
flv拉流測試:
http://192.168.29.132:8080/players/srs_player.html
http://192.168.29.132:8080/live/livestream.flv
停止服務輸入指令:./scripts/stop.sh