Apple HTTP Live Streaming

 

HTTP Live Streaming lets you send live or pre-recorded audio and video to any iPad, iPhone, iPod touch, or Mac—using an ordinary web server. Designed for mobility, HTTP live streaming can dynamically adjust movie playback quality to match the available speed of wired or wireless networks.

You can use Encoding.com to create iOS streaming files (m3u8) from your source content, and there are several ways to achieve that using the options listed below. Please note that our new HLS encoding has better adaptive bitrate distribution within the H.264 segments.

 

Single video

To configure a single video file for Apple HTTP Live Streaming, do the following:

  1. Upload a single piece of media with our Add Media feature. The source video file may reside on Amazon S3, Rackspace CloudFiles, FTP sites, or your local drive / network.
  2. In the second step of the setup, you will need to setup one or more Output Formats. Choose Adaptive Streaming Formats from the first dropdown menu.
  3. Next, choose either the iPhone or iPad encoding preset from the second dropdown menu.
  4. Continue with the remainder of the setup.

 

Watchfolder

To configure a watch folder for Apple HTTP Live Streaming, do the following:

  1. Follow the instructions in the Watch Folder article.
  2. In Step 3 (the 3rd segment) of the watch folder setup procedure, where you choose the Output Format, choose Adaptive Streaming Formats from the first drop-down menu.
  3. Next, choose either the iPhone or iPad encoding preset from the second dropdown menu.
  4. Continue with the remainder of the watch folder setup.

 

API

You can use our API to submit source content and create Apple streaming video format files in a snap. Go to http://www.encoding.com/api – AdaptiveBitrateEncoding

 

Output

In accordance with the Apple specification, our implementation of HTTP Live Streaming generates two types of files: the master index files (.m3u8) and the mpeg-4 video segment files (.ts). As found in Apple Technical Note TN2224, our default presets use 6-second segments at 30 fps—300 frames in total. In the output directory (such as http://user:password@hostname.net/myvideo.m3u8), there will be one main index file and a number of additional index files, all having the .m3u8 extension. For more details, see https://developer.apple.com/library/ios/ – technotes/tn2010/tn2224.html.

 

Note #1: Be sure to set “Tar segmented files” to OFF or NO, or you will get all the files zipped into one TAR archive file. XML flag as <pack_files>no</pack_files>

Note #2: Please make sure your index files are set to the proper MIME type on your server (application/x-mpegURL) so they pass the Apple Validator Tool, which is available for download HERE.

 

Note #3: DO NOT use two pass encoding, or you will see a blurry I-frame “popping” at the beginning of each 10 second video segment.

Note #4: Be aware that 5 different bitrates will output 30 segment (.ts) files per minute of video, so a 10-minute video will be 300 files. For good organization, we recommend that you place each rendition into a separate destination directory for every output.

 

 

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...

edchelp