Skip to content

Instantly share code, notes, and snippets.

@Sv443
Last active April 21, 2024 22:30
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 Sv443/f98187704d79800f707999dedb1171fd to your computer and use it in GitHub Desktop.
Save Sv443/f98187704d79800f707999dedb1171fd to your computer and use it in GitHub Desktop.
bash script for ffmpeg - convert all .ogg files in current dir to mono .ogg for use in Minecraft resource packs
# - Requires the directory "o" to be created in the same directory as this script, this is where the new files will be created.
# You can then move them to the parent directory and overwrite the old files after you verified the files are good.
# - On Windows, run this with git bash or wsl
# Converts all ogg files in the current directory to mono 64kbps ogg files:
for i in *.ogg; do ffmpeg -i "$i" -c:a libvorbis -b:a 64k -ac 1 -y "o/${i%.*}.ogg"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment