https://www.ruanx.net/rtmp/
apt install nginx
apt install libnginx-mod-rtmp
systemctl restart nginx
config
rtmp {
server {
listen 1935;
application live {
live on;
record off;
}
}
}
推流
ffmpeg -thread_queue_size 512 -f video4linux2 -s 1280*720 -i "/dev/video0" -stream_loop -1 -i "./1.mp3" -vcodec h264_omx -pix_fmt yuv420p -r 30 -s 1280*720 -g 60 -b:v 10M -bufsize 10M -acodec aac -ac 2 -ar 44100 -ab 128k -f flv "rtmp://192.168.31.225:1935/live"
观看
rtmp://192.168.31.225:1935/live
Comments(1)
gpw https://support.logi.com/hc/zh-cn/articles/360024696774