- #Ubuntu rtmp server how to#
- #Ubuntu rtmp server mp4#
- #Ubuntu rtmp server install#
- #Ubuntu rtmp server android#
- #Ubuntu rtmp server code#
If you are not familiar with linux operation commands, you can move to my linux series articles: It is mainly used for audio, video and data communication between the Flash/AIR platform and a streaming media/interactive server that supports the RTMP protocol. RTMP is a network protocol designed for real-time data communication. This protocol is based on TCP and is a protocol family, including RTMP basic protocol and RTMPT/RTMPS/RTMPE and other variants. RTMP stands for Real Time Messaging Protocol (Real Time Messaging Protocol), rmtp is a communication protocol. (We don’t build wheels here, just to make it easier to build later) 1.
#Ubuntu rtmp server how to#
Today I will explain how to build a live server on the ubuntu server. If you have any questions, you can discuss it together. The effect diagram is shown below.īut we will not explain how to build a live server on windows today. At this time yesterday, I tried to build a Nginx-rtmp live server locally in windows, and it finally worked successfully. I have seen many tutorials explaining how to build a live broadcast environment, most of which are built on a mac environment.
#Ubuntu rtmp server android#
Sign up for the weekly 100TB newsletter.Recently I have been learning Android live broadcast, so there is no doubt that ffmpeg and WebRTC are the two big players in the audio and video industry. Happy streaming! Never miss another post. So there you have it - a simple streaming server using RTMP based on open source components. Next will be a slash, then your application name, in our case “vod”, another slash and finally the filename of the file. The URL will start with rtmp:// to tell VLC the protocol to use, and then the domain name or IP address of your server. A window will open for you where you can enter the URL for your media. To open this, go to the “Media” menu and then select “Open Network Stream”. The easiest method is to use VLC media player. To test you just need to open a stream from your server. The next thing to do is start Nginx again, at which point everything is configured and ready for use:
#Ubuntu rtmp server mp4#
Note that Nginx-RTMP can only serve flash flv video and mp4 video. This directory doesn’t actually exist yet, so you will need to create it and place some media into it. We’ve then told it that the vod application will play files from /usr/local/nginx/rtmp directory. You can have as many of these as you wish, and name them anything you like. Next we’ve created an “application” called vod for video on demand. We’ve also set it to use a chunk size in transfers of 8192 bits. In this file we’ve told Nginx to listen on port 1935 for RTMP, which is the default port. Go to the end of the file and paste in the following configuration: I’m going to use nano here, but other text editors are available: This is done in the default config file which is stored with the other files.
#Ubuntu rtmp server code#
Now you will need to add the code to configure the RTMP module. To stop Nginx you need to call the program again and give it the stop command: If everything is working as expected, you should now get the Nginx test page if you navigate to your server’s IP address in a web browser.
To test everything is working let’s fire Nginx up:
#Ubuntu rtmp server install#
You should see a scroll of text while it is configured, after which you can make and install nginx:Īt this point Nginx will be installed into the /usr/local/nginx directory. configure -with-http_ssl_module -add-module=./nginx-rtmp-module-master
The next step is to reconfigure the Nginx source to compile with the Nginx-RTMP module: The next thing we will need is the source for Nginx-RTMP:Īt this point we should have a directory named nginx-1.8.1 which contains the Nginx source code, and one named nginx-rtmp-module-master which contains the Nginx-RTMP source code. Version 1.8.1 is the latest stable version so we will use that one: Once these are installed we then need to grab the nginx source code.
Sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev unzip The first thing we need to do is get some bits. This doesn’t come pre-packaged for the operating system, so we’ll need to build Nginx with this module from source code. Nginx-RTMP is an open source extension module for the Nginx web server that can be used as a media streaming server for both live streams and video on demand using RTMP. In this article we’ll be looking at setting up your own media server using Nginxp-RTMP on Ubuntu 14.04. This has led to the technology being commonly used when streaming media for a variety of providers. Macromedia were subsequently acquired by Adobe, since when the specification has been partially released enabling third parties to implement it within Adobe’s own server and client software. The Real Time Messaging Protocol (RTMP) was developed by Macromedia as a method for transferring data, audio and video for their Flash technology.