How do I install Youtubedl-gui safely?

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
binar
Level 3
Level 3
Posts: 141
Joined: Wed Feb 05, 2020 8:04 am

How do I install Youtubedl-gui safely?

Post by binar »

I installed Freetube for the purpose of downloading Youtube videos only to find it downloads videos without the audio included. So Freetube is not the right tool for Youtube downloading.

What is the best Linux Mint user friendly app for downloading YouTube videos (with audio included) and Youtube playlists?

In the Software Manager I found an app called Youtubedl-gui. However, the problem is it is available only as a flatpak and the file size is huge at 778 MB.

So I went to the Youtubedl-gui Ubuntu download site at the link below and my browser warns me it is not a safe download:
https://mrs0m30n3.github.io/youtube-dl-gui/#downloads

Does anybody out there know how to install the Youtubedl-gui app safely using a terminal command so it does not install as a flatpak? Any opinion welcome.
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
Schultz
Level 9
Level 9
Posts: 2958
Joined: Thu Feb 25, 2016 8:57 pm

Re: How do I install Youtubedl-gui safely?

Post by Schultz »

You don't need the gui, just download youtube-dl, and it runs from the terminal. Or, there is also a fork of that called yt-dlp which I use. If you want to try either one, don't download it from the repos. The repos version is woefully out of date and downloads will fail on a certain site. You can download either one (links below) straight from their respective sites, using either the wget or curl method in the terminal.

yt-dlp
youtube-dl
Bumpy_Soul
Level 1
Level 1
Posts: 2
Joined: Fri Jan 14, 2022 7:03 pm

Re: How do I install Youtubedl-gui safely?

Post by Bumpy_Soul »

video downloader from software manager works well
elixxx
Level 2
Level 2
Posts: 90
Joined: Sat Oct 19, 2013 1:19 pm

Re: How do I install Youtubedl-gui safely?

Post by elixxx »

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

Re: How do I install Youtubedl-gui safely?

Post by Flemur »

binar wrote: Fri Jan 21, 2022 1:39 pm So I went to the Youtubedl-gui Ubuntu download site at the link below and my browser warns me it is not a safe download:
https://mrs0m30n3.github.io/youtube-dl-gui/#downloads
I didn't get any warning.

To install youtube-dlg, download the .deb file that matches your installation from here, linked from your URL:

Code: Select all

http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu/pool/main/y/youtube-dlg/
then do sudo dpkg -i filename.deb

FWIW, I use yt-dlp, very similar to youtube-dl, in a terminal; I tried the -dlg program a while back and it seemed pointlessly complicated
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
binar
Level 3
Level 3
Posts: 141
Joined: Wed Feb 05, 2020 8:04 am

Re: How do I install Youtubedl-gui safely?

Post by binar »

Thank you to all for your posts. I installed yt-dlp and did a test download. I am perplexed it downloaded the video in a MKV format. Is it possible for yt-dlp to download the video as a MP4 file format? Better yet, can anybody please post a link that shows a list of all the basic commands one needs to know in order to operate yt-dlp. I need to see example terminal commands for the operations listed below:

1. Command to download video in MP4 format.
2. Command to extract audio from video in FLAC format and then download it.
3. Download using a list of 20 URL YT video links contained in control TEXT file located in my Documents Folder.
4. Or alternatively download a CUE of Youtube video links separated by a delimiter such as commas or hyphens.

Can yt-dlp perform such operations straight from within the terminal? If yes, I would have to say it is the best Youtube video downloader I have ever been referred to.

Any opinions welcome.
User avatar
Schultz
Level 9
Level 9
Posts: 2958
Joined: Thu Feb 25, 2016 8:57 pm

Re: How do I install Youtubedl-gui safely?

Post by Schultz »

Use this to see a list of available download options (note the upper case "F"):

yt-dlp -F https://www.anywebsite.com/

You'll then get a list like this:

Code: Select all

