FFMPEG Command to Add Multiple Audio Tracks in Video Without Removing Original Audio in Terminal
Jun 3, 2025
ffmpeg -i 2.mp4 -stream_loop -1 -i beep.mp3 -map 0:v -map 0:a -map 1:a -c:v copy -c:a aac -shortest output.mp4
Show More Show Less View Video Transcript
0:00
uh hello guys welcome to this video So
0:02
in this video I will show you how to add
0:04
uh multiple audio tracks to your
0:07
existing video without uh uh removing
0:11
the original audio file So if you have
0:14
existing video let's suppose I have this
0:16
video file hello guys which contains a
0:19
single audio track So you can see only a
0:21
single audio track is there So now what
0:24
this command will do you will it will
0:26
add multiple audio tracks to this video
0:29
without having to open any sort of video
0:32
editor So there is this command right
0:34
here I've given this command in the
0:35
description of this video So it uses
0:38
ffmppg Just go to your
0:40
terminal And now let me just uh execute
0:44
this
0:46
command So it will actually add the
0:49
second audio track which is essentially
0:51
this beep file
0:56
So it will add this beep sound as a
0:58
second audio track So this is a command
1:01
here If I execute
1:05
this So just wait the command is
1:08
executing it So now in the output video
1:10
file you will see you will be able to
1:12
switch between different audio tracks If
1:15
I open this
1:16
video in the hello media player you will
1:19
see there is an option right here for
1:21
audio tracks If I open this you will see
1:24
now there will be two audio tracks which
1:26
will be there Now you can switch between
1:28
which audio track you want to
1:32
listen This is a beep one and this is
1:34
was the first
1:41
So this is really useful guys because uh
1:43
in
1:44
different companies if they
1:47
record a video they will record multiple
1:51
audio files for different languages
1:54
Sometimes if you are uploading video in
1:57
different languages then it will be a
1:59
very useful command because you can
2:01
record audio in different languages as a
2:04
different audio tracks You will see that
2:06
this is the first one this is the second
2:09
one So you can easily switch
2:12
between you can see that if so so
2:16
this so this command automatically does
2:19
this add multiple audio tracks Now let
2:22
me explain you what this is actually
2:24
doing
2:26
So essentially it is taking the input
2:29
file here ffmppg- i the name of the file
2:33
Then it is using dash
2:35
stream_loop It is looping through the
2:37
second audio track which is essentially
2:40
beep.mpp3 and it is encoding copying the
2:43
encoding
2:44
settings like
2:46
this adding it as a second audio
2:51
track So the command is very simple guys
2:54
uh the link uh I have given the command
2:56
in the description of this video So this
3:00
actually adds multiple audio tracks
3:02
without removing the original audio So
3:05
thank you very much for watching this
3:06
video and also check out my website
3:09
freemediatools.com
3:11
uh which contains thousands of tools
#Music & Audio
#Music Videos
#Software
#Multimedia Software
#Voice & Video Chat
#Podcasts
#Video Sharing
