How to download YouTube video and audio on Linux

How to download YouTube videos

Today we bring you another tutorial on how to do something in Linux that is actually easy, but you have to know the way. It is more than likely that many users believe that they cannot do many things in Linux because there is no software for it or because everything is done via terminal, but this does not fit reality. In this tutorial we will teach you how to download video and audio from YouTube, and most of what is explained will also apply to other non-Linux systems.

I have a friend who practically does not know how to do anything. The problem is not so much that he does not know, but that he does not dare to try anything, it does not even occur to him to Google how to do something. It does not directly. And is that today, doing a quick search we can do anything. In fact, those searches can lead us to Web services and that's the first thing we're going to talk about: TubeNinja y savefrom. net.

How to download YouTube video and audio with TubeNinja

Both tools are very similar. I speak first of TubeNinja because it offers a possibility that savefrom.net does not offer, not the same: the possibility of adding the favorite to the bar to download from YouTube and any compatible web page. I will explain how to download video and audio with TubeNinja:

  1. The first way to do it is with the "dl method". To use it, the first thing we will do is access the page of the video that we want to download.
  2. Next, we put "dl" without the quotes in front of "youtube.com, which would look like this: https://www.dlyoutube.com/watch?v=WjxgbBRWE-A.
  3. We press Enter. This will take us to the TubeNinja page, but with the link ready. Another option is to copy the link and paste it into the search box, but at least in services like YouTube it is much more convenient to use the "dl method".

Download videos with TubeNinja

  1. In the window that appears, we have the options to download the video or audio:
    • If we want to download the video:
      1. We click on the download icon. A new window will open with the video.
      2. We right click on the video and choose "Save video as ...".
      3. We choose name and path and click on «Save».
      4. We wait for the download to finish and we would have it.
    • If we want to download the audio:
      1. We click on the download icon. The converter page will open.
      2. We click on «Skip cutting». This option would allow us to trim the audio by setting a beginning and an end.
      3. We wait for you to convert the file.
      4. We click on «Download».
      5. We select "Save file" and wait for the download to finish. It will be in the folder that we have configured to download the files from our browser.

Alternative method

TubeNinja also has the option to add your favorite to make everything easier. If you look at the previous screenshot, above there is a green button that says «TubeNinja this page». We can drag that button to our favorites bar and we will click on it when we want to download a video from any supported service. Once clicked on that favorite, it will take us to the download page and we will be able to follow the steps of the previous method. We can put the button in Spanish from the menu on the right.

With savefrom.net

The method that savefrom.net uses is almost the same as that of TuveNinja, with the difference that instead of "dl" without the quotes we will add "ss", also without the quotes. The previous example would look like https://www.ssyoutube.com/watch?v=WjxgbBRWE-A, which would take us to a page like the following:

Download videos with savefrom.net

In the previous window, if we want to download the video directly we only have to:

  1. We click on «Download». As in TubeNinja, it brings us a new window.
  2. Also as in TubeNinja, we right click on the video and choose "Save video as ...".
  3. We choose name and path and click on «Save».

In the drop-down menu to the right of the green button that says «Download» we have the available options. From here, sometimes it allows us to download the audio without having to download the video.

Savefrom.net extension

If we want it easier, we can to install la savefrom.net extension. Basically, what it does is add the download options to any compatible web page, as you can see in the following image:

Savefrom.net extension

Download a video from its extension is as simple as clicking the green button. The download will start at the same moment. If we wish, we can choose between available resolutions and audio, as long as the video allows it. It couldn't be easier, but this comes at the price of having to install the extension. Personally, I prefer to have my browser clean of unnecessary extensions, but I know that each person is a world and many will be interested in this option.

With JDownloader

JDownloader is an all-rounder available for any operating system. Download YouTube video and audio with JDownloader It is very simple. We will do the following:

  1. We open the page where the video we want to download is located.
  2. We copy the link from the address bar.
  3. We wait a few seconds. The link will appear in JDownloader.

Download video with Jdownloader

  1. By clicking on the (+) on the left we will see all the available options: audio, video, photo or even subtitles. On the right we see the format of each option. We can display the menus from the down arrow and choose what we prefer.
  2. We right-click on the file we want to download and choose "Add and start downloads."
  3. We wait for it to finish. The download will appear in the folder that we have configured in JDownloader.

How to download video and audio with youtube-dl

But this is a blog about Linux and we couldn't leave it without talking about a more "Linuxera" option. Is about youtube-dl and we can download the videos from the terminal. In the recommended article that you have at the end of this post you have the complete guide, which is basically:

  1. We install youtube-dl. There is a version as a snap package, for which we will write "sudo snap install youtube-dl" without the quotes.
  2. Once installed we will execute it with the command "youtube-dl https://www.youtube.com/video", where "video" corresponds to the code of the video that we want to download. In the example above, the command would look like this:
youtube-dl https://www.youtube.com/watch?v=WjxgbBRWE-A

youtube-dl also has option to choose a format, for which we would write the command youtube-dl –list-formats video-url. From the options it shows us, we would choose one of them. In the following example, we would choose option 18:

youtube-dl -f 18 https://www.youtube.com/watch?v=ySzrJ4GRF7s

Do you have any questions regarding how to download YouTube video and audio from Linux?

logo-small-youtube-dl
Related article:
Youtube-dl, download videos from the terminal

Leave a Comment

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

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.