Page 1 of 1

Tip: how to combine 2 audios + video in a single file

Posted: Tue Dec 07, 2021 10:15 pm
by ElectroToto
Hello,

I would like to share how I combine the estim track with the music/original track into a single file.
The final file will have two audio track: the original and a one call estim

The operation use ffmeg in command line mode ( on windows on Linux). option are not very simple.
The following work for me:

ffmpeg-4.4-full_build\bin\ffmpeg -i LaLuna.m4v -i LaLuna.mp3 -map 0 -map 1:a -c:v copy -shortest -metadata:s:a:1 title="estim" LaLunaT2.mp4

This take LaLuna.m4v ( with one video track, and 1 audio/original track) and add a second audio track ( Laluna.mp3 (estim))
in VLC simply choose your audio track.

I hope it will be useful to other.

++
E.T.

Re: Tip: how to combine 2 audios + video in a single file

Posted: Thu Dec 09, 2021 4:38 am
by fbn02
i dont create ch videos but i do edit my go pro footage from some motorcycle rides

i use kdenlive, its free and lets you do 2 audio and 2 video tracks possibly more

FBN

Re: Tip: how to combine 2 audios + video in a single file

Posted: Thu Dec 09, 2021 1:57 pm
by Nodoro
Thanks ElectroToto, I needed this some times ago and couldn't make it work.
On a related topic, do you have any idea on how to play everything (video, audio and estim signal) at the same time on linux ? For now I use pavucontrol to choose where each application sent its audio signal (bluetooth of audio jack) but I still have to manually start two instances of VLC and press play at the same time… not very convenient :-/

nodoro