Monday, January 13, 2020

6 mono waves to 5.1 AC3 using ffmpeg

Instead of using WAV to AC3 on Windows, a cross-platform solution using ffmpeg - from http://ankitshah009.blogspot.com/2015/02/useful-ffmpeg-commands.html

ffmpeg -i front_left.wav -i front_right.wav -i front_center.wav -i lfe.wav -i back_left.wav -i back_right.wav \
-filter_complex "[0:a][1:a][2:a][3:a][4:a][5:a]amerge=inputs=6[aout]" -map "[aout]" output.wav

So, in our case,

ffmpeg -i Eng.wav -i Hin.wav -i Tel.wav -i Eng.wav -i Eng.wav -i Tel.wav \
-filter_complex "[0:a][1:a][2:a][3:a][4:a][5:a]amerge=inputs=6[aout]" \
-map "[aout]"  -acodec ac3 directaudio.ac3

in a single step.


No comments:

Post a Comment