1. The company has the wind to do live broadcast, catch good this paragraph has time, oneself research a bit. In fact, the detour is more, and later in the Lahue/push/server building is completed, the idea becomes very clear.2. First from the server set up, about three kinds of mainstream hls/rtmp/flv, here I use RTMP, about the switch, we need to look at the Ngnix configuration file related parameters docu
Nginx builds one of the streaming media servers supporting http and rtmp protocolsPurpose:Enable Nginx to support flv and mp4 files and RTMP live and on-demand video;Enable the rtmp hls FunctionMATERIALS:HTTP Live
format, and the result was shocking:The above test.264 size is 6.2M, converted to. yuv format after the size of 1.6G, really took a surprise. It's too compressed.2. Test the performance of the streaming media serverThe most critical place to be, success or failure stake.(1) Open Nginx[Email protected]:/data/misc/nginx-rtmp/sbin #./
SRS3 has closed source (correction: there is a period of time closed source, and now open source); Nginx-rtmp-module is a multi-process approach, Nginx performance is excellent, but according to the Netizen test, nginx-rtmp-module performance is inferior to SRS, and the author of Nginx-rtmp-module has not updated the
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 sk
: This article mainly introduces how to use nginx + nginx-rtmp-module + ffmpeg to build a streaming media server (5). If you are interested in the PHP Tutorial, refer to it. Part 5
Some time ago, we set up a streaming media server that supports HLS on Ubuntu. The final goal
Hls,http live Streaming is an apple-defined protocol for real-time streaming, and HLS is based on the Http protocol, which mainly consists of two parts: the m3u8 profile and the TS media file.Because it is apple out of the video playback format, so the PC side in addition to
Fifth part
Some time ago, on Ubuntu built up to support HLS streaming media server, the ultimate goal is to build such a streaming media server on the arm's Development Board. Now the work is only a small part, is undergoing a transplant, recorded, convenient to continue to do later.
1, the first is to transplant nginx
streaming/interactive server that supports the RTMP protocol. The software that supports this protocol includes the Adobe Media server/ultrant media server/red5/nginx ( The nginx I use here) and so on.4.Jwplayer is an open source Flash video, audio, and image player for use on Web pages.It supports playback of Adobe Flash player and HTML5 browser which can handl
Web pages.It supports playback of Adobe Flash player and HTML5 browser which can handle any format (FLV files, H. MP4 features, VP8, WEBM, support mp3,aac,jpg,png and GIF). It also supports a variety of streaming and playlist formats (including RMTP protocol, HTTP Live and more) and a variety of playback options.5.nginx-rmtp-module is the
The ninth part---Project ffmpeg command parsingYou have seen the ffmpeg on the arm Development Board to give the following information:usage:ffmpeg [Options] [[infile Options]-I infile] ... {[outfile options] outfile} ...Refer to the previous command to perform the same task on the PC Linux operating systemFfmpeg-i rtsp://admin:[email protected]-vcodec copy-acodec copy-s 640x480-f flv rtmp://192.168.1.102:1935/hls/te St2Do a detailed explanation here
Android audio and video goes deep into the 16 FFmpeg streaming mobile phone camera to achieve live broadcast (with source code download), androidffmpeg
Source Code addressHttps://github.com/979451341/RtmpCamera/tree/masterAfter configuring the RMTP server, paste it here.1. Configure the RTMP Server
I don't want to post two blogs on mac and windows respectively.Set up an RTMP server on MACHttps://www.jianshu
: 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 pl
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
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
real-time acquisition using RTMP protocol1: rtmp://your.vultr.ip/live/2: Stream-key-your-setIn this video collection I'm using the IPhone5 collection program Https://github.com/jgh-/VideoCore [_session Startrtmpsessionwithurl:@ "rtmp://192.168.86.246/live/" andstreamkey:@ " test"];17. In the process of client acquisition above, you can use VLC player to open rtmp
All you have to say
The purpose of using Nginx to build streaming media platform is to support the RTMP protocol, which enables users to use RTMP (RTMP://192.168.201.128/MYAPP) protocol to push streaming to the server. The other user then requests the video stream information that the user pushes. Since it is the RTMP protocol, so the client can be a flash progra
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.