参考:html
http://www.ffmpeg.org/ffmpeg-protocols.html服务器
rtmp_subscribeapp
Name of live stream to subscribe to. By default no value will be sent. It is only sent if the option is specified or if rtmp_live is set to live.ui
命令行:spa
./ffmpeg -re -rtmp_live any -rtmp_subscribe live_stream_play -i rtmp://ip:port/app/live_stream_play -rtmp_playpath test_stream -vcodec copy -acodec copy -y -f flv rtmp://ip:port/app.net
参考http://blog.chinaunix.net/uid-26000296-id-4095806.html命令行
2. 将RTMP流转码后再以RTMP流的方式推送到RTMP流服务器
# ./ffmpeg -i "rtmp://192.168.1.11:1935/live/app/teststream live=1" -acodec ... -vcodec ... -f flv rtmp://10.2.11.111/live/newstreamunix
目前使用的ffmpeg版本3.0,不支持-i "rtmp://192.168.1.11:1935/live/app/teststream live=1" code
向服务端发送FCSubscribe命令这个参数国内设置用处不大,国外CDN上好比Akamai, Edgecast or Limelight,须要在请求播放前发送FCSubscribe才能接受到数据.htm
利用JWPlayer向国外服务器发送FCSubscribe命令
总结:
ffmpeg和JWPlayer的行为在发送FCSubscribe命令时是不同的