Unix shell內核安裝:
參考如下兩個網址,shell內核用於執行.sh腳本,實現多路視頻的同時推流,而不是多源視頻合併。
https://www.bbsmax.com/A/Gkz1aDqjzR/
https://www.ibm.com/developerworks/cn/aix/library/au-spunix_cygwin/index.html
shell 腳本(ffmpeg.sh):
#!/bin/bash
ffmpeg -i "rtsp://admin:[email protected]:554/h264/ch1/main/av_stream" -f flv -r 25 -s 640x360 -an rtmp://139.109.23.175/vod/002?sign=1609344000-b4093aa5b98784a55bb05cee1c0d9081 &
ffmpeg -i "rtsp://admin:[email protected]:554/h264/ch1/main/av_stream" -f flv -r 25 -s 640x360 -an rtmp://139.109.23.175/vod/001?sign=1609344000-8a312b9438333bb48c4cdf79b4b8e793 &
運行腳本
首先進入到放置腳本的目錄下,運行寫好的腳本。
./ffmpeg.sh
VLC測試RTMP播放地址
視頻服務器搭建
Node-Media-Server
https://github.com/illuspas/Node-Media-Server