Make script automatically add a conv dir

This commit is contained in:
Ayase Minori 2024-09-20 01:33:13 +08:00 committed by GitHub
parent 50fafc5346
commit 60bb0f8d1d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,6 +2,10 @@
# You can convert this to also convert any MP3 to OGG # You can convert this to also convert any MP3 to OGG
# But this is intended mostly to fix OGGs with non-compliant bitrates # But this is intended mostly to fix OGGs with non-compliant bitrates
if [ ! -d "conv/" ] then
mkdir conv
fi
for file in *.ogg for file in *.ogg
do ffmpeg -i "${file}" -af "aformat=sample_fmts=s16:sample_rates=44100" -acodec libvorbis "conv/${file%.ogg}.ogg" do ffmpeg -i "${file}" -af "aformat=sample_fmts=s16:sample_rates=44100" -acodec libvorbis "conv/${file%.ogg}.ogg"
done done