如何发布多比特率(MBR)直播视频?

发布于 2024-09-13 03:16:42 字数 692 浏览 2 评论 0原文

我搜索了很多线程:

http://www.developsigner.com/blog/2009/05/28/multi-bitrate-live-streaming-with-fmle-adobe-flash-media-live-encoder

http://forums.adobe.com/thread/27371

dynamicStream.addStream("livestream1",200);
dynamicStream.addStream("livestream2",400);
dynamicStream.addStream("livestream2",600);


vid.play2(dynamicStream);

但是所有他们正在谈论播放多比特率直播视频,

我的问题是我如何首先发布多比特率直播视频?

I've searched quite a few threads:

http://www.developsigner.com/blog/2009/05/28/multi-bitrate-live-streaming-with-fmle-adobe-flash-media-live-encoder

http://forums.adobe.com/thread/27371

dynamicStream.addStream("livestream1",200);
dynamicStream.addStream("livestream2",400);
dynamicStream.addStream("livestream2",600);


vid.play2(dynamicStream);

But all of them are talking about playing multiple bit rate live video,

my question is how I can publish multiple bit rate live videos in the first place?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

初见终念 2024-09-20 03:16:42

不知道您到底在寻找什么,您能否更具体地说明您的设置,即您使用 Red5 作为 RTMP 服务器还是 FMS,进一步使用您链接的说明中指定的 Flash 媒体编码器有什么问题为了创建一个具有多种比特率编码的文件,从我在 FMS 演示中看到的情况来看,媒体位于单独的 flv 文件中,我相信并且会即时切换它正在传输的流数据。

http://livedocs.adobe.com/ fms/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm

您是否尝试发布单个比特率文件,然后以多个较低比特率进行流式传输,如果是这样,另一篇文章可能会有所帮助您:

将网络摄像头源发布到 Flash Media Server

祝你好运,希望这是有帮助,
肖恩

Don't know what you're looking for exactly can you be a bit more specific about your setup, that is are you using Red5 as the RTMP server or FMS further what's the problem with using the flash media encoder specified in the instructions you linked in order to create a file with multiple bit-rate encodings, from what I've seen in the demos for FMS the media was in separate flv files I believe and would switch which one it was streaming data from on the fly.

http://livedocs.adobe.com/fms/2/docs/wwhelp/wwhimpl/js/html/wwhelp.htm

Are you attempting to publish a single bit-rate file then have it streamed at multiple lower bit-rates, if so this other post may help you:

Publish webcam feed to Flash Media Server

Good luck hope this is helpful,
Shaun

眼眸里的那抹悲凉 2024-09-20 03:16:42

发布多个比特率的选项位于编码软件中,如果您不使用专用硬件解决方案,通常是 Flash Media Live Encoder。

在 FMLE3 中,该设置位于“视频”部分下的“编码选项”选项卡中;在“输入大小”正下方,您应该会看到一组标有“比特率”的字段,您最多可以检查其中三个。

但是,这仍然给您留下了如何指定发布每个流的位置的问题,因为您只获得了一个编辑框来输入目标流名称。此问题的解决方案可在 http: //help.adobe.com/en_US/FlashMediaLiveEncoder/3.0/Using/WSA7473A4B-12E2-4d43-A70F-2949CD87732F.html

在预设菜单下,选择多位流选项
如果需要,VP6 或 H.264 视频。否则,请输入您自己的
自定义编码值。在比特率和输出大小下,值
每个流的编号为 1-2 或 1-3。数值是索引
编码流。可以使用这个索引值,表示为%i,
在流名称和文件名中作为区分符。其他参数
也可用。在“输出”下,指定流名称并
文件名。当编码多比特率流时,您可以使用
分号来分隔唯一的流名称,或者您可以使用单个
带参数的流名称。对于文件名,您可以使用参数
来区分流。注意:对于流名称,如果您使用
无论是分号还是参数,参数都会被忽略。

因此,要实现一组类似于您在代码中指定的 MBR 流,您可以将 MBR 流集合指定为:

livestream%1

或:

livestream1;livestream2;livestream3

当您选中所有 MBR 复选框,并且指定流名称包括所有如果您正在广播的流,您将能够使用您提供的代码为播放器提供足够的数据以在流之间切换。

The option to publish multiple bitrates is in your encoding software, often Flash Media Live Encoder if you're not using a dedicated hardware solution.

In FMLE3, the setting is in the 'Encoding Options' tab under the 'Video' section; right beneath 'Input Size' you should see a collection of fields labeled 'Bit Rate', of which you can check up to three.

However, this still leaves you with the problem of how to specify where you're publishing each of your streams, since you're only given a single edit box to type in your destination stream name. The solution for this is found at http://help.adobe.com/en_US/FlashMediaLiveEncoder/3.0/Using/WSA7473A4B-12E2-4d43-A70F-2949CD87732F.html:

Under the Preset menu, select an option for multi-bit streaming for
either VP6 or H.264 video, if desired. Otherwise, enter your own
custom encoding values. Under Bit Rate and Output Size, the values for
each stream are numbered 1-2 or 1-3. The numeric value is the index of
the encoded stream. You can use this index value, represented as %i,
in the stream name and filename as a differentiator. Other parameters
are available as well. Under Output, specify a stream name and
filename. When encoding multi-bit rate streams, you can either use
semicolons to separate unique stream names or you can use a single
stream name with parameters. For the filename, you can use parameters
to differentiate the streams. Note: For the stream name, if you use
both semicolons and parameters, the parameters are ignored.

So, to achieve a set of MBR streams like the ones you specified in your code, you can specify your collection of MBR streams as either:

livestream%1

or:

livestream1;livestream2;livestream3

When you have all the MBR checkboxes checked, and the stream name specified to include all of the streams you're broadcasting, you'll be able to use code like you provided to provide a player with enough data to switch between streams.

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