39 how to install and use youtube-dl to safeguard video’s from youtube

We used this link from youtube to do our testing with the application youtube-dl.

Here is the list of all the websites this application supports NOT JUST YOUTUBE!

We analyze the code in the terminal with youtube-dl –help.

Audio + Video

youtube-dl -f bestvideo+bestaudio https://www.youtube.com/watch?v=f_tH3qARp0U

Just Audio

youtube-dl -x --audio-format mp3 https://www.youtube.com/watch?v=f_tH3qARp0U

You will get a video and an mp3 to play with any player of your choice.

The audio format can be in mp3 but also best, aac, flac, m4a, opus, vorbis, wav.
If we use best for this link, we will get opus. Others came in with ogg. So the source matters when you use best.

Many formats are possible

USE a gui to do the same job

We analyze our choices and decide to install

yay -S youtube-dl-gui-git