youtube music

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
User avatar
gael33
Level 4
Level 4
Posts: 308
Joined: Thu Mar 19, 2009 9:50 am
Location: Glasgow, Scotland.

youtube music

Post by gael33 » Mon Aug 19, 2019 6:09 am

I've been trying to download some music using the youtube-dl GUI downloader and keep getting this message. [Video/x-av1 decoder missing]. I've looked online and cannot find a solution, any ideas? Naturally, I updated youtube-dl before I started.
Linux Mint 19.2 Cinnamon
VLC & Media Player
Linux Mint 19.2 Cinnamon

pingvinche2
Level 1
Level 1
Posts: 6
Joined: Mon Aug 19, 2019 10:38 am
Location: Novi Sad

Re: youtube music

Post by pingvinche2 » Mon Aug 19, 2019 10:42 am

Did you try going to terminal and check if you have necessary ffmpeg installed on your sistem?
Try with command

Code: Select all

ffmpeg -version
If you don't have one, then just use command to install it.

Code: Select all

sudo apt-get install ffmpeg
LM 19.2 Cinnamon, Dell Inspiron N5010

User avatar
gael33
Level 4
Level 4
Posts: 308
Joined: Thu Mar 19, 2009 9:50 am
Location: Glasgow, Scotland.

Re: youtube music

Post by gael33 » Mon Aug 19, 2019 4:42 pm

Thanks for replying. I have the latest version of ffmpeg.
Any other suggestions will be appreciated.

gael.
Linux Mint 19.2 Cinnamon

ColdBootII
Level 4
Level 4
Posts: 435
Joined: Wed Aug 02, 2017 8:19 am

Re: youtube music

Post by ColdBootII » Mon Aug 19, 2019 5:28 pm

Hi,

I think Youtube-GUI is not the best utility for the purpose. Even if mp3 is selected it still downloads a webm file and it is playable if renamed to mp3 but for some reason it is always low bitrate file even if high quality is set in Options.

I'm thinking, 4k Downloader https://www.4kdownload.com/download is better and simpler to use, at the same time. There is a portable version for Linux should you consider giving it a try.

Cheers.

User avatar
coffee412
Level 5
Level 5
Posts: 959
Joined: Mon Nov 12, 2012 7:38 pm
Location: Indiana, USA
Contact:

Re: youtube music

Post by coffee412 » Mon Aug 19, 2019 5:48 pm

I normally download the music video and then just strip the audio out of it in mp3 format.

ffmpeg -i <VideoName> <VideoName>.mp3

I havent checked recently but last I did the Firefox plugins were all broke. So, I use youtube-dl and then strip out the music
Ryzen x1800 Asus Prime x370-Pro 32 gigs Ram RX480 graphics
IceWarp 12.0.3 * Mint 18.3 * RAID 1/5 * OpenVPN * Linux since kernel 2.0.36
************* Get Your Linux on! ***************

User avatar
philotux
Level 5
Level 5
Posts: 832
Joined: Sat Jul 21, 2018 11:14 am
Location: Utopia

Re: youtube music

Post by philotux » Mon Aug 19, 2019 6:19 pm

coffee412 wrote:
Mon Aug 19, 2019 5:48 pm
I normally download the music video and then just strip the audio out of it in mp3 format.

ffmpeg -i <VideoName> <VideoName>.mp3

I havent checked recently but last I did the Firefox plugins were all broke. So, I use youtube-dl and then strip out the music
It's also possible to do it in one go using the following formula:

Code: Select all

youtube-dl --extract-audio --audio-format mp3 URL
replacing URL with the actual url of the video.

User avatar
coffee412
Level 5
Level 5
Posts: 959
Joined: Mon Nov 12, 2012 7:38 pm
Location: Indiana, USA
Contact:

Re: youtube music

Post by coffee412 » Mon Aug 19, 2019 8:11 pm

philotux wrote:
Mon Aug 19, 2019 6:19 pm
coffee412 wrote:
Mon Aug 19, 2019 5:48 pm
I normally download the music video and then just strip the audio out of it in mp3 format.

