Skip to content

5000+ Great Articles

Best Articles & Essays: Interesting Articles to Read Online

  • How to Set Up and Use MLA Format in Microsoft Word MS Office Tips
  • How To Download Complete YouTube Playlists Web Site Tips
  • What prevents data processing in Windows 10? Windows 10
  • How to add delete and change password for user in ubuntu 12.04
  • 5 Tasks That Should Have Been Simpler in Windows 8 Boot into safe mode
  • how to erase android phone before selling Smartphones
  • How to Create a Whatsapp Account Without Phone Number How-To
  • How to Connect a Phone to Chromebook Using Phone Hub Computer Tips

Create Your Own Live Video Streaming Server With Linux

Posted on October 8, 2020 By blog_786 No Comments on Create Your Own Live Video Streaming Server With Linux

Most live streaming tools and sites are free to the public, but often require you to create an account, providing information you might not want to appear online. They may hide some content behind ads and include unclear Terms of Service that they may not even adhere to.

There are those who enjoy streaming live, but don’t need their videos to be available to the masses. Instead, they would rather have more control over their flow and the content they create. Open source software like Linux is the best answer to this hurdle.

Create Your Own Live Video Streaming Server With Linux

Thinking ahead

Before you start setting up your own personal streaming server, you should ask yourself a few questions. First, what kind of broadcast quality are you looking for? Then, how many viewers do you expect to attract? Where will you store all your streaming content? Who will have access to this content?

System requirements can also be viewed as a problem. However, there are no set rules as to exactly what you need in this regard, so do yourself a favor and experiment to see what works best for your goals.

You will need to figure out which protocol will handle the audio and video portion of the streaming. Real Time Messaging Protocol (RTMP) is a great choice, but there are others like WebRTC that might be better for your situation. RTMP is widely supported, so we will focus on it in this article.

Another thing to worry about is the likely delays in your “live stream”. Just because you started living doesn’t mean everything will be perfect. Video streams need to be encoded, transmitted, buffered and displayed, so expect a little tweaking of stream attributes to be required.

– /

Create Your Own Live Video Streaming Server With Linux

Linux Server Setup

Ubuntu Linux is my personal favorite, so I’ll pick this version here. For those who prefer the GUI option, Ubuntu Desktop is available.

  • Run the Ubuntu installer and select the settings that best suit your needs. You probably want to set some static network parameters as it will be used as a server.
  • Reboot the system after installation if it does not happen automatically. After your Ubuntu system boots, install all available updates:

sudo apt update sudo apt upgrade

We will be using Nginx web server for this streaming server. Install it:

sudo apt install nginx

Purchase the RTMP module so Nginx can handle your media stream:

sudo add-apt-repository universe sudo apt install libnginx-mod-rtmp

Configure Nginx so that it can receive and deliver your media stream.

sudo nano /etc/nginx/nginx.conf

Add the following code to the end of the config file:

rtmp {
server {
listening 1935;
chunk_size 4096;

the application is running {
enabled;
recording is disabled;
}
}
}

Save the configuration file as we will use it later to create a working streaming server.

Restart Nginx with the new configuration:

sudo systemctl restart nginx

Set up broadcast software

Create Your Own Live Video Streaming Server With Linux

The server is ready, now it’s time to set up your streaming software. Let’s use Open Broadcaster Software (OBS) in this run.

  • Go to the site and select a build for Linux. After starting the software, configure OBS with the settings that best suit your hardware.
  • Add a streaming source by clicking + directly below the source.

  • For testing, select Display Capture and enter a name for the source.
  • Click OK and OBS displays your desktop.
  • Next, click the File tab and select Options.

Create Your Own Live Video Streaming Server With Linux

In the Stream section, set the Stream Type to Custom and enter the following URL in the Server field:

rtmp: // IPaddress / live

Replace the IP address with the IP address of your streaming server.

Now create your own stream key and enter it in the stream key field. Make it something to remember and write it down. For added security, select the Use Authentication checkbox and add the required credentials.

Create Your Own Live Video Streaming Server With Linux

At the end, click Apply and then click OK.

Everything should now be set up for streaming. To start your first stream, click the Stream Now button. The button will change to Stop Streaming if everything was done correctly. Your stream’s bandwidth metrics will appear at the bottom of the OBS window.

Be the first viewer

There are many open source media players that support RTMP, the most famous of which is the VLC media player Install and run this software, click the “Media” tab and select “Open Network Stream” from the menu.

Do you have the key to the flow at hand? Enter the path to your stream and include the stream key you set earlier at the end of it. It should look like this:

rtmp: // IPaddress / live / SecretKey

Click “Play” and you will see your live stream.

Additional Measures

Create Your Own Live Video Streaming Server With Linux

Now that the basics are mastered, limiting access to the streaming server and the ability to record and save videos are two more factors that might interest you.

By default, anyone can view your stream. This may go against the goal of creating a server in the first place. You need to set up restricted access using Linux firewall, .htaccess file, or built-in access controls in the RTMP module This choice is yours.

The Nginx configuration given here will only allow you to stream videos, not save them. To add a storage parameter, in the Nginx configuration, just below the RTMP section, you can configure the stream recording parameters and specify where you want to save and save your content.

Set an existing path to allow Nginx to write to it. Enter the following:

live application {
live;
write everything down;
record_path / var / www / html / records;
record_unique on;
}

That’s all you need to set up a streaming server using Ubuntu Linux OS. If you are more interested in a streaming media server that does not support live streaming, I would suggest using Plex instead of OBS.

–

Share this:

  • Twitter
  • Facebook
Linux Tips

Post navigation

Previous Post: How To Set Up Dual PC Streaming With No Capture Card
Next Post: What To Do If You Think Your Computer Or Server Has Been Infected With Malware

Related Posts

  • Linux Live USB Creator Lets You Create Linux OS’ On The Fly Linux Tips
  • Terminal Tricks: Use the Terminal as an alarm clock Linux Tips
  • Convert Images Between Formats via the Command Line in Ubuntu Linux Tips
  • Add Shortcuts to the Right-Click Context Menu in Ubuntu Linux Tips
  • Use the Linux ‘dd’ Command With A Simple GUI Linux Tips
  • Ten most useful Raspberry Pi commands Linux Tips

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Archives

  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • November 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • March 2021
  • October 2020
  • September 2020
  • August 2020
  • July 2020
  • June 2020
  • May 2020
  • April 2020
  • March 2020
  • December 2019
  • July 2019
  • May 2019
  • April 2019
  • January 2019
  • December 2018
  • November 2018
  • October 2018
  • September 2018
  • August 2018

Categories

  • AI Tools & Guides
  • Amazon Web Services
  • Apple Watch
  • Computer Tips
  • Cool Websites
  • Featured Posts
  • Free Software Downloads
  • Gadgets
  • Gaming
  • General Software
  • Google Software/Tips
  • Hardware
  • Help Desk
  • How-To
  • iOS
  • iPad
  • iPhone
  • islamic Books
  • Linux
  • Linux Tips
  • Mac OS X
  • macOS
  • MS Office Tips
  • Networking
  • Office Tips
  • OS X
  • Product Reviews
  • Reviews
  • Safari
  • Smart Home
  • Smartphones
  • Software Reviews
  • technology
  • text
  • Tools Review
  • Troubleshooting
  • Tutorials
  • Uncategorized
  • Urdu Books PDF
  • Web Site Tips
  • Windows
  • Windows 10
  • Windows 7
  • Windows XP Tips
  • Wordpress
  • 15 Best Legal Torrenting Sites to Download Content Safely
  • Review of the ReMarkable 2.0 tablet with Type Folio keyboard
  • Flixable Helps You Find the Best Movies and TV shows on Netflix
  • How to Watch Winter Olympics 2018 from Anywhere
  • Why does Instagram say this story is unavailable?
DMCA.com Protection Status

Recent Posts

  • 15 Best Legal Torrenting Sites to Download Content Safely
  • Review of the ReMarkable 2.0 tablet with Type Folio keyboard
  • Flixable Helps You Find the Best Movies and TV shows on Netflix
  • How to Watch Winter Olympics 2018 from Anywhere
  • 5 Sites That Are Like Audible, But Free

Recent Comments

  1. Flixable Helps You Find the Best Movies and TV shows on Netflix on SmartDNS vs VPN “What’s the Difference?”
  2. 5 Sites That Are Like Audible, But Free on Top 4 Amazon Price Tracker Tools
  3. 5 Sites That Are Like Audible, But Free on 14 Best Free Audiobooks on Audible – 2022
  4. How to Reduce PNG File Size of a Photo on How to Convert a Screenshot to a Jpeg on a Mac
  5. 3 Sites like YouTube to Earn Money With Your Videos on Here are the Top 10 highest paid YouTubers of 2013
  • How to Scan With Image Capture on Mac OS X
  • Best calculator storage 2020 black
  • Printer Ink Wars — EcoTank, Instant Ink, MegaTank, INKvestment Tank , Instant Ink Computer Tips
  • Chrome Music Lab: How To Make Cool Music & Sounds Google Software/Tips
  • Your Windows 10 PC Did Not Start Correctly 2021 Windows
  • How to Search for Text Inside Multiple PDF Files at Once Computer Tips
  • IE Print Preview Blank or Not Printing in Windows 7 and Vista Windows 7
  • How I Remove my Picture from Google in Less than 5 Minutes How-To

Copyright © 2023 How To Blog.

Powered by PressBook News WordPress theme

Go to mobile version