Last active
April 21, 2024 22:30
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# - 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