ffmpeg -i <VideoName> <VideoName>.mp3

I havent checked recently but last I did the Firefox plugins were all broke. So, I use youtube-dl and then strip out the music
It's also possible to do it in one go using the following formula:

Code: Select all

youtube-dl --extract-audio --audio-format mp3 URL
replacing URL with the actual url of the video.
Isnt linux beautiful? :)

Absolutely kills windows.
Ryzen x1800 Asus Prime x370-Pro 32 gigs Ram RX480 graphics
IceWarp 12.0.3 * Mint 18.3 * RAID 1/5 * OpenVPN * Linux since kernel 2.0.36
************* Get Your Linux on! ***************

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

Re: youtube music

Post by Flemur » Mon Aug 19, 2019 9:05 pm

I like to ensure I'm getting the best quality, so I list the youtube output formats and download the one with the best audio quality, which IS NOT the one you get by default.

E.g.

Code: Select all

$ youtube-dl -F https://www.youtube.com/watch?v=8Y6ruIXYmXY | grep -v "video only"
[info] Available formats for 8Y6ruIXYmXY:
format code  extension  resolution note
249          webm       audio only DASH audio   54k , opus @ 50k, 2.50MiB
250          webm       audio only DASH audio   71k , opus @ 70k, 3.30MiB
140          m4a        audio only DASH audio  130k , m4a_dash container, mp4a.40.2@128k, 6.62MiB
251          webm       audio only DASH audio  139k , opus @160k, 6.57MiB
18           mp4        480x360    medium  252k , avc1.42001E, mp4a.40.2@ 96k (44100Hz), 12.92MiB (best)
(grep -v "video only" = don't show the video-only files)
#251 will have better high-frequency resolution than the other formats (you can see it in an audio FFT); the one labelled (best) is not the best.

So then I'd do

Code: Select all

youtube-dl -f 251 https://www.youtube.com/watch?v=8Y6ruIXYmXY
and get the .webm file, load that into audacity and convert it .wav, then convert that to .mp3 with 'lame'.
(You could also directly convert it from .webm to .mp3 or whatever, but I like to trim and normalize the .wav file in an audio editor - audacity could do it, audition is better; in either case, .wav in .wav out lossless)

Also: don't use the youtube-dl from the repos, they don't get updated often enough to keep up with youtube changes, get the one from the website and update it with:

Code: Select all

sudo youtube-dl -U
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?
Mint 19.1 Xfce/fluxbox
Manjaro openbox/fluxbox

User avatar
gael33
Level 4
Level 4
Posts: 308
Joined: Thu Mar 19, 2009 9:50 am
Location: Glasgow, Scotland.

Re: youtube music

Post by gael33 » Tue Aug 20, 2019 4:29 am

I really appreciate all your replies, however, my intention is to download the music video and add it to my NAS music video folder. To do that I need to be able to play the video file which at present I can't. I get a message telling me the codec Video/x-av1 decoder is missing. I admit I'm not very technically minded and I often struggle with finding solutions, perhaps it's my age (73) as I'm not fast enough anymore to keep up with modern technology. Anyway, if anyone does find a way to solve this, perhaps it's a plugin that I just haven't come across or there is a patch somewhere out there that I haven't found (yet). Whatever! I'm pretty sure that I'm possibly not the only person who would be grateful to solve this issue.

gael
Linux Mint 19.2 Cinnamon

ColdBootII
Level 4
Level 4
Posts: 435
Joined: Wed Aug 02, 2017 8:19 am

Re: youtube music

Post by ColdBootII » Tue Aug 20, 2019 5:13 am

Sorry gael,

I have been misled by "I've been trying to download some music" part in your original question into thinking that you want to extract just the music/sound files, and completely missed the codec error message you're getting. :oops:

AV1 is still in the early days and not supported in Mint19.x/Bionic OOTB. The solution is simple, install either vlc or mpv players from their respective PPAs, because the versions from the repos (including Media Player) can't handle that codec.

HTH, Cheers :D

Post Reply

Return to “Newbie Questions”