How to Stream, Record Video over Network on Linux with VLC

VLC is a free and open source cross-platform multimedia player that plays almost all multimedia files and various streaming protocols.

VLC Media Player is one of the most popular media players in the software community that needs no introduction. It can play almost any media format thrown at it.  It is free and open source application widely used across Linux, Windows, and Mac OS systems.

Apart from media playback, VLC Media Player can do a few exciting things. Today we are going to write about one of those features of VLC; one that allows users to stream, record and broadcast the video footage recorded by various recording devices.

VLC media player is available in almost all Linux app store. If not, head over to the official website to download VLC for your Linux distro.

How to stream a video from a camera using VLC media player

To stream video from a capturing device easily, follow these steps:

  • Open up VLC Media Player
  • Click on ‘Media‘ in the menu bar
  • Click on ‘Open Capture Device

    Opening capture device
    Opening a capture device
  • Choose the desired video and audio device names:
    If you’re on a laptop, the first video and audio device names will be of the inbuilt camera and microphone of your laptop (if you have them). If you want to choose an external device, make sure it is connected. It will also be listed there in the options, with the name ‘/dev/video1’. If you have more than one external camera, you will have to test each of the options to identify them.

    Selecting audio and video interfaces
    Selecting audio and video interfaces
  • Click on ‘Play‘.

    Streaming capture device
    Streaming capture device

The streaming of the footage should start. Now that we finished streaming it, we can move to record it. 

Recording Video from a Capture Device

Now use the following steps to begin recording of the streaming video.

  • Click on ‘Playback‘ in the menu bar.
  • Click on ‘Record‘.

    Starting recording
    Starting recording

To end the recording, just perform the same steps again. The recorded video should get saved in the Video directory in the user’s home directory.

Alternatively, use the following steps for more easy operation:

  • While playing, click on ‘View‘ in the menu bar, and check the box that says ‘Advanced Controls‘.

    Enabling advanced controls
    Enabling advanced controls

    It will result in a new set of options appearing in the controls. There will be a red button, which represents recording.

  • To start recording, click on the button, and it will appear dented in (darkened) so that you know that the video recording is in progress. When finished, just press that button again.

    Recording in process
    Recording in process

Broadcasting video from files or a capture device over a network

VLC can even broadcast the video over the network too. You only have to make sure that the system on the receiving end also has the VLC installed. To broadcast your capture device, follow these instructions.

  • Click on ‘Media‘ in the menu bar, and choose ‘Stream‘.
  • Go to the tab that says ‘Capture Device‘. Also, note that you can stream media files too instead of a capture device. To do that, simply select Media> Stream > File tab and then click the “Add” button to add the media folder location.

    Choosing streaming devices
    Choosing streaming devices
  • Choose your camera and microphone, and click on ‘Stream‘.

    Selected audio and video interfaces
    Selected audio and video interfaces
  • You’ll get the dialog box to set up your stream output.
    • Click ‘Next’ on the source and type selection stage.

      Source selection
      Source selection
    • Select ‘HTTP‘ from the ‘New destination‘ drop-down box (as we are going to use HTTP to stream the video), check ‘Display locally‘, and click on ‘Add‘. Go to the next stage.

      Protocol selection
      Protocol selection
    • You will get an option to change the default 8080 port, and replacing it is recommended for security purpose, especially if you require this stream for long-term and confidential purposes.
      Let the path remain ‘/’ and proceed to the next stage.

      Selecting path and port
      Selecting path and port
    • Check ‘Active Transcoding‘ and click on ‘Next‘.

      Transcoding stage
      Transcoding stage
    • Check ‘Stream all elementary streams‘ and click on ‘Stream‘.

      Output configuration
      Output configuration

That is all that you need to do to set-up the broadcast. Now to open the broadcast in another system, follow these steps:

  • Open up VLC Media Player.
  • Click on ‘Media‘ in the menu bar, and choose  ‘Open Network Stream…‘.

    Opening network streaming
    Opening network streaming
  • Now for the source URL, enter it in the following format:
    http://<IP of source>:<port number>

    In my case it became:

    Streaming source URL
    Streaming source URL
  • To find the IP address of the source system, run this command on that system:
    sudo ifconfig

    You will see your IP address in the sub-section of the network interface you are using.

  • Click on ‘Play

