HTTP (Hypertext Transfer Protocol), RTSP (Real time Streaming protocol live streaming protocol), RTMP (Routing Table Maintenance Protocol Routing Tables Maintenance Protocol) is the application layer protocol, Theoretically all can do live, on-demand, in fact, live more than rtmp and RTSP, on-demand is more use RTSP and HTTP.First, common areas:
HTTP (HTTPS) all data as text processing, widely used
The process of doing a lot of problems, the environment actually needs Nginx can, and then is in the playback of the problem, m3u8 format, Mac direct access to support, Apple system native H5 support m3u8, there is also direct access to mobile phone support! But other PC side does not support, tried a lot of not, finally found a support m3u8 format H5 play (https://github.com/huangyaoxin/hLive download on the line js.css loading OK)!Reference: http://blog.csdn.net/zph1234/article/details/5284622
rtmp/flv Learning points of attention
1.RTMP and FLV format-friendly compatibility, mainly embodied in the RTMP package playable audio and video streams, when carefully studied, you will find that the RTMP packet in the package of audio and video data flow, in fact, and Flv/tag package the way the video data is the sa
Standard Specification Learning:
RTMP message structure, including several parts: timestamp: 4 byte, in milliseconds. is flipped when the maximum value is exceeded. Length: The length of the message payload. Type Id:type ID part of the ID range used for rtmp control signaling. There is also a part to use for the upper layer, rtmp is just a pass. This makes
address and port number used for the media stream, and if it is unicast, the destination address should only be provided for security in the presentation description.
invitation to join: The media server can be invited to participate in an ongoing meeting, or play back the media in the presentation, or record all media or a subset of it in the presentation, ideal for distributed teaching.
Add Media: notifies users of new and available media streams, which is especially useful for live le
SRS is a Chinese development of a video server, the use of support rtmp and HLS protocol, can be made into a container, let the client push the stream, or can be combined with ffmpeg own initiative to pull the stream, detailed instructions can view the SRS wiki:Https://github.com/ossrs/srs/wiki/v2_CN_HomeSrs:http://ossrs.net/srs.release/releases/index.htmlSRS Web Player: http://www.ossrs.net/players/srs_player.html?stream=livestreamport=19350#Ffmpeg:h
: This article mainly introduces how to use nginx to build flv and mp4 streaming media servers based on rtmp or http. if you are interested in PHP tutorials, refer to it. Http://itindex.net/detail/48702-nginx-rtmp-http
I. streaming media playback mode1. HTTP
In this way, you need to download the FLV video file and play it locally. Once the FLV video file is downloaded, the server's resources and bandwidth
Simple RTMP Server is an open source Rtmp/hls streaming media server written by people in the ROC. Functions are similar to nginx-rtmp-module, enabling the distribution of Rtmp/hls.Reference to the Nginx-rtmp-module: http://blog.csdn.net/redstarofsleep/article/details/450921
Objective
I believe we all know nginx is a very good open source server, use it to do HLS or rtmp streaming media server is a very good choice, so small set up the installation process online, now share to everyone and make a memo. Have the need of friends can refer to study, let's take a look together.
I. Installation of Homebrow
Brow has been installed to skip this step directly.
Execute command
Ruby-e "$ (curl-fssl https://raw.githubuse
Many friends will ask how RTSP through the RTMP protocol push to the server, just a while ago developed this feature written here, and you share.The first thing I want to say is that ffmpeg can achieve this function. The FFMPEG supports the RTSP protocol and also supports RTMP. In this case, RTSP is the input,RTMP is the output, FFmpeg realizes the function of tr
Http://itindex.net/detail/48702-nginx-rtmp-http
One, streaming media playback mode
1. HTTP mode
this way to download the FLV video file to local playback, once the FLV video file download is complete, will not consume the server resources and bandwidth, but the drag function is not rtmp/rtmp streaming media powerful, many video sites are implemented in HTTP, su
One, RTMP, RTSP, HTTP protocolThese three protocols belong to the Application layer protocol in the Internet TCP/IP five layer architecture. Theoretically these three kinds can be used for video broadcast or on-demand. But usually, live broadcast with RTMP, RTSP. And on-demand with HTTP.The following are the characteristics of the following three respectively. The 1,RTM
Push off
Processes: initializing, connecting to servers, sending dataThis part mainly uses the librtmp, because is uses other people to encapsulate the good library, generally relatively simple initialization
Simply call the function
rtmp = Rtmp_alloc ();
Rtmp_init (RTMP);
connecting to a server
The four functions represent: Set the URL, make yourself a sender, build a netconnection, build a NetStream
Rt
This article is translated from WEBRTC data channelsIn two browsers, it is very complex to send messages for chat, games, or file transfers. Usually, we need to set up a server to forward the data, of course, the larger the size of the case, will be expanded into multiple data centers. In this case, there is a high latency and it is difficult to guarantee the privacy of the data.These issues can be addressed through the Rtcdatachannel API provided by
As mentioned in the previous article, the RTSP (Real Time Streaming Protocol) method is used to implement live video. However, one drawback of the RTSP method is that if the client needs to be accessed through a webpage, you need to embed an ActiveX control in the page, and ActiveX usually requires a signature for normal use. Otherwise, you need to change the browser settings when using ActiveX, and ActiveX only supports IE kernel browsers, chrome and FireFox require the IE Plug-in to run, which
a user to submit a presentation description to the media server via HTTP or other means. If the representation is multicast, the description contains the multicast address and port number for the media stream, and if the representation is unicast, only the destination address should be provided for security in the presentation description.Invitation to join: A media server can be invited to participate in an ongoing meeting, or play back the media in a presentation, or record all media or a sub
Tags: blank import max col Change RTM restart success typesOriginal address: 80063031Recently built a local nginx server based on rtmp, did not expect the first step cloning error: Homebrew/nginx was deprecated. This tap was now the empty as all its formulae were migrated. Specific as follows:The first step is to use:Add Nginx clone to local $ brew tap Homebrew/nginxThe error is as follows:The reason for this is that Homebrew/nginx's git path has chan
WEBRTC Technology Group: 234795279Original Address: http://blog.csdn.net/temotemo/article/details/7530504 1, WebRTC purpose WebRTC (Web real-time communication) The ultimate purpose of the project The main is to allow web developers to be based on the browser (chrome\firefox\ ... Fast and easy to develop rich real-time multimedia applications, without the need to
Use PHP to simulate RTMP client sending AMF message (Barrage launcher)
Use PHP to simulate RTMP client sending AMF message (Barrage launcher)
August 25, 2010
With the advent of Adobe's Open source of rtmp (real-time Messaging Protocol), various third-party flash multimedia servers have sprung up, renowned for their Red5.
However, the client program is rare, 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.