#!/bin/bash for file in *.m4a; do mplayer -ao pcm "$file" -ao pcm:file="${file/m4a/wav}"; lame --alt-preset 160 "${file/m4a/wav}" "${file/m4a/mp3}"; done rm *.wav
Doesn't require multiple shell scripts or extensive string replacement with sed :s
Only requires mplayer and lame. You can used faad instead of mplayer but I didn't have that installed. Simple.
No comments:
Post a Comment
Leave a comment!