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 fr
Build an mp4/flv Streaming Media Server Based on tengine in CentOS6 (
Location ~ \. Mp4 $ {Root/mnt/media/vod;Mp4;Limit_conn addr 20;Limit_rate 200 k;}
Location/hls {# Serve HLS fragmentsAlias/mnt/media/app;}
Access_log logs/nginxflv_access.log access;}}---------------- Nginx configuration file --------------
4. Convert your movies into mp4 and flv formats to test the nginx environment.
4.1) Prepare a movie
client through the access to Nginx to watch real-time video streaming. HLS is the same principle, but the final client is accessed via the HTTP protocol, but the ffmpeg push stream is still rtmp.After the installation is complete, open nginx configuration file nginx.conf to configureFirst add the rtmp configuration to the insideJava code
rtmp {
server {
Listen 1935;
Application MyApp {
Live on;
}
Application
be played under/Library/WebServer/documents.2. Real-Time Streaming Media
Real-Time Streaming Media is played while receiving data packets. Local files are not retained, and data is always transmitted in real time. Users can fast forward and return. However, Real-Time Streaming Media Playback must ensure that the transmission speed of data packets is higher than the playback speed of files; otherwise, the playback effect is affected.Real-Time Streaming Media transmission protocols include RTSP,
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
number of companies have introduced their own solutions. 2.3 HLS HDS MSS DASHApple's launch of the HTTP Live streaming is one that has been widely used with the popularity of Apple devices. From the noun can be judged, HLS support live live video transmission. HTTP uses m3u8 as an index file and video as a fragment file in mpeg2-ts format. If the video stream is
Php uploads the file move_uploaded_file to the apache server running in Linux.
Is to implement the HLS protocol to play audio:
Upload a. m3u8 and 1.tsin 10 seconds. Upload a. m3u8 and 2.ts,... a. m3u8, 3. ts... in this loop.
When I didn't open the player client, everything was normal for file upload, and it was oka
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 so
Tags: URL 5.0 ges Tutorial nload get the keyword folder to useNginx third-party module ngx_http_accesskey_module to implement the download file anti-theft chain 1, the specific installation tutorial: HTTP://WWW.CNBLOGS.COM/TINYWAN/P/5983694.HTML/2, Nginx configuration fileLocation/hls {
Alias/tmp/hls;
}location/download {
accesskey on ;
Accesskey_has
a random, used to play the time to identify which streaming media, such as fill test.Once filled in, click Start Streaming to indicate that our streaming server has been built successfully.V. Watching liveIf Mac Direct Browser can access http://xxx:81/hls/test.m3u8 to watch live, where xxx is your server IP address,Direct access to files on the phone can also be seen!And then other H5 vadio need to download support
adept at processing simple work but a large amount of data gpu.
GPU decoding is called hard decoding.
CPU decoding is soft decoding.
iOS provided by the player class is hard decoding, so video playback on the CPU will not be a lot of pressure, but the supported playback format is relatively single, generally is MP4, MOV, M4V these several.
HTTP Live Streamingabout HLSHTTP Live Streaming (abbreviated as HLS) is an HTTP-based stre
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 Stu
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 depende
CPU caused a great burden, so the mobile phone engineers to this part of the work is more adept at processing simple work but a large amount of data gpu.GPU decoding is called hard decoding.CPU decoding is soft decoding.iOS provided by the player class is hard decoding, so video playback on the CPU will not be a lot of pressure, but the supported playback format is relatively single, generally is MP4, MOV, M4V these several.HTTP Live StreamingAbout HLSHTTP Live Streaming (abbreviated as
install)4. Setting up a startup service4.1 Establishing a soft connectionsudo ln -sf /usr/local/srs/etc/init.d/srs /etc/init.d/srs
Note: If the SRS is installed in a different directory, replace the/USR/LOCAL/SRS with a different directory.
Note: You can also use other names, such as/etc/init.d/srs, which can be any name, and also use this name when starting up.
4.2 Adding services#centos 6sudo /sbin/chkconfig --add srsOr#ubuntu12sudo update-rc.d srs defaults4.3 Using the I
Config.listen 1935;max_connections 1000;vhost __defaultvhost__ { HLS { enabled on ; Hls_path /usr/local/nginx/html; Hls_fragment ; Hls_window ;} }The Hls_path is the directory where HLS shard TS files and m3u8 are stored, and in the example above, I assign it to Nginx. This allows you to p
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.