Skip to content

Instantly share code, notes, and snippets.

@deadghost
Created March 29, 2023 09:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deadghost/1103f1cefcea45cc0650c79dda856e12 to your computer and use it in GitHub Desktop.
Save deadghost/1103f1cefcea45cc0650c79dda856e12 to your computer and use it in GitHub Desktop.
Converts flac files in dir to opus audio
#!/bin/bash
for filename in ./*.flac; do
ffmpeg -i "$filename" -vn -c:a libopus -b:a 128k -vbr on -compression_level 10 -frame_duration 60 -application audio "${filename%.*}.ogg";
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment