如何实施的Adobe HTTP流规范,而不使用自己的流媒体服务器 [英] How to implement the Adobe HTTP Streaming spec without using their Streaming server

查看:194
本文介绍了如何实施的Adobe HTTP流规范,而不使用自己的流媒体服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

随着Flash 10.1的,他们纷纷加入到通过对appendBytes方法中添加字节到NetStream对象的能力(这里所描述 HTTP: //www.bytearray.org/?p=1689 )。的主要原因这一加法是Adobe正在最后支持视频的HTTP流。这是伟大的,但似乎你需要使用Adobe的流媒体服务器(http://www.adobe.com/products/httpdynamicstreaming/)从现有的视频创建正确的视频块,以便流顺畅。

As of Flash 10.1, they have added the ability to add bytes into the NetStream object via the appendBytes method (described here http://www.bytearray.org/?p=1689). The main reason for this addition is that Adobe is finally supporting HTTP streaming of video. This is great, but it seems that you need to use the Adobe Media Streaming Server (http://www.adobe.com/products/httpdynamicstreaming/) to create the correct video chunks from your existing video to allow for smooth streaming.

我试图做一个破解的HTTP版本,在过去流的,我换出的NetStream对象(类似于这里 HTTP: //video.leizhu.com/video.html ),但总有块之间的瞬间暂停。随着新的对appendBytes,我试图做一个快速模拟了从preceding网站视频的两部分,但即使这样,跳过依然存在。

I have tried to do a hacked version of HTTP streaming in the past where I swap out the NetStream objects (similar to here http://video.leizhu.com/video.html), but there is always a momentary pause between the chunks. With the new appendBytes, I tried to do a quick mock up with the two sections of video from the preceding site, but even then, the skip still remains.

有谁知道这两个连续的FLV文件,需要如何才能为NetStream对象上对appendBytes方法来创建一个漂亮流畅的视频,而该段之间明显的跳跃被格式化?

Does anyone know how the two consecutive .FLV files needs to be formated in order for the appendBytes method on the NetStream object to create a nice smooth video without a noticeable skip between the segments?

推荐答案

我能得到这个使用Adobe的文件打包工具便是塞缪尔说明工作。我没有使用NetStream对象,但我用了OSMF示例播放器,我认为使用这个内部。以下是如何做的,而无需使用FMS:

I was able to get this working using Adobe's File Packager Tool which Samuel described. I didn't use the NetStream object but I used the OSMF Sample Player which I assume uses this internally. Here's how to do with without using FMS:

  1. 获得Adobe的文件打包为HTTP动态流从<一个href="http://www.adobe.com/products/httpdynamicstreaming/">http://www.adobe.com/products/httpdynamicstreaming/
  2. 运行文件打包在包含H.264 / AAC像这样一个现有的MP4文件: C:\ Program Files文件\的Adobe \ Flash Media Server的4 \工具\ f4fpackager> f4fpackager.exe --input文件=MyFile.mp4--segment持续时间= 30
  1. Get Adobe's File Packager for Http Dynamic Streaming from http://www.adobe.com/products/httpdynamicstreaming/
  2. Run the File Packager on an existing MP4 file containing H.264/AAC like this: C:\Program Files\Adobe\Flash Media Server 4\tools\f4fpackager> f4fpackager.exe --input-file="MyFile.mp4" --segment-duration=30

这将导致在30个第二长F4F文件,也​​F4X和F4M文件。该F4F文件的正确分段(和零散的)MP4文件应发挥。 如果你想使用OSMF播放器还执行以下操作来测试:

This will result in 30 second long F4F files, also F4X and a F4M file. The F4F files are your correctly segmented (and fragmented) MP4 files that should play. If you want to test this using the OSMF Player also do the following:

  1. 在获得Apache服务器
  2. 获得Adobe的HTTP模块原产地为Apache从<一个href="http://www.adobe.com/products/httpdynamicstreaming/">http://www.adobe.com/products/httpdynamicstreaming/
  3. 安装根据模块<一href="http://help.adobe.com/en_US/HTTPStreaming/1.0/Using/WS8d6ed60bd880807c48597a9e1265edd6cc0-8000.html">http://help.adobe.com/en_US/HTTPStreaming/1.0/Using/WS8d6ed60bd880807c48597a9e1265edd6cc0-8000.html
  4. 把F4F,F4X和F4M文件到VOD目录下的httpdocs
  5. 在获得OSMF示例播放器HTTP动态流从<一个href="http://www.osmf.org/downloads/OSFMPlayer_zeri2.zip">http://www.osmf.org/downloads/OSFMPlayer_zeri2.zip
  6. 把样品玩家在httpdocs目录
  7. 加载从采样播放器的html文件,在浏览器中,例如 HTTP://localhost/OSMFPlayer.html
  8. preSS的退出按钮,把你的F4M文件的URL,它应该发挥
  1. Get Apache Server
  2. Get Adobe's Http Origin Module for Apache from http://www.adobe.com/products/httpdynamicstreaming/
  3. Install the module according to http://help.adobe.com/en_US/HTTPStreaming/1.0/Using/WS8d6ed60bd880807c48597a9e1265edd6cc0-8000.html
  4. Put the F4F, F4X and F4M file into the vod directory under httpdocs
  5. Get the "OSMF Sample Player for HTTP Dynamic Streaming" from http://www.osmf.org/downloads/OSFMPlayer_zeri2.zip
  6. Put the Sample Player in the httpdocs directory
  7. Load the html file from the Sample Player in a browser eg http://localhost/OSMFPlayer.html
  8. Press the eject button and put in the URL of your F4M file, it should play

因此​​,要回答原来的问题Adobe的文件打包的文件分离器来使用,你不需要购买FMS使用它和它的作品对FLV和MP4 / F4V文件。

So to answer the original question Adobe's File Packager is the file splitter to use, you don't need to buy FMS to use it and it works for FLV and MP4/F4V files.

这篇关于如何实施的Adobe HTTP流规范,而不使用自己的流媒体服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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