Log in

View Full Version : How to get AAC audio track from mp4 with mplayer


dlgig
27th February 2010, 11:14
Hi,

I downloaded a mp4 video (HD) from Youtube.
Now I want do get the audio stream (aac) from this video.

I tried to different ways:

1.) mplayer -dumpaudio video.mp4 -dumpfile audio.aac

I got an 4 MB audio.aac but I can't play the aac-file

T:\Downloads\Flashgot>mplayer audio.aac
MPlayer Sherpya-SVN-r30369-4.2.5 (C) 2000-2009 MPlayer Team
SSE supported but disabled
SSE2 supported but disabled

Playing audio.aac.
Seek failed



2.) Now I tried to get the audio as wav file:

mencoder video.mp4 -of rawaudio -oac pcm -ovc copy -o audio.wav

But I can't play the 45 MB audio.wav either :(

T:\Downloads\Flashgot>mplayer audio.wav
MPlayer Sherpya-SVN-r30369-4.2.5 (C) 2000-2009 MPlayer Team
SSE supported but disabled
SSE2 supported but disabled

Playing audio.wav.
Seek failed


Exiting... (End of file)


How can I get an playable audio stream from this video?
I prefere a way without new encoding.

Thanks!!

roozhou
27th February 2010, 11:28
Extract aac:
ffmpeg -i video.mp4 -vn -acodec audio.mp4

Decode to wav:
ffmpeg -i -vn -acodec pcm_s16le audio.wav

P.S. wrong forum