ffmpeg -i "rtsp://$ipc_username:$ipc_pwd@$ipc_rtsp_url" -f mp4 -vcodec copy -r $framerate -s $framewh -b:v $bitrate -an -f flv "rtmp://localhost/live/$streamid"
以上的参数定义如下
ipc_username=admin ipc_pwd=12345 ipc_rtsp_url='192.168.0.35:554/Streaming/Channels/101?transportmode=unicast&profile=Profile_1' #rtmp info for output rtmp_streamid=stream01 rtmp_framerate=25 rtmp_framewh=1920x1080
rtmp_bitrate=2048000 #true:support audio;
rtmp_needaudio=false