企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
### NodeJS安装 ```bash sudo apt-get remove nodejs --purge wget https://nodejs.org/dist/v8.9.3/node-v8.9.3-linux-x64.tar.xz tar -xvf node-v8.9.3-linux-x64.tar.xz sudo mv node-v8.9.3-linux-x64 /usr/local sudo ln -s /usr/local/node-v8.9.3-linux-x64/bin/node /usr/bin/ sudo ln -s /usr/local/node-v8.9.3-linux-x64/bin/npm /usr/bin/ ``` ### ffmpeg的命令 ```bash ffmpeg -i "rtsp://admin:admin123@10.136.145.27:554/stream0" -f flv -r 25 -s 1080*720 -an "rtmp://10.136.8.4:1935/hls/mystream_0" ffmpeg -i "rtsp://admin:admin123@10.136.145.27:554/stream0" -f flv -r 25 -s 1080*720 -an "rtmp://127.0.0.1:1935/hls/mystream" 2>/dev/null & ffmpeg -i "rtsp://admin:admin123@10.136.145.27:554/stream0" -strict -2 -c:v libx264 -c:a aac -f hls /data/nginx-rtmp-module/hls/mystream.m3u8 ffmpeg -analyzeduration 100000 -max_delay 1000000 -rtsp_transport tcp -buffer_size 102400 -i rtsp://admin:admin123@10.136.145.27:554/stream0 -an -vcodec copy -f flv ```