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
Use Nginx + FFmpeg to build an HLS live video transcoding Server
Objective: To enable Nginx to support Rtmp streaming, HLS distribution, and FFmpeg transcoding multi-bit rate.
I. PreparationsModule: nginx-rtmp-module-master (rtmp protocol supported):Http://nginx.orgHttps://github.com/arut/nginx-rtmp-module
1. Install t
what we need to do at home computers. So, today, here, I will show you how to create your own streaming media server.
However, before starting the official establishment of the Streaming Media Server, let's take a look at the basic knowledge of the Streaming Media
Successful versions: ubuntu9.10/8.04
Indicate the source and author's contact information during reprinting.ArticleSource: http://blog.csdn.com/keensword007Contact information: Qin Jian
Currently, Microsoft Windows Media is the mainstream Streaming Media Server.Server, RealNetworks helixserver, and Apple's Darwin Streaming Server. Microsoft's Window
Streaming media refers to the media that transmits audio, video, and multimedia files over the network.
A typical feature of streaming media is to compress continuous audio and video information and place it on the network server. Users can download and watch the video, instead of waiting for the entire file to be downloaded. Because
media data,VLCIs also based onUDP. In this way, there are many references on the Internet, so I cannot directly describe the operations in the command line mode.
Command Line Operation Method
Server (172.16.1.1):
VLC-vvv sample1.avi -- sout"# Transcode {vcodec = h264, VB = 0, scale = 0, acodec = mpga, AB = 128, channels = 2, samplerate = 44100}: RTP {SDP = rtsp: /// 8554/test}"
Client (172.16.1.100):
VLC rtsp://172.16.1.1: 8554/test
Use
Crtmpserver Streaming Media Server () label: crtmpserver C ++ rtmp server rtmp Adobe FMS (flash med Streaming Media Server Type: crtmpserver
PrefaceAdobe's FMS (Flash Media Server) is very useful. However, money and limited func
Red5 stand-alone machine is still relatively good, but the official website does not have documents, do not know how the cluster configuration, network search for a half-day, only Red5 0.8 version has a cluster configuration. Later version looked at, there are clusters of plug-ins, but do not know how to install Plug-ins, even if installed plug-ins, how to configure the cluster, or do not know AH. No documents, Pit dad.Crtmpserver Streaming media
I. Server Side
Based on Feng Add an open-source Streaming Media Server Web server, Used to receive the video data uploaded by the client, and then RTSP/RTP Live broadcast to mobile terminals
Ii. Client Applications
1. Introduction Client Applications are mainly based on Android Platform,
When fms2 is used as a Streaming Media Server, You need to convert all the videos uploaded by all users into the FLV format. This format has a small file capacity and is suitable for remote playback. FFMPEG and mencoder are enough to convert most videos into FLV.
Here, I use Perl to call FFMPEG and mecoder commands
PrefaceAdobe's FMS (Flash Media Server) is very useful. But it is the money and limited functionality that are available for hierarchical authorization. Since we can't afford to use commercial things and hinder our technological progress, we can only resort to the open source community. And Crtmpserver is one of the alternatives to FMS.1. Crtmpserver IntroductionCrtmpserver's function is always:
Supports the distribution of the receive and pl
:[email protected]:6000/live.ts to play.If {USER=K3,PWD=K3} is removed from the server startup code, HTTP authentication is not required when the client plays."Transcoding"The media file may not be a streaming format by itself, and this requires transcoding and streaming. Example:
Vlc-i "Dummy"-l--no-inhibit pikesi.mkv--sout ' #transcode {vcodec=h264,vb=
our Nginx site using a URL like: "http: // my-ip/stats"Location/stats {Stub_status;}
# Allows us to host some webpages which can show our videos: "http: // my-ip/my-page.html"Location /{Root html;Index index.html index.htm;}}}
!! Remember to replace the Local intranet address with what you actually use !!
Start the nginx Service
Sudo service nginx start
Install ffmpeg
Sudo apt-get install ffmpeg
Start
A simple Rtmp/hls Live server licensed by the MIT protocol, its core value concept is simplicity and efficiency.How to use:TEP 1:build SRSTar XF simple-rtmp-server-*.*.tar.gzCD Simple-rtmp-server-*.*/trunk./configure--with-ssl--with-hlsMakeStep 2:start SRS./objs/simple_rtmp_server-c conf/srs.confStep 3 (Optional): Start Nginx for HLSsudo./objs/nginx/sbin/nginxSte
)? Compile error handling/usr/lib/libstdc++.so. 6: Version glibcxx_3. 4.21 in File libstdc++.so. 6 with link time referenceReason: Because the GCC version is too low, it is recommended to upgrade to more than 4.9, the test 5.3 version of the library is up-to-date, but not compatible, so the recommended version is greater than 4.9 less than the 5.3 version../easydarwin:relocation error:./easydarwin:symbol _ztvnst7__cxx1119basic_istringstreamicst11char_ Traitsicesaiceee, Version glibcxx_3. 4.21
/local/rar will have the RAR command and the Unrar command.Go to the HTML folder under Nginx download video playback tool player.swf#cd#cd/usr/local/nginx/html#wget Http://blogimg.chinaunix.net/blog/upfile2/100607142612.rar#unrar –e 100607142612.rar#ls –lCan see the extracted files;Vi. Setting the port number according to the configuration in the Nginx configuration file#vi/etc/sysconfig/iptablesOpen 8081 Ports#/sbin/service iptables RestartReboot firewall, set to take effectModify the firewall
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
The so-called streaming media technology, refers to the continuous image and sound information is compressed processing and placed on the Web server, so that users can download while watching, listening (so-called "online Appreciation"), and do not need to wait for the entire compressed file to download to their own machine to enjoy the network transmission technology. Currently, the main competitors in thi
Live555 and jrtplib are used on the server. For Windows, ditrectshow is recommended. For Linux, gstreamer is recommended. For decoding, FFmpeg is used.
Software Installation
This version of software can be downloaded free of charge from apple.com. of course, you have to register a user to make sure Apple understands your situation. registration is very simple, and at least till now there are few registered
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.