Who would have thought that a Linux tool is available for downloading YouTube videos? Well, there is and it works for Linux and for other operating systems. So, this tool is especially useful when your internet connection is flaky or if you need to watch some of the available videos or you need to stay offline for a while.
Is called a video download tool youtube-dl. (The “dl” component undoubtedly means “download.”) It is very easy to use and drops webm Or mp4 Files into your system. Both formats provide compressed, high-quality video files that you can watch whenever you like.
The youtube-dl The tool is a Python based command-line tool. On Linux, this requires Python (2.6, 2.7, or 3.2+). The command to install it on Ubuntu and related systems:
$ sudo apt-get install youtube-dl
Once installed, you can use a similar command to download the video after selecting the URL from YouTube or other source:
$ youtube-dl <video URL>
Here is an example that can be used as a quick test:
$ youtube-dl https://www.youtube.com/watch?v=C0DPdy98e4c
After you have successfully passed the test you can try to download your own selected video. Depending on the file size, the download may take a few minutes or more. If you look at the screen, you will see updates about time elapsed.
After the video is downloaded, you can play it by double-clicking on the icon in your file manager or you can use it to kick the command line Totem. Totem is a GNOME desktop movie player GStreamer And may already be in your system.
$ which totem /usr/bin/totem $ totem 'Gather the Spirit music & lyrics-CWnrwetbrbc.webm'
Note that youtube-dl Not just for YouTube videos, but videos from many sources. A very short Crazy Frog mp4 video can be downloaded with a similar command. Note that this short download took only eight seconds.
$ youtube-dl https://www.dailymotion.com/video/x3b4gfs [dailymotion] Downloading Access Token [dailymotion] x3b4gfs: Downloading media JSON metadata [dailymotion] x3b4gfs: Downloading metadata JSON [dailymotion] x3b4gfs: Downloading m3u8 information [download] Destination: Crazy Frog The Original Crazy Frog Song HD Quality!-x3b4gfs.mp4 [download] 100% of 9.74MiB in 00:08 $ ls -l Crazy* -rw-rw-r-- 1 shs shs 10216863 Jan 25 2019 'Crazy Frog The Original Crazy Frog Song HD Quality!-x3b4gfs.mp4'
Although downloaded videos can prove to be very useful, you should be wary of potential legal issues if you skip using them too modestly. You must be careful not to copy, reproduce, distribute, transmit, transmit, display, sell, license or exploit any content without the prior written permission of the owner (s). Although some videos do not have copyrights or legal restrictions, these restrictions are very specific.
Copyright © 2020 IDG Communications, Inc.