Hydrogenaudio Forums

Digital Audio/Video => General A/V => Topic started by: sanskrit44 on 2018-04-29 15:48:17

Title: Extract Audio from Video
Post by: sanskrit44 on 2018-04-29 15:48:17
i am looking for a (gui) linux tool which allows extracting (not converting) audio from a video file.

is there some recommended tools avaiable?
Title: Re: Extract Audio from Video
Post by: Mark0 on 2018-04-29 15:52:49
http://avidemux.sourceforge.net/

Just load a video, and select "Save Audio" from the Audio menu (check that "Audio Output" is set to "copy", but it should be the default).
Title: Re: Extract Audio from Video
Post by: sanskrit44 on 2018-04-29 16:05:37
thank you marko,

tbh, i already tried this one ;)

i surely made a mistake, because the resulting audio is always a raw file (missing its file.ending) which is not seekable?
Title: Re: Extract Audio from Video
Post by: Franky666 on 2018-04-29 17:05:07
MP4Box can do that.#

It is not difficult to do it with CLI:
ffmpeg -i yourvideo.mp4 -vn -acodec copy blablaaudiofile.mp4
Title: Re: Extract Audio from Video
Post by: sanskrit44 on 2018-04-29 17:38:09
hi franky, i am absolutely not against cli, but a gui seems more practical for multiple files. it is basically a frontend to ffmpeg that i should be looking for, right?

well, i tried the command on some .mp4 files (edited it to audio.m4a), still the audio file is not seekable?
Title: Re: Extract Audio from Video
Post by: magicgoose on 2018-04-29 19:05:39
hi franky, i am absolutely not against cli, but a gui seems more practical for multiple files. it is basically a frontend to ffmpeg that i should be looking for, right?
For multiple files CLI can be, quite the opposite, more practical, because you can automate it with scripting.
Title: Re: Extract Audio from Video
Post by: Mark0 on 2018-04-29 19:25:44
the resulting audio is always a raw file (missing its file.ending) which is not seekable?

Are you sure? It probably just don't have an extension. You should provide it when choosing the filename to save to, or rename the file afterward. If you don't already know in which format the audio track is, you can check from File - Info.
P.S. Sorry if this is obvious and you already done it.
Title: Re: Extract Audio from Video
Post by: sanskrit44 on 2018-04-30 08:25:52
@magicgoose: sure, but to drag+drop multiple files and click on a button still sounds very tempting to me.

@marko: yes, i already checked for the file infos, though i wished it was an automated process, finding the right extension.

but that is not the problem, as files will play without an extension under linux. the m4a files are non-seekable (in fact they are, but not for every second but every 1,5 min or so).
Title: Re: Extract Audio from Video
Post by: sanskrit44 on 2018-04-30 15:30:20
meanwhile i found "pazera audio extractor", which is exactly what i was looking for. it is not a linux native, but does exactly what i described before (drag+drop+extract).

the extracted audio files have proper extensions, but the resulting files are also not seekable.

if there is a solution to this issue or if you can recommend a native linux based tool like pazera, please let me know.
SimplePortal 1.0.0 RC1 © 2008-2020