Fixed massive music files on iOS, now using MP3

This commit is contained in:
Anuken
2019-08-16 14:49:35 -04:00
parent a13f8ed05f
commit dc435d88f4
2 changed files with 13 additions and 5 deletions

View File

@@ -1,7 +1,15 @@
#!/usr/bin/bash
#convert ogg to .caf files for iOS
for i in $1/*.ogg; do
cd $1
#convert ogg to .mp3 files for iOS
for i in *.ogg; do
echo $i
ffmpeg -i "$i" "${i%.*}.caf"
done
ffmpeg -i "$i" "OUT_${i%.*}.mp3"
done
find . -type f ! -name "OUT_*" -delete
for file in OUT_*; do mv "$file" "${file#OUT_}"; done;
cd ../../