Created
January 28, 2020 07:46
-
-
Save kassoulet/780946f9b6fa5d28e4e84d8c4d378e76 to your computer and use it in GitHub Desktop.
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
# Convert Ardour left+right wavs to stereo flac files | |
for f in *%L.wav; | |
do | |
left=$f | |
right=$(echo $f | sed s/%L/%R/) | |
stereo=$(echo $f | sed s/%L.wav/.flac/) | |
ffmpeg -y -i "$left" -i "$right" -filter_complex "[0:a][1:a]join=inputs=2:channel_layout=stereo[a]" -map "[a]" -acodec flac "$stereo" # && rm -f "$left" "$right" | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment