For a refresher, m4a file are propietary iTunes music files. They may or may not have DRM, so they may or may not convert properly.
To convert a m4a file to mp3, you need faad and lame installed. Use Synaptic Package Manager to get them. Install. In your konsole/terminal, type:
$ faad foobar.m4a # to convert to wavIf you need to change it to ogg, you need oggenc. Then you can do:
$ lame foobar.wav foobar.mp3 # to convert to mp3
$ for nam in *.mp4; do nice mplayer -ao pcm "$nam" -ao pcm:file="$nam.wav" && nice oggenc -q5 "$nam.wav" -o "$(basename "$nam" .mp4).ogg"; rm "$nam.wav"; doneThat's all one line. See link here and here.
1 comment:
Thanks. This is a quick and dirty way to re-encode m4a's to a more useful format.
Post a Comment