metastruct-experiments/chatsound-tools/fix-bitrate.sh
Ayane Satomi a948308929 Add chatsound shit I use
Signed-off-by: Ayane Satomi <ayane@vignetteapp.org>
2022-04-26 18:37:33 +08:00

7 lines
No EOL
275 B
Bash

#!/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