[SOLVED] Youtube-dl

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
pjlt
Level 1
Level 1
Posts: 20
Joined: Sun Sep 20, 2015 1:25 pm
Location: France

[SOLVED] Youtube-dl

Post by pjlt »

Hello,
Having changed my OS (Linux Mint) for a newer version, I installed the package "Youtube-dl" present in the initial repository. I noted that the video downloading from Youtube did not work with some videos.
I downloaded from https://yt-dl.org/ the most recent package (.deb) I installed, but the command "youtube-dl" always returns me that youtube-dl is not not installed:

Code: Select all

juillet@juillet-K73SJ ~ $ youtube-dl https://www.youtube.com/watch?v=RRsTbD95Qy0Le programme « youtube-dl » n'est pas encore installé. Vous pouvez l'installer en tapant :
sudo apt install youtube-dl
juillet@juillet-K73SJ ~ $ sudo apt install youtube-dl
[sudo] Mot de passe de juillet :
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
youtube-dl is already the newest version (2017.12.14-1).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 335 non mis à jour.
juillet@juillet-K73SJ ~ $ youtube-dl sudo apt install youtube-dl
Le programme « youtube-dl » n'est pas encore installé. Vous pouvez l'installer en tapant :
sudo apt install youtube-dl
juillet@juillet-K73SJ ~ $ 
Where the problem is?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Laptop Asus K73SJ ; 64 bits ; cpu: Intel(R) Pentium(R) CPU B950 @ 2.10GHz ;
Distribution : Linux Mint 20.1 Ulyssa
Desktop Environment : Cinnamon
Kernel : 5.4.0-58-generic x86_64
VGA compatible controller: Intel Corporation 2nd Generation Core Processor
ArtGirl

Re: Youtube-dl

Post by ArtGirl »

I'm no tech wizard, but use 2 deb files, one for youtube-dl and one for pip ... the app gives an 'updating' message when I open it the first time.
Last edited by ArtGirl on Sat Dec 16, 2017 7:42 pm, edited 1 time in total.
User avatar
all41
Level 19
Level 19
Posts: 9525
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Youtube-dl

Post by all41 »

The problem is that youtube-dl version in the repositories is outdated.
You need to get the latest version from youtube-dl.org. The newest version was released 12/14/17--that is the one you want.
Before installing the new version remove the repository version by opening a terminal and copy/paste the following:

Code: Select all

apt purge youtube-dl
I used the curl method explained on the site:

Code: Select all

sudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl
Everything in life was difficult before it became easy.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Youtube-dl

Post by Flemur »

Code: Select all

sudo chmod +x /usr/local/bin/youtube-dl
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
User avatar
jimallyn
Level 19
Level 19
Posts: 9075
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: Youtube-dl

Post by jimallyn »

The install method presented by all41 and Flemur is the correct one. You can also install youtube-dlg, the GUI interface for youtube-dl, and it has a button to click to download the latest version. I usually use the command line version, but many find the GUI convenient.
“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan
ArtGirl

Re: Youtube-dl

Post by ArtGirl »

jimallyn wrote:The install method presented by all41 and Flemur is the correct one. You can also install youtube-dlg, the GUI interface for youtube-dl, and it has a button to click to download the latest version. I usually use the command line version, but many find the GUI convenient.
My method does work, and is the GUI version.
I'll just stop posting.
User avatar
all41
Level 19
Level 19
Posts: 9525
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Youtube-dl

Post by all41 »

This gets updated quite often--like every week or so.
I choose to manually update by:

Code: Select all

sudo youtube-dl -U
@ArtGirl,
Yes there are even more ways to accomplish this. All contributions and thoughts are welcome
on this board.
Everything in life was difficult before it became easy.
ArtGirl

Re: Youtube-dl

Post by ArtGirl »

all41 wrote:This gets updated quite often--like every week or so.
I choose to manually update by:

Code: Select all

sudo youtube-dl -U
@ArtGirl,
Yes there are even more ways to accomplish this. All contributions and thoughts are welcome
on this board.
Thank you all41; much appreciate. :)
User avatar
pjlt
Level 1
Level 1
Posts: 20
Joined: Sun Sep 20, 2015 1:25 pm
Location: France

Re: Youtube-dl

Post by pjlt »

Hello! Thank you all,
I have succeeded in installing the latest version of youtube-dl and this one is working.
I used the install method presented by all41 and Flemur.
Laptop Asus K73SJ ; 64 bits ; cpu: Intel(R) Pentium(R) CPU B950 @ 2.10GHz ;
Distribution : Linux Mint 20.1 Ulyssa
Desktop Environment : Cinnamon
Kernel : 5.4.0-58-generic x86_64
VGA compatible controller: Intel Corporation 2nd Generation Core Processor
phd21
Level 20
Level 20
Posts: 10104
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: Youtube-dl

