Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save deviationist/2d3435b964e00ae7228e7255a9e81e12 to your computer and use it in GitHub Desktop.

Select an option

Save deviationist/2d3435b964e00ae7228e7255a9e81e12 to your computer and use it in GitHub Desktop.
#!/bin/bash
find . -type f -name "*.flac" | while read line; do
newFilename="${line/%flac/aiff}"
ffmpeg -y -nostdin -i "${line}" -write_id3v2 1 -c:v copy "${newFilename}"
rm "${line}"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment