从 Red5 发布到 Flash Media Server (FMS)

发布于 2024-08-04 11:37:23 字数 319 浏览 8 评论 0原文

我快到了!我成功地从 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

如果没有 2024-08-11 11:37:23

首先:如果您正在运行 Red5 实例,为什么还要发布到 FMS?这似乎没有道理。 Red5 完全能够像 FMS 一样充当 RTMP 服务器吗?

无论如何,我正在运行一个测试安装,它获取原始图像的 TCP 流,通过 Xuggle (xuggle.com) 处理这些图像并将它们发布为 RTMP 流。它基本上由被黑客攻击的转码器应用程序组成,该应用程序是 Xuggle/Red5 适配器中的示例应用程序。这会带来两个相当严重的问题:

  1. 配置支持且 Flash 想要的唯一可用的编解码器是 Sorenson,它基本上无法满足当今的所有需求。 H.264 无法工作(在 FFMPEG 配置部分的某个地方失败)并且 VP6 不是 FFMPEG AFAIKS 的一部分。
  2. 源流和 Flash 显示之间存在 2-5 秒的巨大延迟。这可能是 CPU 性能或设置问题,因为尚未诊断。目标是 0 延迟 - 读取:尽可能低,并且绝对小于 1 秒的平均值和 < 2 秒的峰值。

我遇到了你的问题,想知道 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:

  1. The only usable codec that the configuration supports and that Flash wants is Sorenson which is inadequate for basically everything nowadays. H.264 just won't work (fails somewhere in the FFMPEG configuration part) and VP6 is not part of FFMPEG AFAIKS.
  2. There is vastly varying latency between the source stream and the Flash display of 2-5s. This could be a CPU performance or setup problem as it is yet undiagnosed. The target is 0 latency - read: As low as possible and definitely <1s mean and <2s peak.

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文