initial commit of media shit
This commit is contained in:
commit
8c0a5e3aa7
38 changed files with 9195 additions and 0 deletions
18
update_voice.zsh
Executable file
18
update_voice.zsh
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/bin/zsh
|
||||
|
||||
mkdir voice
|
||||
find Voice -name \*.wav -delete
|
||||
find Voice -name \*.hca -delete
|
||||
for i in Voice/*.acb;
|
||||
do
|
||||
I=$(basename -s .acb $i)
|
||||
IFS='_'; read -r char sec <<< "$I"
|
||||
mkdir -p voice/${char}/${sec}
|
||||
mono acb_extract.exe "$i"
|
||||
./clHCA Voice/_vgmt_acb_ext_${I}/**/*.hca
|
||||
OUTDIR="voice/${char}/${sec}/"
|
||||
#OUTFILE="$(basename -s .wav ${
|
||||
#FIXME
|
||||
find Voice/_vgmt_acb_ext_${I}/ -name \*.wav | parallel ffmpeg -i {} -acodec libopus -ab 192k -af aresample=48000 voice/${char}/${sec}/{/.}.opus -n
|
||||
done
|
||||
#rename 's/\/\d{5}_([^\/]+.opus)$/\/$1/' voice/**/*.opus
|
||||
Loading…
Add table
Add a link
Reference in a new issue