HTTP Live Streaming
HTTP Live Streaming
HTTP Live Streaming
1/ Let you send audio and video over HTTP from an ordinary web server for playback on iOS (based
devices: iPhone, iPad, iPod touch, and Apple TV) and on desktop computers (Mac OS X).
2/ iPhone and iPad apps that send large amounts of audio or video data over cellular networks are
required to use HTTP Live Streaming.
3/ Where possible, use the <video> tag to embed HTTP Live Streaming, and use
the <object> or<embed> tags only to specify fallback content.
4/ Bonus:
MPEG-4 is one of the latest (audio and video) compression method standardized
by MPEG (Moving Picture Experts Group), designed especially for low-bandwidth /bng thng/
(less than 1.5MBit/sec bitrate) video/audio encoding purposes.
MPEG - 2
MPEG - 3
MPEG - 4
MPEG - 7
MPEG - 21
Overview
HTTP Live Streaming
Server component
Distribution component
Client software
Encapsulating them in a
format suitable for delivery
Server Components
- Takes a real-time signal from an audio-video device
- Encodes the media (H.264 video and HE-AAC audio )
- Encapsulates it for transport. (MPEG-2 Transport Streams for
audio-video, or MPEG elementary streams for audio-only).
Media
Encoder
Server
Compone
nts
Stream
Segmen
ter
File
Segmen
ter
# H.246
H.264 is a next-generation video compression format. H.264 is also known as MPEG-4 AVC (Advanced Video Coding).
Developed for use in high definition systems such as HDTV, Blu-ray and HD DVD as well as low resolution portable
devices such as Sonys PSP and Apples iPod, H.264 offers better quality at lower file sizes than both MPEG-2 and
MPEG-4 ASP (DivX or XviD).
Apple has official adopted H.264 as the format for QuickTime. It is also one of the formats chosen to be supported by
both high definition DVD standards, and is destined to be the future standard format for Blu-ray. Even AVCHD, the
consumer format offered by the same people behind Blu-ray and for use in camcorders and Blu-ray recorders, uses H.264
as the main video format.
# Example
http://stackoverflow.com/questions/13088123/http-live-streaming-ext-x-discontinuity-tag-makes-allsegments-afterwards-only
Deploying HTTP
Live Streaming
Create either an
HTML page for
browsers or a
client app
(Receiver)
Configuring
/thit lp cu
hnh/ a Web
Server
Validating // Your
Streams
src="http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8"
height="300"width="400"
>
</video>
</body>
</html>
EX fallback in html
http://code.tutsplus.com/tutorials/quick-tip-html5-video-with-a-fallback-to-flash--net-9982
MIME (Multi-Purpose Internet Mail Extensions) is an extension of the original Internet e-mail protocol that lets people
use the protocol to exchange different kinds of data files on the Internet: audio, video, images, application programs, and
other kinds, as well as the ASCII text handled in the original protocol, theSimple Mail Transfer Protocol(SMTP).
Multipurpose Internet Mail Extensions (MIME) is an Internet standard that extends the format of email to support:
Non-text attachments
File Extension
.M3U8
.ts
MIME Type
application/xmpegURL or
vnd.apple.mpegURL
video/MP2T
TTL (Time to live) l thi gian m nameserver khc c cp nht li, tnh theo giy. Mc nh l 86400 giy tc 24 gi.