Skip to content

Instantly share code, notes, and snippets.

@DKunin
Created March 25, 2018 21:07
Show Gist options
  • Save DKunin/2a8d09c592d3db4ec53c73e0f8e41b77 to your computer and use it in GitHub Desktop.
Save DKunin/2a8d09c592d3db4ec53c73e0f8e41b77 to your computer and use it in GitHub Desktop.
#!/bin/bash
function rename() {
name=$(echo $1 | sed 's/aifc/mp3/');
ffmpeg -i "$1" -f mp3 -acodec libmp3lame -ab 192000 -ar 44100 "$name"
}
rename "$1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment