FMUSER Wirless Transmit Video And Audio More Easier !
es.fmuser.org
it.fmuser.org
fr.fmuser.org
de.fmuser.org
af.fmuser.org ->Afrikaans
sq.fmuser.org ->Albanian
ar.fmuser.org ->Arabic
hy.fmuser.org ->Armenian
az.fmuser.org ->Azerbaijani
eu.fmuser.org ->Basque
be.fmuser.org ->Belarusian
bg.fmuser.org ->Bulgarian
ca.fmuser.org ->Catalan
zh-CN.fmuser.org ->Chinese (Simplified)
zh-TW.fmuser.org ->Chinese (Traditional)
hr.fmuser.org ->Croatian
cs.fmuser.org ->Czech
da.fmuser.org ->Danish
nl.fmuser.org ->Dutch
et.fmuser.org ->Estonian
tl.fmuser.org ->Filipino
fi.fmuser.org ->Finnish
fr.fmuser.org ->French
gl.fmuser.org ->Galician
ka.fmuser.org ->Georgian
de.fmuser.org ->German
el.fmuser.org ->Greek
ht.fmuser.org ->Haitian Creole
iw.fmuser.org ->Hebrew
hi.fmuser.org ->Hindi
hu.fmuser.org ->Hungarian
is.fmuser.org ->Icelandic
id.fmuser.org ->Indonesian
ga.fmuser.org ->Irish
it.fmuser.org ->Italian
ja.fmuser.org ->Japanese
ko.fmuser.org ->Korean
lv.fmuser.org ->Latvian
lt.fmuser.org ->Lithuanian
mk.fmuser.org ->Macedonian
ms.fmuser.org ->Malay
mt.fmuser.org ->Maltese
no.fmuser.org ->Norwegian
fa.fmuser.org ->Persian
pl.fmuser.org ->Polish
pt.fmuser.org ->Portuguese
ro.fmuser.org ->Romanian
ru.fmuser.org ->Russian
sr.fmuser.org ->Serbian
sk.fmuser.org ->Slovak
sl.fmuser.org ->Slovenian
es.fmuser.org ->Spanish
sw.fmuser.org ->Swahili
sv.fmuser.org ->Swedish
th.fmuser.org ->Thai
tr.fmuser.org ->Turkish
uk.fmuser.org ->Ukrainian
ur.fmuser.org ->Urdu
vi.fmuser.org ->Vietnamese
cy.fmuser.org ->Welsh
yi.fmuser.org ->Yiddish
What is the HLS protocol:
HLS (Http Live Streaming) is a protocol for real-time streaming defined by Apple. HLS is implemented based on the HTTP protocol. The transmission content includes two parts, one is the M3U8 description file, and the other is the TS media file.
HLS protocol application:
Since the transport layer protocol only requires the standard HTTP protocol, HLS can easily pass through firewalls or proxy servers, and can easily use CDN to accelerate distribution, which can easily solve the bottleneck of large-scale applications. And the client is easy to implement.
HLS is currently widely used in the field of on-demand and live broadcast. The HLS protocol transmits audio and video streams through the HTTP protocol to achieve live video. The realization of the HLS protocol is the key. In particular, the current live broadcast protocols of mobile phones in the live broadcast field basically use Apple's HLS protocol. It can be said that the emergence of this agreement has solved the problem of live broadcast on the mobile terminal.
Tools/Materials
800li media server
Method/Step
HLS protocol architecture diagram:
How to generate M3U8 file of HLS protocol
M3U8 file generation and analysis:
The main content of the HLS protocol is about the text protocol M3U8. In fact, the generation and analysis are very simple. The following are examples of practical applications:
Media Playlist (Media Playlist)
How to generate M3U8 file of HLS protocol
· HLS represents a media stream through a Playlist pointed to by URI (RFC3986).
· A Playlist can be a Media Playlist or Master Playlist, using a UTF-8 encoded text file, containing some URIs and descriptive tags.
· A Media Playlist contains a list of Media Segments. When played sequentially, the entire complete stream can be played.
· To play this Playlist, the client needs to download it first, and then play each Media Segment in it.
· A more complicated situation is that Playlist is a Master Playlist that contains a Variant Stream collection. Usually, each Variant Stream contains multiple different versions of the same stream (such as different resolutions and different bit rates).
HLS Media Segments
· Each Media Segment is specified by a URI and may contain a byte range.
· The duration of each Media Segment is specified by EXTINF tag.
· Each Media Segment has a unique integer Media Segment Number.
· Some media formats require a format-specific sequence to initialize a parser, before the Media Segment is parsed. This field is called Media Initialization Section, which is specified by EXT-X-MAP tag.
HLS delay problem
HLS theoretical delay = 1 slice duration + 0-1 td (td is EXT-X-TARGETDURATION, which can be simply understood as the interval time for the player to fetch slices) + 0-n startup slices (Apple's official recommendation is a request (Playing starts after 3 clips) + the network delay of the clip requested by the player (network connection time-consuming). In order to pursue a low-latency effect, the slices can be cut smaller, and the interval between fetching slices can be made smaller, and the player will start playing before three slices are fetched. However, these optimization methods will increase the risk of HLS instability and errors .
Nowadays, many streaming media live broadcast system manufacturers have used the HLS protocol to solve the playback problem of Android phones and Apple phones. Automatically generate the M3U8 playback link address of the effective live video, which is the M3U8 file of the HLS protocol for smooth playback on third-party players that support M3U8, such as VLC player or combined with HTML5 web technology to watch through the mobile browser web page Live video.
How to generate M3U8 file of HLS protocol
The sample playback code is as follows:
HTML code embedded in a web page
<script type="text/javascript" src="http://192.168.1.44:8083/assets/player.js"></script>
<script type="text/javascript">p2ps_embed("hls", "live", "http://192.168.1.44:8083/videos/live/22/39/tUabV17nAPCev", "p2ps_video", "640", "480", "10.1.0", "http://192.168.1.44:8083/assets/expressInstall.swf",{}, {allowFullScreen:true, allowScriptAccess: "always"});
</script><div id="p2ps_video"><h1>We need Flash player 10.1 or above to play. </h1><p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player. gif" alt="Install the latest Flash player" /></a></p>
</div>
Moble M3U8 link
http://192.168.1.44:8083/videos/live/22/39/tUabV17nAPCev/tUabV17nAPCev.M3U8
|
Enter email to get a surprise
es.fmuser.org
it.fmuser.org
fr.fmuser.org
de.fmuser.org
af.fmuser.org ->Afrikaans
sq.fmuser.org ->Albanian
ar.fmuser.org ->Arabic
hy.fmuser.org ->Armenian
az.fmuser.org ->Azerbaijani
eu.fmuser.org ->Basque
be.fmuser.org ->Belarusian
bg.fmuser.org ->Bulgarian
ca.fmuser.org ->Catalan
zh-CN.fmuser.org ->Chinese (Simplified)
zh-TW.fmuser.org ->Chinese (Traditional)
hr.fmuser.org ->Croatian
cs.fmuser.org ->Czech
da.fmuser.org ->Danish
nl.fmuser.org ->Dutch
et.fmuser.org ->Estonian
tl.fmuser.org ->Filipino
fi.fmuser.org ->Finnish
fr.fmuser.org ->French
gl.fmuser.org ->Galician
ka.fmuser.org ->Georgian
de.fmuser.org ->German
el.fmuser.org ->Greek
ht.fmuser.org ->Haitian Creole
iw.fmuser.org ->Hebrew
hi.fmuser.org ->Hindi
hu.fmuser.org ->Hungarian
is.fmuser.org ->Icelandic
id.fmuser.org ->Indonesian
ga.fmuser.org ->Irish
it.fmuser.org ->Italian
ja.fmuser.org ->Japanese
ko.fmuser.org ->Korean
lv.fmuser.org ->Latvian
lt.fmuser.org ->Lithuanian
mk.fmuser.org ->Macedonian
ms.fmuser.org ->Malay
mt.fmuser.org ->Maltese
no.fmuser.org ->Norwegian
fa.fmuser.org ->Persian
pl.fmuser.org ->Polish
pt.fmuser.org ->Portuguese
ro.fmuser.org ->Romanian
ru.fmuser.org ->Russian
sr.fmuser.org ->Serbian
sk.fmuser.org ->Slovak
sl.fmuser.org ->Slovenian
es.fmuser.org ->Spanish
sw.fmuser.org ->Swahili
sv.fmuser.org ->Swedish
th.fmuser.org ->Thai
tr.fmuser.org ->Turkish
uk.fmuser.org ->Ukrainian
ur.fmuser.org ->Urdu
vi.fmuser.org ->Vietnamese
cy.fmuser.org ->Welsh
yi.fmuser.org ->Yiddish
FMUSER Wirless Transmit Video And Audio More Easier !
Contact
Address:
No.305 Room HuiLan Building No.273 Huanpu Road Guangzhou China 510620
Categories
Newsletter