Video of some of the elements

Resolution 360P 540p 720p 1080p 4k

Comparison of the HLS and RTMP

https://blog.csdn.net/caoshangpa/article/details/79543916

Detailed live HLS protocol m3u8

https://blog.csdn.net/aoshilang2249/article/details/82012187

Extracts:

Live Streaming HTTP (acronym HLS) is an HTTP-based streaming media network transmission protocol that proposed by Apple.

It works by a small stream into the entire HTTP-based file to download, a time to download some, when the media stream is playing, the client can choose from many different alternate download sources at different rates similar resources, allowing a streaming media session to accommodate different data rates.

RTMP refer to Adobe's RTMP (Realtime Message Protocol), it is widely used in low-latency live, but also the de facto standard protocol encoder and server docking with the best stability and best viewing experience on PC (Flash).

 

HLS refers to Apple's HLS (Http Live Streaming), Apple platform is a standard streaming protocol itself is Live (live)

 

HLS main application scenarios

Cross-platform: PC major live program is RTMP, there are some libraries can play HLS, such as jwplayer, based on hls plug osmf also a lot. So if the election is actually a protocol that can cross PC / Android / IOS, and that it is HLS. Android / IOS native player to support playback of HLS

 

Stringent stability requirements on IOS: IOS the most stable course HLS, RTMP stability is not worse than the performance of the PC-flash.

 

Friendly CDN distribution methods: RTMP is currently CDN for the basic agreement, but the basic HLS distribution is HTTP, so the CDN access and distribution will be more perfect than RTMP. You can switch between CDN, RTMP can, but may require docking test.

 

Simple: HLS as streaming media protocol is very simple, apple support was also very perfect. Android support for HLS will be more perfect. As DASH / HDS, as if there is no particular reason, just like linux has become very popular and open, other systems difficult to widely used.

 

In short, SRS support HLS mainly as a distribution protocol output, in order to live RTMP + HLS distribution, always full of all kinds of scenarios. Demand dominated by HLS.

 

m3u8 structure and hls simple analytical protocols

https://blog.csdn.net/weixin_38890593/article/details/96965164

Extracts:

HLS (Http Live Streaming): for real-time streaming protocol, based on HLS HTTP protocol, the transmission including two parts, one M3U8 description file, the second is TS media file.

HLS advantage is: play stream may be adaptively adjusted, i.e. when the high stream selected network flow, low stream selection when the network is busy, both free to switch itself, to ensure smooth flow of the video stream. Of course, this method requires the server to provide multiple streams of video data, and need to be noted in the list of files, form player will be adjusted according to the user's actual situation.

 

The best way to live with hls way because it made himself independent functional modules, specifically for live streaming

 

Commonly used HLS (m3u8) video protocol analysis

https://blog.csdn.net/ffffffff8/article/details/84949775

Extracts:

HLS file format of the statement is  .m3u8  documents and corresponding  .ts  play the file that the server will have a  .m3u8  files and many other  .ts  file, put it simply better understand some of this, m3u8 file is an index file , ts for the actual broadcast content.

 

 

Streaming (m3u8) Download

https://blog.csdn.net/m0_38055718/article/details/79317162

About M3U8

First, we need to understand a few concepts:

 

M3U: 本质上是音频文件的列表,纯文本格式。播放软件根据它的记录找到网络地址进行在线播放

M3U8: 是M3U中的一种,编码格式为UTF-8格式

TS片段:Apple 为了提高流播效率开发的技术,将流媒体切分成若干TS片段,然后通过一个m3u列表文件将这些TS片段集中起来供客户端播放器播放

HLS:HTTP Live Streaming是Apple的动态码率自适应技术。包括一个m3u8索引文件,TS媒体分片文件和key加密串文件。

HLS的优势:自适应码率流播。就是客户端会根据网络状况自动选择不同码率的视频流,条件允许的情况下使用高码率,网络繁忙的时候使用低码率,并且自动在二者间随意切换。

 

TS文件选择原因:因为两个 TS 片段可以无缝拼接,播放器能连续播放。

 

 

Guess you like

Origin www.cnblogs.com/Kali-BT/p/12160634.html