Created
April 29, 2013 08:09
-
-
Save yseto/5480299 to your computer and use it in GitHub Desktop.
timidityからm4aを作成する。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
if [ -f $1 ]; then | |
rm tmp.aac | |
OUTPUT=`basename $1 .mid` | |
timidity -Ow -o - $1 | avconv -i - -acodec aac -strict experimental -ab 128k tmp.aac | |
MP4Box -add tmp.aac $OUTPUT.m4a | |
rm tmp.aac | |
ls -l $OUTPUT.m4a | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment