I've got an m4a video file and would like to extract the sound. How can I do that? Running Arch Linux.
Asked
Active
Viewed 1,975 times
2 Answers
1
One simple way to do it is, if you have mplayer:
mplayer video.m4a -ao pcm
the audio will be in a file called `audiodump.wav'
You can encode that to an mp3 with `lame -V2 audiodump.wav'
Ярослав Рахматуллин
- 11,096
- 5
- 42
- 74
1
Interesting – typically the .m4a (MP4 Audio) extension is not used for files with video tracks...
This will extract the audio track in its original form (-acodec copy) and discard video (-vn):
ffmpeg -i video.m4a -acodec copy -vn audio.m4a
u1686_grawity
- 426,297
- 64
- 894
- 966