Skip to content

Instantly share code, notes, and snippets.

@gedsic
Created April 15, 2021 14:32
Show Gist options
  • Select an option

  • Save gedsic/a9222989b4acbf5f3b3b8935d03ef878 to your computer and use it in GitHub Desktop.

Select an option

Save gedsic/a9222989b4acbf5f3b3b8935d03ef878 to your computer and use it in GitHub Desktop.
Convert FLAC to MP3 using ffmpeg
#!/bin/bash
BITRATE="320k"
for fil in *.flac
do
ffmpeg -i "$fil" -ab $BITRATE -map_metadata 0 -id3v2_version 3 "${fil%.flac}.mp3";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment