aboutsummaryrefslogtreecommitdiffstats
path: root/unix/m4a_to_mp3.sh
diff options
context:
space:
mode:
Diffstat (limited to 'unix/m4a_to_mp3.sh')
-rwxr-xr-xunix/m4a_to_mp3.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/unix/m4a_to_mp3.sh b/unix/m4a_to_mp3.sh
new file mode 100755
index 0000000..5d06cd9
--- /dev/null
+++ b/unix/m4a_to_mp3.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+bitrate=192
+
+for i in *.m4a; do
+ faad -o - "$i" | lame -h -b $bitrate - "${i%m4a}mp3"
+done
+