Skip to content

Instantly share code, notes, and snippets.

@matthewpoer
Created April 27, 2014 02:27
Show Gist options
  • Save matthewpoer/11336286 to your computer and use it in GitHub Desktop.
Save matthewpoer/11336286 to your computer and use it in GitHub Desktop.
Mange your music ripping from CLI/Bash (Linux Shell) with two quick functions: 'flacthiscd' will create a lossless FLAC format rip of the cd in your primary optical drive. Once that's complete, run 'mp3theseflacs' from the same directory to duplicate the files, but as lossy MP3 files (for your iPod, etc.)
# aptitude install abcde lame
# from inspired by http://pinehead.tv/linux/solution-converting-flac-to-mp3/
alias mp3theseflacs='mkdir mp3;for file in *.flac; do flac -cd "$file" | lame -h - mp3/"${file%.flac}.mp3"; done'
alias flacthiscd='abcde -o "flac" -q "high"'
@matthewpoer
Copy link
Author

mp3theseflacs does not preserve tag data. Let your media application re-tag it from Gracenote, etc.

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