140          m4a        audio only DASH audio  127k , m4a_dash container, mp4a.40.2@128k (44100Hz), 1.39MiB
171          webm       audio only DASH audio  155k , vorbis@128k (44100Hz), 1.52MiB
141          m4a        audio only DASH audio  255k , m4a_dash container, mp4a.40.2@256k (44100Hz), 2.79MiB
160          mp4        256x144    DASH video  112k , avc1.4d400c, 15fps, video only, 1.16MiB
242          webm       426x240    DASH video  141k , vp9, 1fps, video only, 1000.59KiB
243          webm       640x360    DASH video  250k , vp9, 1fps, video only, 1.68MiB
133          mp4        426x240    DASH video  259k , avc1.4d4015, 24fps, video only, 2.66MiB
134          mp4        640x360    DASH video  318k , avc1.4d401e, 24fps, video only, 2.72MiB
244          webm       854x480    DASH video  448k , vp9, 1fps, video only, 2.81MiB
135          mp4        854x480    DASH video  705k , avc1.4d401e, 24fps, video only, 5.81MiB
247          webm       1280x720   DASH video  818k , vp9, 1fps, video only, 5.13MiB
136          mp4        1280x720   DASH video 1214k , avc1.4d401f, 24fps, video only, 11.46MiB
248          webm       1920x1080  DASH video 1331k , vp9, 1fps, video only, 8.63MiB
137          mp4        1920x1080  DASH video 2053k , avc1.640028, 24fps, video only, 20.44MiB
17           3gp        176x144    small , mp4v.20.3,  mp4a.40.2@ 24k
36           3gp        320x180    small , mp4v.20.3,  mp4a.40.2
5            flv        426x240    small , h263, mp3  @ 64k
43           webm       640x360    medium , vp8.0,  vorbis@128k
18           mp4        640x360    medium , avc1.42001E,  mp4a.40.2@ 96k
22           mp4        1280x720   hd720 , avc1.64001F,  mp4a.40.2@192k (best)
Let's say you want the best available, which is the last on the list. You will then run this command in the terminal (note the lower case "f"):

yt-dlp -f 22 https://www.anywebsite.com/

If you only wanted to download the audio, in m4a format, you would change the "22" to either 140 or 141.
eldee
Level 1
Level 1
Posts: 6
Joined: Sun Mar 29, 2020 4:35 pm

Re: How do I install Youtubedl-gui safely?

Post by eldee »

If you don't mind getting a little dirty with the command line, here's a site I go to if I'm using LM and want to install the program you want:

https://www.how2shout.com/linux/how-to- ... 20-04-lts/

Since LM 20.3 is based on Ubuntu 20.04, this can still work. HTH
User avatar
all41
Level 19
Level 19
Posts: 9520
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: How do I install Youtubedl-gui safely?

Post by all41 »

using Linux to poach video content?
double thumbs up
the gui is opposite
Everything in life was difficult before it became easy.
eldee
Level 1
Level 1
Posts: 6
Joined: Sun Mar 29, 2020 4:35 pm

Re: How do I install Youtubedl-gui safely?

Post by eldee »

all41 wrote: Tue Jan 25, 2022 2:02 am using Linux to poach video content?
double thumbs up
the gui is opposite
LOL, I suppose YTDL-GUI can be used for that. But, I've worked for companies that put up their meetings and such on their private feeds an want us to download them after we've been given their links. They do this for training purposes. It was mentioned above that the person wanted to install YoutubeDL-Gui safely. I found that this still works for me on distros that are using the Ubuntu 20.04 LTS as their base, and you can actually install it from the AUR in Arch based as well. I've tried to install it on the newer Ubuntu's since 20.04, and I get error messages. (I think it's a Python thing) So if/when LM heads the way of 22.04, it'll be interesting to see if YTDL-GUI will still work at all.
Reddog1
Level 7
Level 7
Posts: 1937
Joined: Wed Jun 01, 2011 2:12 pm

Re: How do I install Youtubedl-gui safely?

Post by Reddog1 »

The file was downloaded as a *.mkv because that was the format on youtube. You can convert it easily from the command line. ffmpeg should be installed.

ffmpeg -i /path/to/file/nameoffile.mkv -codec copy nameoffile.mp4

If you have a directory with a bunch of .mkv music video files you can do them all at once and convert to mp3 or wav using libmp3lame. CD to the directory containing the files to be converted and:

find . -type f -name "*.mkv" -exec bash -c 'FILE="$1"; ffmpeg -i "${FILE}" -vn -c:a libmp3lame -y "${FILE%.mkv}.mp3";' _ '{}' \;

If you must have a gui, Audacity will change the file directly via its 'Export' function
Locked

Return to “Software & Applications”