The stream should appear in your VLC Media Player window.


VLC Media Player is a preferred media player across the PC environment for a long time, and there is every reason for it. Its powerful media playback capability is hard to ignore, and even today there is no equivalent media player that can support so many media extensions. The streaming capability of VLC has some lag, but it is not bad at all. If you need to stream the video over the network neatly, getting an excellent high-speed router is a good choice. A low-speed router will cause more slowness and frame loss.

If you have any issues, or any questions, let us know in the comments. Cheers!

Pulkit Chandak
Pulkit Chandak is a Linux enthusiast and has been using and experimenting with open source software and hardware too since a long time. He is a huge admirer of open source software and wants to ventilate it to all around him. He is interested in reviewing and writing tutorials on Linux and its many distributions. He believes that freedom in software leads to freedom of the mind from the chains of limits.


Please enter your comment!
Please enter your name here




Top 10 Reasons to use Xfce as your Desktop Environment

There are many choices for desktop environments for Linux based operating systems. Mainly, you can install any DE of your choice on most of the Linux based distributions, even if they are not offered as a package officially. In our recent articles, we discussed the best of KDE and Cinnamon. In this article, we wish to present to you the top reasons why you should consider Xfce as your desktop environment.

The 10 Best Linux Network Monitoring Tools

Having total control over your network is essential to prevent programs from overusing your network resources and slowing down the overall performance. This is why you should install a network monitoring tool on your system, giving you a visual overview of everything that's happening on your network. Networking Tools are like swiss-knife for the system administrators for troubleshooting system issues.

How to install CouchPotato on Ubuntu

Downloading movies and copying them over to your home server can get frustrating, especially if you are doing it daily! What if you have an option to download videos automatically, quickly, and above all with excellent quality. CouchPotato allows you to download movies easily once they are available and released automatically.

Top 20 Rsync Examples in Linux

The Rsync (remote sync) command is a Linux/Unix utility used to synchronize and copy files and directories either locally or remotely. Most Linux geeks use Rsync to mirror, backup or migrate data across folders, across disks and networks. One notable feature with the Rsync command is that it uses the "delta transfer algorithm."

Setting up NFS Server on Ubuntu Server

We have put together a detailed step-by-step tutorial that will guide you on how to install and set up NFS Server on Ubuntu so you too can start sharing data with other client systems. It is divided into sections, the first part discussing how to set up the host server and the second part showing you how to set up the client-side. For this tutorial, we will be using Ubuntu 20.04 LTS.

Crontab in Linux Explained With Examples

Crontab is the Linux equivalent of the Window's Task Scheduler. It can help you set up a task to run automatically at a regular...


Linux is growing faster than ever. As per the latest report, there is a drop in the Windows 10 market share for the first time, and Linux's market share has improved to 2.87% this month. Most of the features in the list were rolled out in the Pop OS 20.04. Let's a detailed look into the new features, how to upgrade, and a ride through video.
Elementary OS 5.1 Hera has received a point release with a handful of new features and bug fixes, and we will be reviewing the significant changes in this article. For those new to elementary OS, this Ubuntu-based Linux distribution uses their inhouse built Pantheon desktop environment and AppCenter.

Top 20 must-have apps for your Ubuntu PC

OK, this one is going to be a long one, so grab a cup of coffee and scroll through the best apps that we think are must-have for your Ubuntu PC. We have hand-picked each one of these considering the most common categories that suit an average Linux user.

10+ Best Python IDEs for Linux

Python programming language is applied in so many areas of computer technology, i.e., Scripting, GUI development, Website development, Artificial Intelligence (AI), Machine Learning, Data Science, Computer Networking, and Network Automation, and Cyber Security.

Scrcpy – Control Android devices from a Linux desktop

Scrcpy is a desktop program that can be used to access your Android phone's system and interface through your computer. The app is quite convenient, and some of its best features are highlighted below.

10 Best Screen Capturing Software for Linux

Do you want to make a video tutorial for YouTube or show-off your epic victory royale to your friends? Look no further — as we have compiled the 10 Best Screen Capturing Software for Linux. Whether you need to record your desktop screen or take a simple screenshot, FOSSLinux has got your back.