1. Using HTTP Live
Streaming
twitter:@vonbo
29/02/2012
12年2月29日星期三 1
2. Intro
Streaming audio or video to iPhone, iPod
touch, iPad, or Apple TV
Streaming live events without special server
software
Sending video on demand with encryption
and authentication
12年2月29日星期三 2
4. Step By Step
Download segment tools from apple (https:/ /
developer.apple.com/downloads/index.action
search “HTTP Live Streaming Tools”)
Segment original file into several pieces (.ts
file) every 5 ~ 10 seconds
Generate a manifest file (.m3u8 file) which
includes all the ts file name
12年2月29日星期三 4
5. Sample - Step 1 - Segment
$ cd /User/fengbo/project/testhsl/bgrs
$ ls
rwarren.mp4 Use the mediafilesegmenter
$ mediafilesegmenter rwarren.mp4 command
Feb 29 2012 11:22:36.949: Using floating point is not backward compatible to
iOS 4.1 or earlier devices
Feb 29 2012 11:22:36.950: Processing file /Users/fengbo/project/testhsl/bgrs/
rwarren.mp4
Feb 29 2012 11:22:37.577: Finalized fileSequence0.ts
Feb 29 2012 11:22:37.577: segment bitrate 1.30908e+06 is new max
Feb 29 2012 11:22:37.587: Finalized fileSequence1.ts
Feb 29 2012 11:22:37.600: Finalized fileSequence2.ts
Feb 29 2012 11:22:37.618: Finalized fileSequence3.ts
....
12年2月29日星期三 5