[SOLVED] Youtube-dl

Questions about applications and software
Forum rules
Before you post please read how to get help
Post Reply
User avatar
pjlt
Level 1
Level 1
Posts: 9
Joined: Sun Sep 20, 2015 1:25 pm
Location: France

[SOLVED] Youtube-dl

Post by pjlt » Sat Dec 16, 2017 6:08 pm

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 pjlt on Tue Dec 19, 2017 4:49 am, edited 1 time in total.
Laptop Asus K73SJ ; 64 bits ; cpu: Intel(R) Pentium(R) CPU B950 @ 2.10GH
Linux Mint 18.2 Sonya ; XFCE 4
Kernel: Linux 4.4.0-53-generic (x86_64)
VGA compatible controller:Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller

User avatar
ArtGirl
Level 4
Level 4
Posts: 392
Joined: Sat Apr 15, 2017 1:16 pm
Location: UK

Re: Youtube-dl

Post by ArtGirl » Sat Dec 16, 2017 6:20 pm

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.
18.3 Mate 64bit
Radeon R9 255, Mesa 17.2.8, 4.15.0-13,
Lenovo x310, intel i7-4790, 16 ram,
Ugee 2150


For any advice I've been able to add, eg re graphics tablets, please search forum.

Image

User avatar
all41
Level 13
Level 13
Posts: 4998
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Youtube-dl

Post by all41 » Sat Dec 16, 2017 7:06 pm

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
Proud to be a supporter and monthly contributor to Mint.

User avatar
Flemur
Level 16
Level 16
Posts: 6287
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Youtube-dl

Post by Flemur » Sat Dec 16, 2017 7:28 pm

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?
Mint 18.3 Xfce/fluxbox/pulse-less
Xubuntu 17.10/fluxbox/pulse-less

User avatar
jimallyn
Level 18
Level 18
Posts: 8551
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: Youtube-dl

Post by jimallyn » Sun Dec 17, 2017 4:43 am

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.
Image

“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
ArtGirl
Level 4
Level 4
Posts: 392
Joined: Sat Apr 15, 2017 1:16 pm
Location: UK

Re: Youtube-dl

Post by ArtGirl » Sun Dec 17, 2017 9:56 am

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.
18.3 Mate 64bit
Radeon R9 255, Mesa 17.2.8, 4.15.0-13,
Lenovo x310, intel i7-4790, 16 ram,
Ugee 2150


For any advice I've been able to add, eg re graphics tablets, please search forum.

Image

User avatar
all41
Level 13
Level 13
Posts: 4998
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Youtube-dl

Post by all41 » Sun Dec 17, 2017 10:25 am

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.
Proud to be a supporter and monthly contributor to Mint.

User avatar
ArtGirl
Level 4
Level 4
Posts: 392
Joined: Sat Apr 15, 2017 1:16 pm
Location: UK

Re: Youtube-dl

Post by ArtGirl » Sun Dec 17, 2017 10:31 am

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. :)
18.3 Mate 64bit
Radeon R9 255, Mesa 17.2.8, 4.15.0-13,
Lenovo x310, intel i7-4790, 16 ram,
Ugee 2150


For any advice I've been able to add, eg re graphics tablets, please search forum.

Image

User avatar
pjlt
Level 1
Level 1
Posts: 9
Joined: Sun Sep 20, 2015 1:25 pm
Location: France

Re: Youtube-dl

Post by pjlt » Sun Dec 17, 2017 11:23 am

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.10GH
Linux Mint 18.2 Sonya ; XFCE 4
Kernel: Linux 4.4.0-53-generic (x86_64)
VGA compatible controller:Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller

User avatar
phd21
Level 17
Level 17
Posts: 7512
Joined: Thu Jan 09, 2014 9:42 pm
Location: Florida

Re: Youtube-dl

Post by phd21 » Sun Dec 17, 2017 1:27 pm

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 KDE 18.3 & 19, 64-bit Awesome OS, Ancient Dell OptiPlex 780 Core2Duo E8400 3GHz,4gb Ram,256gb SDD, Video: Intel 4 Graphics, DVD Lightscribe. Why I use KDE?:https://opensource.com/life/15/4/9-reasons-to-use-kde

User avatar
jimallyn
Level 18
Level 18
Posts: 8551
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: Youtube-dl

Post by jimallyn » Sun Dec 17, 2017 9:58 pm

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!
Image

“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 13
Level 13
Posts: 4998
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: Youtube-dl

Post by all41 » Sun Dec 17, 2017 10:12 pm

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
Proud to be a supporter and monthly contributor to Mint.

User avatar
ArtGirl
Level 4
Level 4
Posts: 392
Joined: Sat Apr 15, 2017 1:16 pm
Location: UK

Re: Youtube-dl

Post by ArtGirl » Sun Dec 17, 2017 10:48 pm

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.
18.3 Mate 64bit
Radeon R9 255, Mesa 17.2.8, 4.15.0-13,
Lenovo x310, intel i7-4790, 16 ram,
Ugee 2150


For any advice I've been able to add, eg re graphics tablets, please search forum.

Image

aes2011
Level 5
Level 5
Posts: 504
Joined: Wed Jul 06, 2011 10:39 pm

Re: Youtube-dl

Post by aes2011 » Sun Dec 17, 2017 11:38 pm

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: 9
Joined: Sun Sep 20, 2015 1:25 pm
Location: France

Re: Youtube-dl

Post by pjlt » Mon Dec 18, 2017 6:15 am

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.10GH
Linux Mint 18.2 Sonya ; XFCE 4
Kernel: Linux 4.4.0-53-generic (x86_64)
VGA compatible controller:Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller

Post Reply

Return to “Software & Applications”