Skip to content

Instantly share code, notes, and snippets.

@kerma
Last active June 3, 2025 17:56
Show Gist options
  • Save kerma/c52e93eef3b3e50d7237 to your computer and use it in GitHub Desktop.
Save kerma/c52e93eef3b3e50d7237 to your computer and use it in GitHub Desktop.

Revisions

  1. kerma revised this gist Feb 16, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion convert_flac_to_aac.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    # on os x use brew to get ffmpeg with libfdk_aac
    brew install ffmpeg --with-fdk-aac

    # convert and use m4a as filename prefix
    # convert and use m4a as file extension
    find . -name '*.flac' -exec sh -c 'ffmpeg -i "$1" -c:a libfdk_aac -b:a 320k "${1%.flac}.m4a"' _ {} \;
  2. kerma revised this gist Feb 16, 2016. No changes.
  3. kerma created this gist Feb 16, 2016.
    5 changes: 5 additions & 0 deletions convert_flac_to_aac.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # on os x use brew to get ffmpeg with libfdk_aac
    brew install ffmpeg --with-fdk-aac

    # convert and use m4a as filename prefix
    find . -name '*.flac' -exec sh -c 'ffmpeg -i "$1" -c:a libfdk_aac -b:a 320k "${1%.flac}.m4a"' _ {} \;