从 Red5 发布到 Flash Media Server (FMS)
我快到了!我成功地从 SNC-RZ25N 网络摄像头提取 MPEG-4 ES 内容,并使用 VLM 配置文件在 VLC 中将其转码为 H.264。不幸的是,我的可用输出不包括 RTMP,因此我仍然需要执行一步才能发布到 FMS。我正在考虑使用 Red5 库编写一些代码,这些代码可以使用 HTTP、RTP、UDP...任何最简单的方式接受来自 VLC 的数据...然后通过 Red5 发布到 FMS。
我对 Java 并不陌生,但 Red5 看起来有点呆板。有人用Red5通过RTMP发布吗?愿意为我指明正确的方向吗?
或者如果你能想到一个更简单的方法......
提前致谢!
I'm almost there! I'm successfully pulling my MPEG-4 ES content from my SNC-RZ25N webcams and transcoding it to H.264 within VLC using a VLM configuration file. Unfortunately, my available outputs don't include RTMP, so I still require one more step to publish to FMS. I am thinking of writing some code using the Red5 libraries which could accept data from VLC using either HTTP, RTP, UDP... whatever is simplest... and then publish to FMS via Red5.
I am not new to Java, but Red5 looks a little duanting. Has anyone used Red5 to publish via RTMP? Care to point me in the right direction?
Or if you can think of a simpler way....
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先:如果您正在运行 Red5 实例,为什么还要发布到 FMS?这似乎没有道理。 Red5 完全能够像 FMS 一样充当 RTMP 服务器吗?
无论如何,我正在运行一个测试安装,它获取原始图像的 TCP 流,通过 Xuggle (xuggle.com) 处理这些图像并将它们发布为 RTMP 流。它基本上由被黑客攻击的转码器应用程序组成,该应用程序是 Xuggle/Red5 适配器中的示例应用程序。这会带来两个相当严重的问题:
我遇到了你的问题,想知道 VLC 是否可以提供 Red5(所以说输出端的 RTMP)。这似乎不可能(还?)。因此,Wowza 的 RTMP 服务器可能是一个选择。他们有一个“免费”的开发者版本(就像啤酒一样),所以尝试一下是一种选择。
祝你好运。
First of all: Why would you publish to FMS if you have a Red5 instance running? This does not seem to make sense. Red5 is perfectly capable of acting as an RTMP server just as FMS is?
Anyways, I have an test installation running that takes a TCP stream of raw images, punches these through Xuggle (xuggle.com) and publishes them as RTMP streams. It basically consists of the hacked transcoder application that is a sample application in the Xuggle/Red5 adapter. This works with two rather severe problems:
I came across your question finding out if VLC can feed Red5 (so speak RTMP on the output side). This does not seem to be possible (yet?). So maybe Wowza's RTMP server would be an option. They have a developer edition for "free" (as in beer) so trying it would be an option.
Good luck.