HydrogenAudio

Lossy Audio Compression => MP3 => MP3 - General => Topic started by: teh roxxors on 2019-10-27 12:54:57

Title: Pulling MP3 from MP4 video?
Post by: teh roxxors on 2019-10-27 12:54:57
There are various browser add-ons that are supposed to extract and save the audio streams from video, or at least there used to be. I've not bothered with it for years, because they rarely worked, and never worked for long.

Is there anything public domain that will pull the audio stream out of MP4 files already on the computer? Something with an actual GUI? My full time job does not give me time to studio audio engineering or learn complex command line scripting, so I can't get elbow-deep into ffmpeg and such.

Please help out if you have the time. Thank you.
Title: Re: Pulling MP3 from MP4 video?
Post by: capma on 2019-10-27 17:00:40
mp4creator will do the job. First list all tracks with -list, identify ID of audio track, then extract it with -extract=<track-id>.
MP4Muxer is GUI for mp4creator.
Title: Re: Pulling MP3 from MP4 video?
Post by: teh roxxors on 2019-10-28 00:44:08
Thank you.

I just found out AVC (Any Video Creator) does this. Will convert to a number of popular music formats. I think this means it's time to pay for the full version!
Title: Re: Pulling MP3 from MP4 video?
Post by: nastea on 2019-10-28 00:49:48
You can do the same using ffmpeg for free.
Title: Re: Pulling MP3 from MP4 video?
Post by: TuNk77 on 2019-10-28 01:31:57
Pazera Free Audio Extractor (http://www.pazera-software.com/products/audio-extractor/) can extract audio from most video's,  and if i recall correctly, it uses ffmpeg
Title: Re: Pulling MP3 from MP4 video?
Post by: forestasia on 2019-10-28 11:49:18
FFmpeg is very easy to use for this. The only command you need to run is:

ffmpeg -i input-video.mp4 -vn -acodec copy output-audio.mp3

Title: Re: Pulling MP3 from MP4 video?
Post by: cowpoke on 2019-10-31 14:44:19
Would this work if you provided a link to a youtube vid?
Title: Re: Pulling MP3 from MP4 video?
Post by: polemon on 2020-03-24 22:50:56
Youtube rarely uses MP3 if they use it at all, even. (I haven't come across MP3 audio in any Youtube video for years and years.)
Op asked for a solution with a GUI, unfortunately I don't know of any. To me it sounds as if Op desires to download audio from things like Youtube videos.

In any event, Youtube doesn't put MP3 into their videos. They use Opus and AAC (MPEG-DASH).
However there are easy ways to get the audio from a Youtube video, using youtube-dl:
Code: [Select]
$ youtube-dl -f bestaudio --extract-audio <youtube-link>
By default, youtube-dl selects the best audio quality anyway, so not specifying -f bestaudio creates the same results.
As I said before, this is rarely if ever an MP3. It usually ends up as an .opus file.

That being said, youtube-dl can convert files into a target format:
Code: [Select]
$ youtube-dl -f bestaudio --extract-audio --audio-format mp3 --audio-quality 0 <youtube-link>
This will use FFmpeg to convert whatever audio into MP3. Personally, I highly advise against that.

Youtube-dl is available here: https://youtube-dl.org
Title: Re: Pulling MP3 from MP4 video?
Post by: shadowking on 2021-10-25 14:43:49
losslesscut
Title: Re: Pulling MP3 from MP4 video?
Post by: NervHQ on 2021-10-26 06:17:07
There is a variety of apps which gives you the possibility to convert mp4 to mp3.
Title: Re: Pulling MP3 from MP4 video?
Post by: Porcus on 2021-10-26 08:48:15
There is a variety of apps which gives you the possibility to convert mp4 to mp3.
There is a variety of applications that will transcode - converters usually do - and that was not the question at all.
The question was to extract the stream.

Multimedia container formats have separate video and audio, so you can take out the audio part and save it into a new file without encoding.
Title: Re: Pulling MP3 from MP4 video?
Post by: NervHQ on 2021-10-27 06:07:58
There is a variety of apps which gives you the possibility to convert mp4 to mp3.
There is a variety of applications that will transcode - converters usually do - and that was not the question at all.
The question was to extract the stream.

Multimedia container formats have separate video and audio, so you can take out the audio part and save it into a new file without encoding.
Yeah, I forgot to mention that.
Title: Re: Pulling MP3 from MP4 video?
Post by: salpro on 2021-10-28 22:41:21
The easy way with a little loss in quality: Convert to whatever you want (wav,  mp3...) with AIMP audio converter.
MKVToolNix : Helps extract the audio as it it is in the video with just few steps.

AIMP is free.
MKVToolNix is open source if i remember well.


Title: Re: Pulling MP3 from MP4 video?
Post by: kode54 on 2021-10-29 00:53:45
Quick add that the user above who was suggesting "converting MP4 to MP3" and was confused about transcoding, was banned for replying with an attempted disguised link to a popular skeezy YouTube ripping site. Apparently those sites forget that yt-dlp exists, or would prefer that people forget that exists, so they can come be exposed to whatever ads they're running to support their remotely hosted solution.
Title: Re: Pulling MP3 from MP4 video?
Post by: Artie on 2022-07-30 20:45:31
I know this thread is a bit old, but there are a couple programs that do this, but aren't free. However, I think they both have free trial periods.

High Criteria's Total Recorder and NCH Software VideoPad editor.

Title: Re: Pulling MP3 from MP4 video?
Post by: jaybeee on 2022-08-02 08:20:14
losslesscut
yes, losslesscut (https://github.com/mifi/lossless-cut/) is the best I've found that is free, fast and cross-platform.