Page 1 of 1
Merging Estim Audio and Video to surround file
Posted: Thu Aug 11, 2022 6:35 pm
by Robohac
Hi there,
i played trough some Surround sound Estim vids and was wondering if anyone could give me a hint how to use ffmpeg to combine estim mp3 and a tease Video to one surround file, where the Estim track is on the back surround channels. I know there are some players that sync audio and video, but that is not as convenient as simply launching a Video.
Any answers would be really helpful.
Re: Merging Estim Audio and Video to surround file
Posted: Thu Aug 11, 2022 7:56 pm
by digitalparkinglot
I may be the creator of several of the surround sound estim videos that you've seen. I do it in Adobe Premier Pro. It's really easy to do it there. You might be able to find and old version or a free version

. I'm afraid I don't know enough about ffmpeg to tell you how to do it, but I know I've seen others talk about how they do it using ffmpeg.
-digitalparkinglot
Re: Merging Estim Audio and Video to surround file
Posted: Thu Aug 11, 2022 10:52 pm
by NycNum
Code: Select all
ffmpeg -i "$1" -i "$2" -codec:v copy -codec:a aac -filter_complex '[0:a][1:a]join=inputs=2:channel_layout=quad:map=0.0-FL|0.1-FR|1.0-BL|1.1-BR[a]' -map 0:v -map '[a]' "$3"
The video file goes in $1, the estim audio in $2 and the output file in $3. This creates 4.0 audio channels with the original audio in the front left/right and the estim in the rear left/right channels.
The video is passed through as is without reencoding, so this is pretty fast. The audio is reencoded as aac because the input files are usually in mp3 format.
Re: Merging Estim Audio and Video to surround file
Posted: Thu Aug 11, 2022 11:18 pm
by 47dahc
Check the post in my signature
Re: Merging Estim Audio and Video to surround file
Posted: Fri Aug 12, 2022 1:55 am
by zebbg69
NycNum wrote: Thu Aug 11, 2022 10:52 pm
Code: Select all
ffmpeg -i "$1" -i "$2" -codec:v copy -codec:a aac -filter_complex '[0:a][1:a]join=inputs=2:channel_layout=quad:map=0.0-FL|0.1-FR|1.0-BL|1.1-BR[a]' -map 0:v -map '[a]' "$3"
For large videos, remove "-codec:v copy" to get ffmpeg's default re-encoding which is very good at reducing file size at the same quality. If your output file ends in .mp4, it will automatically go to h.264 mpeg.
You can pick a different video format with "-codec:v blah" where "blah" is the codec you want, instead of "copy." To find out your ffmpeg's available codecs and formats, enter "ffmpeg -codecs" and "ffmpeg -formats."