Now you can stream with any key using OBS and Webcam, Use the given details. If you have enable ufw firewall so then you need to allow the port 80 and port 1935 for rtmp protocol to access from the network, Use the following commands to open port 80 and port 1935.Ĭheck the nginx's RTMP service using netstate commands. Nano /usr/local/nginx/conf/nf Add the following configuration.Īdd_header 'Access-Control-Allow-Origin' '*' always Īdd_header 'Access-Control-Expose-Headers' 'Content-Length' Īdd_header 'Access-Control-Allow-Origin' '*' Īdd_header 'Access-Control-Max-Age' 1728000 Īdd_header 'Content-Type' 'text/plain charset=UTF-8' Ĭreate required directory for Stream and recording data by following the commands. If you want start the nginx service on boot the server use the following commands.Ĭonfiguration of RTMP protocal in nginx config file by using the following the commands, Create a backup file of nf and than edit the original nfĬp -p /usr/local/nginx/conf/nf nf_backup
To control nginx daemon, We need to download the pre-define the service of nginx and make executable it by following the commands.Ĭhmod +x /etc/init.d/nginx On boot enable nginx service
Make install Configuration of Nginx Daemon Whether you want a server to act as a relay for you to be able to stream to multiple services at once, re-encode your video stream into different formats, resolutions, or bitrates, or to stream from pre-recorded videos, a good method to do so is with a server running Nginx compiled with the RTMP module. configure -with-http_ssl_module -add-module=./nginx-rtmp-module-master Wget Extract and Compile the Nginx with RTMP moduleĪfter downloaded nginx with RTMP module, You need to extract and unzip the master.zip packages and compile the nginx rtmp module by following the commands. To download the nginx and rtmp module use the following commands. To install Nginx RTMP server on ubuntu use the following commands with using root privileges.Īpt-get install ffmpeg libpcre3 unzip libssl-dev build-essential libpcre3-dev -y Download Nginx and RTMP Modules This implies video and sound are conveyed on discrete channels all the while, To get more information click here to visit the official website. RTMP additionally characterizes a few virtual channels that work autonomously of one another for bundles to be conveyed on. To expand the measure of information that can be easily transmitted, streams are part into littler sections called parcels. Having issues? Check out this article for YouTube FAQs.Nginx RTMP is a TCP-based convention intended to keep up low-dormancy associations for sound and video spilling. Note: YouTube has a hard time processing streams with no audio, so make sure you have some sort of audio in your stream!Ĭongratulations, you are now live streaming to YouTube! As well, in the upper right-hand corner of the RTMP output screen, there should be displayed "Status: Streaming”.
The final step is to turn on RTMP output and click “Save”Īfter clicking “Save,” there should be a green phrase to the left of the Save button displaying "Settings Saved." There should be a green check mark to the left of the RTMP output selected. Once you’ve enabled live streaming, entered the pairing code, and allowed the Videon Appliance access to your Google Account, you can select a stream from the “Streams List” dropdown in the Videon Web UIĩ. It can be found by first going to the YouTube Live Dashboard at Ĩ. If your YouTube account does not have Live Streaming enabled, change that setting by going into the “Status and Features” section of YouTube’s Creator Studio.
Paste your pairing code given by the Videon Web UI in the previous stepħ. Click the link “Login to Google YouTube (opens in a new window)”Ħ. Click “Login to YouTube” in red below the dropdownĤ. After selecting a valid Video and Audio Source, select “YouTube” from the dropdown under “Streaming Providers”ģ. In the Videon Web UI, first go to Encoder Control and underneath the "Outputs" section on the left hand side bar, click one of the three RTMP outputsĢ.