encrypted key
hlsKeyUrlSpecifies the url of the key, which is base64_urlsafe encoded. This is used to generate m3u8 PlayList.
hlsKeyTypeSpecifies the method for transferring the key.
If this parameter is not specified or 0 is specified, it is transmitted only in base64_urlsafe encoding mode.
Specified as 1.x( 1.0, 1.1 ,...), The encryption method of rsa oa ep is used to transmit the key by encoding. x indicates the version of the k
IPhone, iPad,
IPod-HTTP live streaming (HLS) with free tools on Windows
ByAndrewonFebruary 1, 2011
Apple HTTP live streaming (HLS) has been a nightmare to get working. below, I'll go through some of my trials and tribulations in getting HLS encoding for non-live streams working in windows. in summary, I couldn't get the bitrate I wanted on my videos.I'll provide
equal number of CPUs.Work_connections: maximum number of concurrent connections of a single backend worker process
Http server configuration
Sendndfile: Specifies whether nginx calls the sendfile function (zero copy mode) to output files. for common applications, this function must be set to on. if this function is used for downloading application disk I/O heavy load applications, it can be set to off to balance the disk and network I/O processing speed and reduce the system uptime.
m3u8 Field meaning analysisHls,http live Streaming is an apple-defined protocol for real-time streaming, and HLS is based on the Http protocol, which consists of two parts: the m3u8 profile and the TS media file.m3u8 fileThe media file is described in text form and consists of a series of tags. Examples are as follows:For more information on
A Preliminary Study on HLS on-demand and live video streaming, on-demand video streaming
There are only two front-end live video protocols available:
RTMP (Real Time Messaging Protocol)
HLS (HTTP Live Streaming) WhereRTMPIt is a protocol developed by Adobe and cannot be compatible with the iPhone. Therefore, the HLS protocol is the most compatible currently
constantly downloads and plays these small files because the server side always generates new small files with the latest live data. So that the client as long as the sequential playback of the files obtained from the server, the implementation of the live broadcast. It can be seen, basically, that HLS is on-demand technical way to achieve live. Because the data through the HTTP protocol transmission, so completely do not consider the firewall or pro
When playing a video stream using HLS technology, you first convert the video to a TS slice and a m3u8 playlist, using FFmpeg to do the conversion (the low version ffmpeg does not support direct turning, and can now be converted to TS and m3u8-segmenter slices, The author uses ffmpeg version-2.1.2), usually using the following command:
Ffmpeg-i input.mp4-c:v libx
generates new small files with the latest live data. So that the client as long as the sequential playback of the files obtained from the server, the implementation of the live broadcast. It can be seen, basically, that HLS is on-demand technical way to achieve live. Because the data through the HTTP protocol transmission, so completely do not consider the firewall or proxy problems, and the length of the fragmented file is very short, the client can
. So that the client as long as the sequential playback of the files obtained from the server, the implementation of the live broadcast. It can be seen, basically, that HLS is on-demand technical way to achieve live. Because the data through the HTTP protocol transmission, so completely do not consider the firewall or proxy problems, and the length of the fragmented file is very short, the client can quickly select and switch the bitrate to adapt to d
m3u8 TESTDOCTYPE HTML>HTML>Head>title>m3u8 TESTtitle>Head>Body>DivID= "Player">Div>Body>HTML>HTML codeJS CodePlayer necessary files (e.g.. swf file, etc.): http://blog.denivip.ru/index.php/2013/05/osmf-hls-plugin/?lang=enNote: If your player cannot play m3u8 linked video, try this player to play the local MP4 video. If
router firewall is not a problem. You can also use a common CDN to simplify the deployment and distribution of video and reduce the use of bandwidth.This is currently used forPC-side or web-side, VOD service, the most common solution。 The implementation of the client, generally using Flash, Flash is the Videoplayer or Videodisplay control can be completed. Resources are generally in FLV format or in MP4 format.On this basis, a number of companies have introduced their own solutions.2.3
Hls,http live Streaming is an apple-defined protocol for real-time streaming, and HLS is based on the Http protocol, which mainly consists of two parts: the m3u8 profile and the TS media file.Because it is apple out of the video playback format, so the PC side in addition to safari other browsers basically do not support, Microsoft Edge launch on the support, is
this machine, if the browser appears Welcome to nginx! Indicates that Nginx is installed and running successfully..1.7, restart/usr/local/nginx/sbin/nginx–s ReloadNote: If the virtual machine is turned on, the other computer will be able to access the IP address properly.Second, generate the m3u8 file and the corresponding TS file:Generate m3u8 files and for TS files in the same way as the
Http://blog.csdn.net/langeldep/article/details/8603045What are the advantages of m3u8?
After searching online, you may have different opinions. My personal understanding is that you can adapt to multiple bit rates. Based on network bandwidth, the client selects a file suitable for the bit rate for playing, ensuring the smoothness of the video stream.
In iOS device and Mac, HTTP can be used for distribution, where playlist is a standard
What are the advantages of m3u8?
After searching online, there are different opinions. My personal understanding is that it can adapt to multiple bit rates. Based on network bandwidth, the client selects a file suitable for its own bit rate for playing, ensuring the smoothness of the video stream.
In iOS device and Mac, HTTP can be used for distribution. Among them, playlist is a m3u8 file extended by M3U
Why use Video.js?1. PC-side browser does not support video direct playback of m3u8 format videos2. Mobile phone end of a variety of browser-customized video interface style is not unified, direct write native JS control videos Poor compatibility3. Video.js solve the above two problems, but also can have a variety of video status interface exposure, optimize the experienceCore code:SOURCE Please visit GitHub:VIDEOJS Support
I. Configuring HLS in the Rtmp module of the Nginx configuration fileHls_key_path/tmp/hlskeys;Prompt for error message:the same path name "/data/hlskeys" used in/usr/local/nginx/conf/nginx.conf:178 and in/usr/local/nginx/conf/ nginx.conf:178Workaround:View official RTMP Source code:nginx-rtmp-module / HLS /ngx_rtmp_hls_module.c Ngx_conf_merge_str_value (conf-> key_path,prev-> Key_path, "");Lines No. 2346
/_definst_/liveevent/livestream1.f4mhttp://yourserverip:8134/hds-live/livepkgr/_definst_/liveevent/livestream2.f4mhttp://yourserverip:8134/hds-live/livepkgr/_definst_/liveevent/livestream3.f4mUsing Firebug or Google Chrome to open the developer tools interface and switch to the network option, you can see that the video is downloaded by segment, which verifies that the HTTP Dynamic streaming live mode is successful.
Video data files generated while live are stored in the rootinstall/applications
HLS: value on|off switch HLS hls_path: Sets the position of the playlist (m3u8) and the media block Hls_fragment: followed by time to set the size of each block. The default is 5 seconds. can only be integer hls_playlist_length: Sets the length of the playlist, in seconds Hls_sync: Sync time for audio and video Hls_continuous:on|off set continuous mode, starting
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.