Post by phd21 »

Hi "pjlt",

I just read your post and the good replies to it. Here are my thoughts on this as well.

I have always been using the "webupd8" PPA for installing and automatically updating the "YouTube-DL" console terminal application and the related desktop GUI "YouTube-DLG" application. As with most PPA's, you can also install the Linux deb files instead of using the PPA, but then you might not get the updates...

Youtube-dl gui 0.4 ships with new user interface, more [ppa], August 11, 2017
http://www.webupd8.org/2017/08/youtube- ... -user.html

To install "youtube-dl" and "youtube-dlg" using the PPA method, open a console terminal, type in, or copy & paste, each line below one by one:
Click "Select All" above command, right click the highlighted command, select Copy (or Ctrl+Insert), click in the console terminal window, and right click paste (or Shift+Insert), repeat for each command.

Code: Select all

sudo add-apt-repository ppa:nilarimogard/webupd8

Code: Select all

sudo apt-get update

Code: Select all

sudo apt-get install youtube-dl youtube-dlg

YouTube-DL : A Powerful YouTube Video Downloader For Linux, SEPTEMBER 11, 2017
- shows various installation options and instructions...
https://www.2daygeek.com/youtube-dl-com ... -opensuse/


FYI: Other "Youtube-dl" type applications to consider.

Ktube downloader - various installation options, like Linux "deb" files, or AppImage, etc...
https://keshavbhatt.github.io/Ktube-med ... /#download

4K video downloader
https://www.4kdownload.com/products/pro ... downloader


Hope this helps ...
Phd21: Mint 20 Cinnamon & KDE Neon 64-bit Awesome OS's, Dell Inspiron I5 7000 (7573, quad core i5-8250U ) 2 in 1 touch screen
User avatar
jimallyn
Level 19
Level 19
Posts: 9075
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: Youtube-dl

Post by jimallyn »

ArtGirl wrote:I'll just stop posting.
No, no, no. In the past anyway, installing from the .deb provides a much older version, which, considering how often youtube-dl gets updated, is less than satisfactory for most people. Apparently that has been fixed now? I certainly don't intend to run you off!
“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan
User avatar
all41
Level 19
Level 19
Posts: 9525
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Youtube-dl

Post by all41 »

pjlt wrote:Hello! Thank you all,
I have succeeded in installing the latest version of youtube-dl and this one is working.
I used the install method presented by all41 and Flemur.
You're welcome pjlt.
Not sure if you are aware of some of the options. If you enter youtube-dl -F <url> it will show you all the different
resolutions and audio rates available and there will be a number associated with each. This allows you several options such as download only the audio at your preferred bitrate.
Then use that number like this:
youtube-dl -f <pkg number> <url>
notice the f is lowercase this time
for example: youtube-dl -f 140 https://www.youtube.com/watch?v=iiUkbE_ktHs
This will download only the audio from this random selection
Everything in life was difficult before it became easy.
ArtGirl

Re: Youtube-dl

Post by ArtGirl »

jimallyn wrote:
ArtGirl wrote:I'll just stop posting.
No, no, no. In the past anyway, installing from the .deb provides a much older version, which, considering how often youtube-dl gets updated, is less than satisfactory for most people. Apparently that has been fixed now? I certainly don't intend to run you off!
Okay, thanks. :) I'd just found the latest deb, and noticed on install it says 'updating', plus you can select 'update' in the settings menu and it does that, showing 'downloading latest youtube-dl'. It says it's Youtube-DLG 0.4 the same as it did before, so I'm not sure it has updated, but, whatever version, it works great. It's the youtube-dlg_0.4-1-webupd8-xenial4_all.deb I initially installed. When trying the 2017 one, it says a later version is installed already.
aes2011
Level 4
Level 4
Posts: 498
Joined: Wed Jul 06, 2011 10:39 pm

Re: Youtube-dl

Post by aes2011 »

If it works great, that's fine but the latest version available for me is

Code: Select all

$ youtube-dl --version                                       
2017.10.15.1
$ 
And I just used

Code: Select all

sudo youtube-dl -U
to update to version 2017.12.14.
User avatar
pjlt
Level 1
Level 1
Posts: 20
Joined: Sun Sep 20, 2015 1:25 pm
Location: France

Re: Youtube-dl

Post by pjlt »

Thank you all !
I'm keeping that topic in a corner, to solve a possible problem, in the future.
Laptop Asus K73SJ ; 64 bits ; cpu: Intel(R) Pentium(R) CPU B950 @ 2.10GHz ;
Distribution : Linux Mint 20.1 Ulyssa
Desktop Environment : Cinnamon
Kernel : 5.4.0-58-generic x86_64
VGA compatible controller: Intel Corporation 2nd Generation Core Processor
Locked

Return to “Software & Applications”