Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#374083 - 02/06/2023 03:23 I want to extract audio (MP3 format) from a YouTube video
tanstaafl.
carpal tunnel

Registered: 08/07/1999
Posts: 5539
Loc: Ajijic, Mexico
Why is it so complicated to extract audio from a YouTube video? Or, more likely, why am I not smart enough to accomplish this simple task?

I have software that I am sure can do this (VLC Media Player, Wavepad Sound editor) but they seem to require that I have the actual video on my hard drive and I don't want to try going down that rabbit hole again.

Both VLC and Wavepad are exceptionally capable, which means they have an exceptionally complicated UI. I just don't want to get that deep into it.

I want to use the audio from this short (2:57) video to mark the beginning of my audiobook playlist on my iPod Shuffle:

https://youtu.be/NJdzGLK3gfc

tanstaafl.
_________________________
"There Ain't No Such Thing As A Free Lunch"

Top
#374084 - 02/06/2023 11:47 Re: I want to extract audio (MP3 format) from a YouTube video [Re: tanstaafl.]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14478
Loc: Canada
I always do it with the video file already downloaded -- I use the Easy YouTube Video Downloader Express add-on for FireFox.

Top
#374087 - 02/06/2023 18:35 Re: I want to extract audio (MP3 format) from a YouTube video [Re: tanstaafl.]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31565
Loc: Seattle, WA
Quote:
Why is it so complicated to extract audio from a YouTube video


Because YouTube actively attempts to block the practice. A few things are happening here to thwart you:

- If you're specifically looking for an MP3, most videos don't have their audio track encoded in that format so it'll be a transcode rather than a direct extraction.

- Youtube makes its money via inline advertising, and people who download the video or audio could then replay it without the advertising, or even republish it on their own channel to monetize it. So YouTube tries to block downloading.

- Youtube is beholden to movie and record companies, and must actively police their platform for infringement, preventing downloads is one aspect of that defense.

There are lots of web sites which will do the trick for you. But keep in mind that anything you see which circumvents the blockers is going to be made by people who are OK with circumventing protections. I'm not saying that all things which circumvent protections are made by amoral people, I'm saying be careful of which ones you use. For instance there are a lot of web sites which advertise being able to do this task for you, and some of them might deliver malware too. Just be careful. Mark's suggestion of a particular Firefox plugin is probably fine. There are also Chrome plugin alternatives.

My most recent solution is to use the command line program "YouTube-Dl". It's open source and it comes with the added benefit of being able to extract audio and video from places other than just YouTube. I've been using it for years and it's been safe; I haven't seen it deliver any malware yet. It integrates well with another command line program, ffmpeg, to do things like post-download transcoding, aspect ratio changes, trimming, that sort of thing. Perhaps the most useful part is that it's constantly being updated with new code to keep up with the "arms race" of web sites which are constantly updating their blocker schemes. However, to use the software, you have to learn its complicated command line parameters and understand the available audio and video formats of the thing you're trying to download. The advantage is that it's got a lot of power and configurability, and because it's command-line, it can be scripted.
_________________________
Tony Fabris

Top