Page 1 of 1

youtube music

Posted: Mon Aug 19, 2019 6:09 am
by gael33
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

Re: youtube music

Posted: Mon Aug 19, 2019 10:42 am
by pingvinche2
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

Re: youtube music

Posted: Mon Aug 19, 2019 4:42 pm
by gael33
Thanks for replying. I have the latest version of ffmpeg.
Any other suggestions will be appreciated.

gael.

Re: youtube music

Posted: Mon Aug 19, 2019 5:28 pm
by ColdBootII
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.

Re: youtube music

Posted: Mon Aug 19, 2019 5:48 pm
by coffee412
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

Re: youtube music

Posted: Mon Aug 19, 2019 6:19 pm
by philotux
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.

Re: youtube music

Posted: Mon Aug 19, 2019 8:11 pm
by coffee412
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.

Re: youtube music

Posted: Mon Aug 19, 2019 9:05 pm
by Flemur
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

Re: youtube music

Posted: Tue Aug 20, 2019 4:29 am
by gael33
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

Re: youtube music

Posted: Tue Aug 20, 2019 5:13 am
by ColdBootII
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