Created
July 17, 2016 12:01
-
-
Save tomoyanonymous/84567b49be441916d4465922a393a8db to your computer and use it in GitHub Desktop.
Protoolsで出てきたデュアルモノラルファイルをステレオに変換する便利な奴
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Protoolsで出てきたデュアルモノラルファイルをステレオに変換する便利な奴 | |
mkdir merged | |
array=($(find ./ -name '*.L.wav')) | |
outdir="merged" | |
for obj in "${array[@]}"; do | |
echo $obj | |
lwav=$obj | |
rwav=$(echo $obj | sed -e "s/.L.wav/.R.wav/g") | |
owav=$(printf "%s/%s" $outdir $(echo $obj | sed -e "s/.L.wav/.wav/g")) | |
ffmpeg -i $lwav -i $rwav -filter_complex "[0:a][1:a]amerge=inputs=2[aout]" -map "[aout]" -c:a pcm_s24le $owav -y | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ビットデプスなどは適宜書き換えてください、後多分sudoで実行しないとうまくいかない