authentication before using it. In this android RTMP example, we will not only discuss RTMP live streams, but also m3u8 streams (HLS), RTSP streams, and MMS (Microsoft Media Stream ). First, let us reference the Vitamio library in our project.Follow these steps to reference the Vitamio library in Android Studio:
Download Vitamio bundle
Decompress the package and choose File> Import Module on Android Studio.
Specify the VitamioBundle path, select
the m3u8 stream (HLS), RTSP Stream, and MMS (Microsoft Media stream). First let's refer to the Vitamio library in our project.The steps for referencing the Vitamio library in Android Studio are as follows:Download Vitamio bundle Https://github.com/yixia/VitamioBundle Unzip and File->import Module on Android Studio To specify the Vitamiobundle path, select the Vitamio folder click Finish to add the dependent item (': Vitamio ') on the Build.gradle (M
plugin)
RTMP_SAMPLE_PLAYER_VIDEOJS: Videojs-based rtmp/http player
Rtmp_sample_player_jwplayer: Jwplayer-based rtmp/http player
Hls_sample_player_flowplayer: FlowPlayer-based HLS player (add HLS plugin)
HLS_VIDEO_PLAYER_HTML5: HTML5-based hls/http player
Activex_vlc_player: The player for the VLC-based ActiveX control
rtmp sample player Adobe rtmp sample player Adobe is a Test player extracted from Adobe Flash Media Sever, wh
Http://www.cnblogs.com/haibindev/archive/2013/01/30/2880764.htmlInadvertently found that the big six months did not write a blog, consciously ashamed. In fact, after 2012 half a year, the things in the family happened the same, there is no time. Fast New Year, finally sneak in, the recent technical achievements, summed up into the article, share with you.Some days ago, it was also a project need, spent some time studying HTTP live streaming(HLS) technology, and implemented a HLS encoder HLSLiveE
segment may not rely on the preceding segment to decode and play independently. To do this, the TS file must contain only one MPEG-2 program, at the beginning of each file should contain a program associated table (PAT) and a Program mapping table (PMT), and a file containing video must also contain at least one keyframe and other sufficient information (such as a sequence header) to complete the initialization of the decoder. The index file takes an extended m3u playlist format, suffixNamed.
, need check whether there is Protectionheader field, you can see the following with Insys DRM is encrypted with a large section of the key's info.1. wget (curl) HSS manifest.2. Check HSS manifest include key info.3. Check DRM system related logs and make sure key is create successfully.4. Check our system related logs.5. wget TS segment and compared with NO-DRM segment.HSS with Insys DRMHSS with no DRMHLS Master m3u8 contains information about severa
has a corresponding solution.
HLS protocol Detailed
As you can see, HLS has a total of three parts: Serve, CDN, Client. The main content of the HLS protocol is about m3u8, which is very simple to generate and parse, with examples such as:
Simple Media Playlist
Master Playlist with multiple bit rates
HLS Optimization Technology
Because the client each request TS or m3u8 may be a new connection reques
Today the development feedback encountered such a phenomenon when testing the Kingsoft device:wget https://funchlscdn.lechange.cn/LCLR/2K02135PAK01979/0/0/20170726085033/dev_20170726085033_ lpxh73ezzb92xxa8.m3u8--2017-07-26 11:49:26--https://funchlscdn.lechange.cn/LCLR/2K02135PAK01979/0/0/20170726085033/dev_20170726085033_lpxh73ezzb92xxa8.m3u8 Resolving funchlscdn.lechange.cn ...120.92.158.134 Connecting to
divided into a series of time periods and saved as a. TS media file. This step is usually done by software tools, such as Apple's media streaming segment.
Audio-only media streams can be a series of simple MPEG files, coded formats or MP3, or AAC with Adts headers.
The staging device also creates an index file that contains a list of media files and some metadata. The format of the index file is. m3u8. The client accesses the URL of the index file an
(m3u8/mpeg-ts), MP3,AAC. By satisfying these formats, you can overwrite most of the application scenarios.Play data statistics. Broadcast statistics are mainly used for users to watch statistics, billing, basic service status analysis, user behavior analysis and so on.Advertising. Advertising is an important means of transformation of video applications.Appearance customization. Visual customization helps audio and video applications to beautify the
streaming Protocol)MMS (Microsoft Media Server Protocol)HLS (Http Live streaming)Here is the main introduction of HLS,HLS (HTTP Live streaming) is an HTTP-based streaming solution developed by Apple for mobile devices such as the iphone, IPod, itouch and ipadhttps://developer.apple.com/streaming/Technical key points1. Capture data from video sources and audio sources2. H264 encoding and AAC encoding of raw data3. Video and audio data encapsulated as Mpeg-ts package4.HLS segmentation Generation
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 proxy problems, and the length of the fragmented file is very short, the client can q
home page, if you can see the following, indicating that the entire environment is OK, then you can use push and pull flow to see the actual effect. Finally, use the command nginx.exe -s stop to gracefully terminate the Nginx service.
Effect testThe next effect test, a little bit of a change to the environment, using the Jwplayer play page provided in Nginx-rtmp-module to pull the stream or record page to push.
The first is to create a new f
I. PreambleCore: Server (Nginx-rtmp-module) + push-to-stream (OBS) + Accept-end (Jwplayer)Second, the service side 1. Download Nginx-rtmp-module ModuleAddress: Https://github.com/arut/nginx-rtmp-module2. Compile and install NginxCD./nginx-1.10.0/./configure--add-module=/path/to/nginx-rtmp-module--with-http_ssl_modulemakemake InstallNote: Modify the two code paths according to the actual situation3. Configure the nginx3.1 join nodertmp { server {
#!/bin/bash# gets all m3u8 files in the current directory, and Var=$(ls|grep '. m3u8'|Cut-D'.'-F1) #死循环 while[1=1 ] Do#循环每个文件 forStreaminch$var Do#获取当前最新视频文件 TS=$(ls-t|grep "$stream") for file inch$ts Do#存储M3U8文件文件名作为图片文件名, for* -, capturing the first frame, stored in the current directory of the Screen folder img=$(ls$file|Cut-D'-'-F1) #调用ffmpeg intercep
Qiniu uses the m3u8 automatically stored after real-time transcoding. Is it the source file name + random character name? How to directly access the transcoded file to avoid multiple times before Transcoding: 0108f06dee5e36e02197631adbc2b5.mp4 after Transcoding: video.dameiketang.com... qiniu uses the m3u8 automatically stored after real-time transcoding. Is it the source file name + random character name?
operations. But the advantage of HTTP is that it is 80http communication, penetrating, and rtmp is a non-open protocol.The two protocols are the main stream of live broadcast platforms today, mainly because of the low latency.HLsHLS is an apple-launched live protocol that is streamed from video stream slices to file fragments. The client will first request a m3u8 file, which will have a different bitrate stream, or directly a list of TS files, by the
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.