metastruct-experiments/chatsound-tools/fix-bitrate.sh

7 lines
275 B
Bash
Raw Normal View History

#!/bin/bash
# You can convert this to also convert any MP3 to OGG
# But this is intended mostly to fix OGGs with non-compliant bitrates
for file in *.ogg
do ffmpeg -i "${file}" -af "aformat=sample_fmts=s16:sample_rates=44100" -acodec libvorbis "conv/${file%.ogg}.ogg"
done