aboutsummaryrefslogtreecommitdiffstats
path: root/cli/m4a2mp3.sh
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-11-03 18:31:03 +0800
committerAaron LI <aly@aaronly.me>2017-11-03 18:31:03 +0800
commitbc87a53a283d7dec8c52cccf4689fb2d9765a277 (patch)
tree8a859562087f2999f901cce4eced0827c4a2b944 /cli/m4a2mp3.sh
parentb50463d171ade46f549c5331e8ad317b410ac0f2 (diff)
downloadatoolbox-bc87a53a283d7dec8c52cccf4689fb2d9765a277.tar.bz2
Move several scripts from unix/ to cli/
Diffstat (limited to 'cli/m4a2mp3.sh')
-rwxr-xr-xcli/m4a2mp3.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/cli/m4a2mp3.sh b/cli/m4a2mp3.sh
new file mode 100755
index 0000000..5d06cd9
--- /dev/null
+++ b/cli/m4a2mp3.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
+