- UBUNTU RTMP SERVER MP4
- UBUNTU RTMP SERVER INSTALL
- UBUNTU RTMP SERVER UPDATE
- UBUNTU RTMP SERVER CODE
- UBUNTU RTMP SERVER PASSWORD
Install necessary tools first by using the command below sudo apt-get install build-essential libpcre3 libpcre3-dev libssl-dev
UBUNTU RTMP SERVER PASSWORD
Just search and type Desktop Sharing set the password and enable remote access again on Ubuntu desktop. Remote-access > vnc-password – set the correct password Remote-access > require-encryption – uncheck I want to be able to Remote Access on my server sudo apt-get install dconf-toolsĬtrl+F and search on dconf “remote-access”
UBUNTU RTMP SERVER UPDATE
After desktop is installed run once more sudo apt-get update to get latest updates for desktop. So I re-run apt-get update and apt-get install ubuntu-desktop for the second time and desktop installd with success. I found that ubuntu desktop was not installed. I will also want to install GUI Desktop: I dont know why but after I ran the commands below. Sudo ufw disable Sudo ufw statusĬhange the Computer Name sudo gedit /etc/hostname /etc/hosts Nginx will listen to 1935 and 80 and maybe 8080 but I will disable my firewall for this lab and check the status. Let me start by saying what I am using in my setup:Īfter Ubuntu installed, change the root password. I will try to share everything I have done in my setup just in case someone new to this subject might be trying to implement this. Sign up for the weekly 100TB newsletter.This part will be the longest one. 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: 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.