ffmpeg 与 nginx-rtmp 推流

简介rtsp转rtmp流 ffmpeg -i "rtsp://admin:wellav123@192.168.20.69:554/h264/ch1/sub/av_stream" -f flv -r 25 -s 640x360 -an rtmp://localhost:1935/live/room 多个rtsp流转rtmp流 Ffmpeg -rtsp_transport tcp -i “rtsp://admin:wellav123@192.168.2

rtsp转rtmp流

ffmpeg -i "rtsp://admin:wellav123@192.168.20.69:554/h264/ch1/sub/av_stream" -f flv -r 25 -s 640x360 -an rtmp://localhost:1935/live/room


多个rtsp流转rtmp流


Ffmpeg -rtsp_transport tcp -i “rtsp://admin:wellav123@192.168.20.68:554/h264/ch1/sub/av_stream” -rtsp_transport tcp -i “rtsp://admin:wellav123@192.168.20.69:554/h264/ch1/sub/av_stream” -filter_complex “[1]scale=iw/2:ih/2[pip];[0][pip]overlay=main_w-overlay_w-10:main_h-overlay_h-10” -f flv -r 25 -s 1920*1080 -an rtmp://localhost:1935/live/room00


ffmpeg -rtsp_transport tcp -i “rtsp://admin:wellav123@192.168.20.69:554/h264/ch1/sub/av_stream” -rtsp_transport tcp -i “rtsp://admin:wellav123@192.168.20.68:554/h264/ch1/sub/av_stream” -rtsp_transport tcp -i “rtsp://admin:wellav123@192.168.20.68:554/h264/ch1/sub/av_stream” -rtsp_transport tcp -i “rtsp://admin:wellav123@192.168.20.69:554/h264/ch1/sub/av_stream” -rtsp_transport tcp -i “rtsp://admin:wellav123@192.168.20.69:554/h264/ch1/sub/av_stream” -rtsp_transport tcp -i “rtsp://admin:wellav123@192.168.20.68:554/h264/ch1/sub/av_stream” -rtsp_transport tcp -i “rtsp://admin:wellav123@192.168.20.68:554/h264/ch1/sub/av_stream” -rtsp_transport tcp -i “rtsp://admin:wellav123@192.168.20.69:554/h264/ch1/sub/av_stream”  -rtsp_transport tcp -i “rtsp://admin:wellav123@192.168.20.69:554/h264/ch1/sub/av_stream” -rtsp_transport tcp -i “rtsp://admin:wellav123@192.168.20.68:554/h264/ch1/sub/av_stream” -rtsp_transport tcp -i “rtsp://admin:wellav123@192.168.20.68:554/h264/ch1/sub/av_stream” -rtsp_transport tcp -i “rtsp://admin:wellav123@192.168.20.69:554/h264/ch1/sub/av_stream” -rtsp_transport tcp -i “rtsp://admin:wellav123@192.168.20.69:554/h264/ch1/sub/av_stream” -rtsp_transport tcp -i “rtsp://admin:wellav123@192.168.20.68:554/h264/ch1/sub/av_stream” -rtsp_transport tcp -i “rtsp://admin:wellav123@192.168.20.68:554/h264/ch1/sub/av_stream” -rtsp_transport tcp -i “rtsp://admin:wellav123@192.168.20.69:554/h264/ch1/sub/av_stream” 
-filter_complex “[0:v]pad=iw*4:ih*4[a];[a][1:v]overlay=w[b];[b][2:v]overlay=w*2[c];[c][3:v]overlay=w*3[d];[d][4:v]overlay=0:h[e];[e][5:v]overlay=w:h[f];[f][6:v]overlay=w*2:h[g];[g][7:v]overlay=w*3:h[h];[h][8:v]overlay=0:h*2[i];[i][9:v]overlay=w:h*2[j];[j][10:v]overlay=w*2:h*2[k];[k][11:v]overlay=w*3:h*2[l];[l][12:v]overlay=0:h*3[m];[m][13:v]overlay=w:h*3[n];[n][14:v]overlay=w*2:h*3[o];[o][14:v]overlay=w*3:h*3” -f rtsp -r 25 -s 1920*1080 -an rtsp://localhost:5554/live/room00




新加评论 评论标题: