PDA

View Full Version : Extract sound from .avi?



Kimm
April 25th, 2006, 09:09 PM
I have a song that I want to extract from an AVI movie (downloaded from video.google.com)

I mainly just want to ask a friend that speaks japanese what they are singing xD

Is there any way of doing this? Any help apretiatet

PS.
Tried VLC... but it insists on including the video -.-

GeneralZod
April 25th, 2006, 09:58 PM
avidemux2 has an option to dump out the raw audio stream.

adamkane
April 25th, 2006, 11:18 PM
Open avidemux.

Rebuild index, if asked.

Audio -> Save.

Kimm
April 27th, 2006, 10:46 AM
Thanks, avidemux worked wounderfully! ^^

be4truth
August 7th, 2008, 04:18 AM
Thanks, avidemux worked wounderfully for me too. No Thanks button here...:(

init1
August 7th, 2008, 04:42 AM
It's a lot easier to use ffmpeg


ffmpeg -i youvideo.avi thesoundyouwant.mp3

Note that unless you've installed the Medibuntu version, you'll get mp2, rather than mp3.

FakeOutdoorsman
August 7th, 2008, 06:44 PM
ffmpeg can also be used to copy the audio stream without re-encoding:

ffmpeg -i input.flv -acodec copy output.mp3
If you want to know the audio codec of the original file:

[frink@hedron ~]$ ffmpeg -i input.flv
Stream #0.1: Audio: mp3, 22050 Hz, mono, s16, 56 kb/s

wilsonmuse
August 7th, 2008, 07:08 PM
for mplayer users:



mplayer -dumpaudio video.file -dumpfile output.mp3

LookTJ
August 7th, 2008, 08:06 PM
ffmpeg:


ffmpeg -i file.avi -vn -acodec mp3 file.mp3

fixed!

FakeOutdoorsman
August 7th, 2008, 08:17 PM
ffmpeg:


ffmpeg -i file.avi -vn -acodec mp3 -o file.mp3
"-o" is not an option in ffmpeg and will create an error.

LookTJ
August 7th, 2008, 08:34 PM
"-o" is not an option in ffmpeg and will create an error.
Sorry the "-o" isn't supposed to be there. :)

altima
January 31st, 2012, 10:06 AM
the "ffmpeg -i input.avi -acodec copy output.mp3" command worked just fine. thank you!
but my AVI contains several audio tracks, and with this command only the first one gets extracted. how do I modify the command to extract a certain track (I need he last one).



Stream #0.0: Video: mpeg4, yuv420p, 704x400 [PAR 1:1 DAR 44:25], 25 tbr, 25 tbn, 25 tbc
Stream #0.1: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
Stream #0.2: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
Stream #0.3: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
Stream #0.4: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s

nothingspecial
January 31st, 2012, 10:07 AM
Please don't bump ancient threads to the top.

Make a new one of your own.

Closed.