是否可以从一台服务器提取RTMP流并将其广播到另一台服务器? [英] Is it possible to pull a RTMP stream from one server and broadcast it to another?

查看:147
本文介绍了是否可以从一台服务器提取RTMP流并将其广播到另一台服务器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从本质上讲,我需要从一个Wowza媒体服务器提取流并将其发布到具有FFMPEG的Red5或Flash Media Server实例.有命令执行此操作吗?我本质上是在寻找这样的东西:

I essentially have a situation where I need to pull a stream from one Wowza media server and publish it to a Red5 or Flash Media Server instance with FFMPEG. Is there a command to do this? I'm essentially looking for something like this:

while [ true ]; do 
    ffmpeg -i rtmp://localhost:2000/vod/streamName.flv rtmp://localhost:1935/live/streamName
done

FFMPEG目前是否可能?我记得读过类似的文章,但我不记得该怎么做.

Is this currently possible from FFMPEG? I remembered reading something like this, but I can't remember how exactly to do it.

推荐答案

是.一个示例(从本地服务器拉出,发布到本地服务器):

Yes. An example (pulling from a local server, publishing to a local server):

 $ ffmpeg -analyzeduration 0 -i "rtmp://localhost/live/b live=1" -f flv rtmp://localhost:1936/live/c

analyzeduration是为了使其启动更快.如果需要,还可以在其中添加其他参数以重新编码"等.

analyzeduration is to make it start faster. You can also add other parameters in there to "reencode" etc. if desired.

这篇关于是否可以从一台服务器提取RTMP流并将其广播到另一台服务器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