initial commit of media shit

This commit is contained in:
louis 2020-02-18 18:44:58 -05:00
commit 8c0a5e3aa7
38 changed files with 9195 additions and 0 deletions

14
update_se.zsh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/zsh
mkdir se
find Se -name \*.wav -delete
find Se -name \*.hca -delete
for i in Se/*.acb;
do
I=$(basename -s .acb $i)
IFS='_'; read -r char sec <<< "$I"
mkdir -p se/${char}/${sec}
mono acb_extract.exe "$i"
./clHCA Se/_vgmt_acb_ext_${I}/acb/awb/*.hca
find Se/_vgmt_acb_ext_${I}/acb/awb -name \*.wav | parallel ffmpeg -i {} -acodec libopus -ab 192k -af aresample=48000 se/${char}/${sec}/{/.}.opus -n
done