youtube-dl is a small command-line program to download videos from YouTube.com and other sites that don't provide direct links to the videos served. To install youtrube-dl in all currently supported versions of Ubuntu run the following command:
sudo apt install youtube-dl
In addition to serving normally formatted videos with an embedded audio track, YouTube also serves videos with the audio and video tracks separated into two separate files. To download the video only without the audio run the following command to list all available video formats.
youtube-dl -F <video-URL>
Replace <video-URL>
with the URL of the video that you want to download. Select a video format that says video only
after it. In the following example I use the format code 160 which downloads mp4 video only, no audio.
youtube-dl -f 160 <video-URL>
Format code 160 is a low quality video, but there are usually several higher quality formats available for YouTube videos.
youtube-dl -F URL
to get a list of available formats for video/audio, then choose the one you want and get it usingyoutube-dl -f [format-number] URL
like:youtube-dl -f 43 URL
. – Ravexina Mar 30 '19 at 11:01youtube-dl -F URL_TO_YOUR_VIDEO
(shows list of numbered options, some of which say "video only" next to the video size on the far right ) 2. Download video only:youtube-dl -f [option you want, e.g. 136]
– Nic Scozzaro Jul 07 '20 at 01:30