highgaq.blogg.se

Youtube video download linux
Youtube video download linux




youtube video download linux

Youtube-dl -f $qual -o "/home/Tom/Videos/%(title)s.This is another simple yet effective YouTube to MP3 converter. # If you don't want to download and quit the shell, give 99 # Here you give the number shown in first column as per your choiceĮcho "Select Quality (Choose a number): \c" # The follwing command will display a list of video quality options to choose from

youtube video download linux

# Here you paste the YT-video-URL by ctrl+shift+V I've chosen ~/Videos directory for downloading YT videos you can choose any other. You don't have to worry where all those downloaded files are going. I have written one script for my own use. So combine all these in one shell script, make it executable and put it in a bin directory. But how would you know the variety of quality of files. To force it to download elsewhere you should use -o option and to select quality of video, there is -f option. If your name is Tom, then it is /home/Tom. With this in place all downloaded files will automatically go to your Desktop.īy default youtube-dl downloads files in the same directory from where you run the command. Then set a default download location in this file: -output "~/Desktop/%(title)s.%(ext)s" This example sends the completed download to your Desktop.Ĭreate a configuration file for youtube-dl as follows: touch ~/.config/nf Use the -o option with youtube-dl to manually give a location for the downloaded files: youtube-dl -o "~/Desktop/%(title)s.%(ext)s" 'youtube file url'Īnd of course substitute your actual url for 'youtube file url'. This behavior can be modified in either of two ways: Usually this is your $HOME environment, but not always. Where does Youtube-dl download YouTube files?īy default youtube-dl will download the files in the current working directory of the Terminal that you have opened.

youtube video download linux youtube video download linux

It is simply run from any Terminal window as follows: youtube-dl url ĭetails of the command line options can be easily seen by running the following command: youtube-dl -hĮxperiment a little to make youtube-dl work as you wish.Ģ. This is because youtube-dl is run from a Terminal window only and does not come with icons, desktop files and the like.






Youtube video download linux