Skip to content

Instantly share code, notes, and snippets.

@dajare
Created August 4, 2017 09:07
Show Gist options
  • Save dajare/97ad733d8034b3ff3b78897fa53f215f to your computer and use it in GitHub Desktop.
Save dajare/97ad733d8034b3ff3b78897fa53f215f to your computer and use it in GitHub Desktop.
Bash script to convert directory of FLAC files to MP3 (set codec detail -- current 128)
#!/bin/bash
for i in *.flac ; do
ffmpeg -i "$i" -ab 128k -map_metadata 0 -id3v2_version 3 $(basename "${i/.flac}").mp3
sleep 60
done
@dajare
Copy link
Author

dajare commented Aug 4, 2017

References: SO, and U&L

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