Friday, May 10, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1978  / 3 Years ago, mon, august 23, 2021, 1:49:32

Ok so I found this answer to someones question about how to download youtube videos via youtube-dl. It had all of the information that I needed, except how to open the video.



Here is what I have so far:



sudo apt-get update
sudo apt-get install youtube-dl
youtube-dl youtube-video-link


It downloads ok, I just don't know how to open it. Again, thanks for your help.


More From » downloads

 Answers
0

You can specify the directory where the video will be saved using the -o option.



Example:



youtube-dl -o "/home/<User>/Downloads/%(title)s" {URL}


The syntax to open any file in its default application is:



xdg-open $file


If you are using VLC player, you can use so:



cd /path/videos
vlc "Videoname.avi"


If VLC Player is not installed, you can install it so:



sudo add-apt-repository ppa:videolan/stable-daily
sudo apt-get update
sudo apt-get install vlc

[#25431] Monday, August 23, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ipentainer

Total Points: 112
Total Questions: 113
Total Answers: 113

Location: Guernsey
Member since Tue, Jul 6, 2021
3 Years ago
;