Skip to content

Instantly share code, notes, and snippets.

@JakeTrock
Last active January 1, 2022 22:13
Show Gist options
  • Save JakeTrock/ee04bc600cbc8990bf19a76ee81f50ab to your computer and use it in GitHub Desktop.
Save JakeTrock/ee04bc600cbc8990bf19a76ee81f50ab to your computer and use it in GitHub Desktop.
makes an mp3 as small as possible with ffmpeg
mkdir filtered && for f in *.mp3 ; do ffmpeg -i "$f" -ab 128k -map_metadata -1 "./filtered/${f%.}.opus"; done
@JakeTrock
Copy link
Author

JakeTrock commented Nov 30, 2021

for recursive action!
find -name "*.mp3" -exec ffmpeg -i {} -ab 128k -map_metadata -1 {}.opus \;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment