Skip to content

Instantly share code, notes, and snippets.

@konrad
Created July 16, 2012 11:18
Show Gist options
  • Save konrad/3122195 to your computer and use it in GitHub Desktop.
Save konrad/3122195 to your computer and use it in GitHub Desktop.
Script to convert videos to mp3 with higher speed
SPEED=1.5
for FILE in $@
do
WAV_FILE=$(basename $FILE .mp4).wav
WAV_FILE_SPED_UP=$(basename $FILE .mp4)_spedup.wav
MP3_FILE=$(basename $FILE .mp4)_spedup.mp3
ffmpeg -i $FILE -vn $WAV_FILE
sox $WAV_FILE $WAV_FILE_SPED_UP tempo $SPEED
lame $WAV_FILE_SPED_UP $MP3_FILE
rm $WAV_FILE $WAV_FILE_SPED_UP
done
Copy link

ghost commented Apr 7, 2014

Ops, just now I noticed "convert video". Then what I said may not really apply totally. I've only used it for converting mp3 to smaller and faster mp3. Never noticed it was more than that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment