Created
May 29, 2010 17:00
-
-
Save konrad/418378 to your computer and use it in GitHub Desktop.
Shell script to increases the speed of given mp3 files.
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/sh | |
# | |
# Increases the speed of given mp3 files. | |
# | |
# Published by Konrad Förstner CC0 (Creative Commons Zero) | |
# No Rights Reserved | |
# http://creativecommons.org/publicdomain/zero/1.0/ | |
# | |
# To the extent possible under law, Konrad Förstner has waived all | |
# copyright and related or neighboring rights to this work. This | |
# work is published from Germany. | |
for FILE in $@ | |
do | |
FILEBASE=$(basename $FILE .mp3) | |
WAVFILE=${FILEBASE}.wav | |
SPEEDUPWAVE=${FILEBASE}_speedup.wav | |
SPEEDUPMP3=${FILEBASE}_speedup.mp3 | |
mpg321 -w $WAVFILE $FILE | |
sox $WAVFILE $SPEEDUPWAVE tempo 1.5 | |
rm $WAVFILE | |
lame $SPEEDUPWAVE $SPEEDUPMP3 | |
rm $SPEEDUPWAVE | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
First Gist I come across on GitHub and it's awesome. Thanks for the great introduction