| slug | 38-how-to-stream-video-over-http | |
|---|---|---|
| id | 38-how-to-stream-video-over-http | |
| title | How to stream video over HTTP for mobile devices? HTTP Live Streaming (HLS) | |
| date | 2018-09-07 21:32 | |
| comments | true | |
| tags |
|
|
| description | Video service over Http for mobile devices has two problems: limited memory or storage and unstable network connection and variable bandwidth. HTTP live streaming solve this with separation of concerns, file segmentation, and indexing. | |
| references |
Video service over Http Live Streaming for mobile devices, which...
- ==has limited memory/storage==
- suffers from the unstable network connection and variable bandwidth, and needs ==midstream quality adjustments.==
-
Server-side: In a typical configuration, a hardware encoder takes audio-video input, encodes it as H.264 video and AAC audio, and outputs it in an MPEG-2 Transport Stream
- the stream is then broken into a series of short media files (.ts possibly 10s) by a software stream segmenter.
- The segmenter also creates and maintains an index(.m3u8) file containing a list of the media files.
- Both the media fils and the index files are published on the web server.
-
Client-side: client reads the index, then requests the listed media files in order and displays them without any pauses or gaps between segments.
