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
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
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
Your Nginx already has the RTMP live function, if you also want to count a live channel currently viewing the user volume, you can join the With-http_xslt_module module. The steps are as follows:1. View the original parameters/usr/local/nginx/sbin/nginx-vThe output can be obtained from the original compile-time parameters, such as the author obtained:--user=nginx--group=nginx--with-http_stub_status_module--with-http_gzip_static_module--with-http_ssl_
HTTP (Hyper-Text Transfer Protocol), RTSP (Real Time Streaming protocol live Stream Transfer Protocol), RTMP (Routing Table Maintenance Protocol Routing Tables Maintenance Protocolis the application layer protocol, theoretically can do live, on-demand, in fact, live more than rtmp and RTSP, on-demand and more with RTSP and HTTP. First, common areas:
HTTP (HTTPS) all data as text processing, widely
Recently in window is a platform to do a function to capture audio and video through Obs, and through the RTMP protocol to its encoded compressed data into its own program, since the OBS software with very powerful game recording and desktop recording functions, as well as input, output audio device data acquisition and mixing function , the current fight fish game Live is also used by this software as a recording tool.OBS software because of the use
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
1. Installation commandRuby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)" If you want to uninstall RUBY-E after installation, "$ (Curl- Fssl https://raw.githubusercontent.com/Homebrew/install/master/uninstall) "2. Install Nginx first clone Nginx project to local brew tap Homebrew/nginx Installation: Brew Install Nginx-full--with-rtmp-module at this point, the Nginx and rtmp
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
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
to be less stable, perhaps it is not very familiar with it. Perhaps see everyone is using Nginx HLS, so there is the idea of replacing SRS with Nginx. When setting up the Nginx rtmp service, we refer to the predecessor's nginx build one of the streaming media servers that support HTTP and rtmp protocol, two or three, because it is the first time nginx Add Nginx-rtmp
Http://itindex.NET/detail/48702-nginx-rtmp-httpOne, streaming media playback mode1. HTTP modeThis 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, such as
Bilibili (b station), presumably everyone is not unfamiliar. The Ijkplayer framework is the B station provides an open source streaming media solution, integrates ffmpeg, and also supports hard decoding (requires iOS8 above version). Using the Ijkplayer framework, we can easily realize the video live function (which is supported by several HTTP/RTMP/RTSP).
This article mainly describes how to use the Ijkplayer framework to play online live
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
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
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.