Skip to content

Instantly share code, notes, and snippets.

@andre3k1
Forked from awnion/flac2mp3.sh
Last active August 29, 2015 14:18
Show Gist options
  • Save andre3k1/2190daabceff65e9e3fb to your computer and use it in GitHub Desktop.
Save andre3k1/2190daabceff65e9e3fb to your computer and use it in GitHub Desktop.
Convert lossless FLAC audio files to lossy 320kbps MP3 files, preserving ID3 meta tag info.
#!/bin/bash
# You need ffmpeg and lame utils, which you can install with homebrew: $ brew install ffmpeg lame
# Tip – Try adding this one liner to your bash profile as an alias.
find . -name "*.flac" -exec ffmpeg -i {} -acodec libmp3lame -ab 320k {}.mp3 \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment