HLS or HTTP Live Streaming provides a reliable way to deliver continuous and long-form audio and video over the Internet. It has become a default standard for online delivery of audio and video serving content on host of devices and browser environments. What makes HLS a better option than RTMP or RTSP chunked streaming is deployment with standard http severs and http as communication protocol. HLS utilizes segmented H.264 MPEG-2 TS video and M3U8 descriptor files to deliver. Audio Sample Rate, 48000 or less, 48000 or less, 48000 or less. M3U8 file to MP4 conversion? Iphone video player app by file sharing since the file is a folder of smaller files. Get a.ts file rather than.m3u8. HLS can be used to deliver a single bitrate file or in a more advanced format, multiple bitrates. Multi bitrate configuration enables receiver or client to adapt to required bitrate based on its current network conditions for an uninterrupted playback. HLS or HTTP Live Streaming (HLS) specification is available here HLS- Key benefits with HLS Streaming • Well structured and simple protocol. Playlist is accessible in text format and easy to modify. • Use of TS (transport stream) files ensures ecosystem for testing and conformance. • TS files can carry other metadata, such as SCTE 35 cues or ID3 tags (audio metadata standard for MP3 audio) • HLS is supported natively on iOS HLS has some disadvantages also like it is not supported natively on windows platform and TS files mux audio, video and data together. The mix limits modifications to files like adding additional audio tracks etc. HLS File structure HTTP live streaming works on sequence of MPEG-2 TS file segments which are listed in a manifest index file. The TS media segments encapsulates both the audio and video and are typically of 10 seconds duration, but it can be easily configured. An index file provides an ordered list of the URLs of the media segment files and is saved with an.m3u8 extension. The receiver or client downloads the index file, parses the URLs and downloads media segments in the sequence for playback. The URLs for segments can be a remote HTTP resource or local file on web server, accessed using the standard http file protocol. Index file has details on sequence number to associate chunks from different profiles, time information, type of stream, information about the chunk duration etc. Index file also has optional metadata directives signaling whether chunks can be cached and the location of decryption keys. Setup for HLS Streaming Deploying HTTP Live Streaming needs few simple steps. Regatta de blanc the police album youtube. We need source content which will be streamed. If content is not in desired bitrate, it can be easily recoded to desired bitrate Desired bitrate files can be created by recoding the mezzanine or original file to target bitrates. In the example below, we encode the file for 500 kbps which is ideal for 48op resolution using constant rate factor (constant quality), a more desired option encoding process. Ffmpeg -i Glacier.mp4 -acodec copy -vcodec copy -preset slow -b:v 500k -maxrate Next we create HLS segments and store them behind a server.
2 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |