also supported. MKV and. srt embedding. However, it carries a license, so you must first obtain 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 pa
before using it. In this Android rtmp example, we will discuss not only the rtmp live stream, but also 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,
workaround is to follow the following process to test, such as HSS manifest file, if the DRM encryption, 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 w
, because TS tiles are usually small, massive fragmentation can be challenging in terms of file distribution, consistent caching, and storage.
While HLS has a significant disadvantage, the cloud also 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
-(void) openhttpserver{ self.httpserver = [[Httpserver alloc] init]; [Self.httpserver settype:@ "_http._tcp."]; Set the service type [Self.httpserver setport:12345];//Set server port //Get local Library/cache path under downloads path NSString * Webpath = [Klibrarycache stringbyappendingpathcomponent:kpathdownload]; NSLog (@ "-------------\nsetting document Root:%@\n", Webpath); Set the server path [Self.httpserver Setdocumentroot:webpath]; Nserror *error; if
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
configuration is shown in Figure 1-1. Figure 1-1 Basic Configuration
Input can be real-time or pre-recorded content, usually encoded into MPEG-2 TS streams by existing hardware. The MPEG2 TS Stream is then 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 cre
compatibility.Commonly used container format support. Common container formats include: FLV, MP4, HLS (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 applicati
quality of the video is progressively downloaded.Real-time Streaming media protocol:RTSP (Real time 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 encod
streaming live protocol.Based on the above understanding to implement the HTTP live streaming live, you need to study and implement the following technical key points(1) Acquisition of video source and audio source data(2) H264 encoding and AAC encoding of raw data(3) Video and audio data encapsulated as Mpeg-ts package(4) HLS segmentation Generation Strategy and m3u8 index file(5) HTTP Transport ProtocolThree. B-station-based streaming media solutio
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?
that can only be streamed live compared to rtmp, while rtmp also pushes the stream and more 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
directly from the server's memory, greatly improving the response speed of the terminal data requests, optimizing the video viewing experience.RTSP protocol, this should be the best real-time, if you want to real-time requirements are very high, such as 0.5s or less, this is a good choice. The former mimic Spydroid wrote a proposed RTSP server, in fact, is options,describe,setup,play,pause,teardown these steps, the agreement with the most extensive, on-line introduction is more. To really under
sample program officially provided.
Running:The above is an official demo, which can be implemented by many functions in the demo. The question is, how can I integrate IJKPlayer into my own project? I encountered a lot of difficulties in integration ......
Integrate ijkplayer into your project:Create your own project:Step 1:Add the IJKMediaFrameWork. framework static library and IJKMediaPlayer to the project file.
Second, no:Open the project to add the two files to the home directory, and then
control video frames, so it can carry applications with high real-time performance. The default port is 554. Generally, streams in ts and MP4 format are transmitted. 3. HLS (HTTP live streaming)××× Streaming media protocol. M3u8 is used as the index file, and the video is a segment file in MPEG2-TS format. If it is a live video stream, update the m3u8 file to live the video. Because the final video is a f
In order to facilitate live/monitor users to use cloud storage products to store audio and video data, Alibaba Cloud Storage (OSS) products recently launched rtmp streaming function. The user can upload the audio and video data to the cloud storage OSS directly using the RTMP protocol.
Cloud Storage Livechannel Introduction
Livechannel is the new concept of cloud storage in order to manage the rtmp push stream, and the Livechannel is the live channel, which is used to save the push flow configur
#!/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
directory "has turned on the anti-theft chain" /hls "No anti-theft chain" in place for m3u8 to store files It can be seen that the two modules of the common one folder/tmp/hls;3. Test permissionsPass Curl Test "1" gets the MD5 encryption value: [email protected]:/home/www# echo-n Password121.1.206.18c7e2d8f498920f1a86e4c95d4a58a27e - MD5 encryption value is: c7e2d8f498920f1a86e4c95d4a58a27e Echo-n does not output line breaks, md5sum encryption method
1. Why to use HTTP Live streamingRefer to WikipediaHTTP Live Streaming (abbreviated as HLS) is an HTTP-based streaming network Transfer protocol proposed by Apple. is part of Apple's QuickTime X and iphone software system. It works by dividing the entire stream into small HTTP-based files to download, one at a time. When media streaming is playing, clients can choose to download the same resources at different rates from many different alternative sources, allowing streaming media sessions to ac
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.