Skip to content

Instantly share code, notes, and snippets.

@dark-vex
Created September 25, 2019 09:11
Show Gist options
  • Select an option

  • Save dark-vex/7c9a698c416d192b50860570c9f1df0e to your computer and use it in GitHub Desktop.

Select an option

Save dark-vex/7c9a698c416d192b50860570c9f1df0e to your computer and use it in GitHub Desktop.
Simple script for convert flac files to mp3 320k
#!/bin/bash
find -type f -name "*.flac" -print0 | while read -d $'\0' a; do
< /dev/null ffmpeg -i "$a" -ab 320k -map_metadata 0 -id3v2_version 3 "${a[@]/%flac/mp3}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment