mirror of
https://github.com/sr229/metastruct-experiments.git
synced 2024-09-20 06:30:36 +00:00
11 lines
No EOL
318 B
Bash
11 lines
No EOL
318 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
|
|
|
|
if [ ! -d "conv/" ] then
|
|
mkdir conv
|
|
fi
|
|
|
|
for file in *.ogg
|
|
do ffmpeg -i "${file}" -af "aformat=sample_fmts=s16:sample_rates=44100" -acodec libvorbis "conv/${file%.ogg}.ogg"
|
|
done |