用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


 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM