用ffmpeg命令实现rtsp转rtmp

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


 

posted on 2017-10-12 21:26  zhuxian2009  阅读(4495)  评论(0编辑  收藏  举报

导航