youtube-dl won't work on Linux Mint 18.3 64 bit but does on Fedora 34

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
hapibeli
Level 2
Level 2
Posts: 85
Joined: Sun Aug 25, 2013 2:32 pm

youtube-dl won't work on Linux Mint 18.3 64 bit but does on Fedora 34

Post by hapibeli »

youtube-dl https://www.youtube.com/watch?v=GnvfNx2TGFs
[youtube] GnvfNx2TGFs: Downloading webpage
[youtube] GnvfNx2TGFs: Downloading video info webpage
WARNING: unable to download video info webpage: HTTP Error 404: Not Found
WARNING: unable to download video info webpage: HTTP Error 404: Not Found
WARNING: unable to download video info webpage: HTTP Error 404: Not Found
WARNING: unable to download video info webpage: HTTP Error 404: Not Found
ERROR: GnvfNx2TGFs: YouTube said: Unable to extract video data
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
Flemur
Level 20
Level 20
Posts: 10096
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: youtube-dl won't work on Linux Mint 18.3 64 bit but does on Fedora 34

Post by Flemur »

hapibeli wrote: Sat Jun 19, 2021 12:05 pm youtube-dl https://www.youtube.com/watch?v=GnvfNx2TGFs
Works for me.
$ youtube-dl --version
2021.06.06

Don't use the youtube-dl in the repos (the one you'd install through the Software Manager, synaptic, etc), it's so out of date that it doesn't work most of the time. Uninstall that one and then install a new one like this:

Code: Select all

sudo wget https://yt-dl.org/downloads/latest/youtube-dl -O /usr/local/bin/youtube-dl
sudo chmod a+rx /usr/local/bin/youtube-dl
From: https://github.com/ytdl-org/youtube-dl

Update it as needed with

Code: Select all

sudo youtube-dl -U
Edit: at that URL, the default file youtube-dl downloaded was a 35MB .webm file, which looked "splotchy" in vlc;
the 13.5MB .mp4 file (format #18) looks great.
This is handy:

Code: Select all

youtube-dl --list-formats https://www.youtube.com/watch?v=GnvfNx2TGFs
so you can

Code: Select all

youtube-dl --format 18 https://www.youtube.com/watch?v=GnvfNx2TGFs
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
hapibeli
Level 2
Level 2
Posts: 85
Joined: Sun Aug 25, 2013 2:32 pm

Re: youtube-dl won't work on Linux Mint 18.3 64 bit but does on Fedora 34

Post by hapibeli »

Perfecto! Thanks! Now how do I guide the files where I want to put them?
User avatar
Larry78723
Level 14
Level 14
Posts: 5476
Joined: Wed Jan 09, 2019 7:01 pm
Location: Jasper County, SC, USA

Re: youtube-dl won't work on Linux Mint 18.3 64 bit but does on Fedora 34

Post by Larry78723 »

You should start by updating your Mint. LM18.x reached End of Life at the end of April and won't receive any security updates in the future. That means anytime you connect to the 'net, you're open to exploits.
Image
If you have found the solution to your initial post, please open your original post, click on the pencil, and add (Solved) to the Subject, it helps other users looking for help, and keeps the forum clean.
hapibeli
Level 2
Level 2
Posts: 85
Joined: Sun Aug 25, 2013 2:32 pm

Re: youtube-dl won't work on Linux Mint 18.3 64 bit but does on Fedora 34

Post by hapibeli »

Does that mean update then upgrade or download 19?
sanmig
Level 5
Level 5
Posts: 536
Joined: Tue Dec 04, 2018 8:27 am

Re: youtube-dl won't work on Linux Mint 18.3 64 bit but does on Fedora 34

Post by sanmig »

hapibeli wrote: Sat Jun 19, 2021 1:40 pm Now how do I guide the files where I want to put them?
Open the Terminal from the destination folder (Nemo right click).
More e.g.:
https://ostechnix.com/youtube-dl-tutori ... beginners/
User avatar
all41
Level 19
Level 19
Posts: 9527
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: youtube-dl won't work on Linux Mint 18.3 64 bit but does on Fedora 34

Post by all41 »

hapibeli wrote: Sat Jun 19, 2021 1:40 pm Perfecto! Thanks! Now how do I guide the files where I want to put them?
create a document in /home/username/.config (hidden directory-press ctrl+h to show) and name it youtube-dl.conf
in this document enter:

-o /path/to/save/destination/%(title)s.%(ext)s

from this system for example only:

-o /mnt/storage/Downloads/%(title)s.%(ext)s

Here this directs youtube-dl to another internal hdd named 'storage' and in a sub-directory named 'Downloads'
Everything in life was difficult before it became easy.
Locked

Return to “Software & Applications”