Solved Encoding Additional Audio Track Into an MP4 File

TheDeerDude

New member
Power User
VIP
Local time
5:49 PM
Messages
204
Let's say I have an MP4 file with video and a single soundtrack for "English". How could I possibly add (encode?) another track, with a different language, into the existing MP4 file, so that it can be selected in WMP or VLC under the audio/languages menu?

It'd be much more efficient than having 2 or more large files just for different languages
 

My Computer

OS
Windows 7 x64
You can add a 2nd soundtrack with Avidemux (despite the name, it also handles mp4, mkv etc - just remember to set the output container). The video can be left on copy.

avidemux | SourceForge.net

it also does basic editing, trimming etc
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
self build
OS
Windows 7 Pro x64 sp1
CPU
i7 4770K
Motherboard
MSI B85M-E45
Memory
8GB Corsair Vengeance 1600MHz
Graphics Card(s)
onboard
Monitor(s) Displays
LG 27MP35
Screen Resolution
1920-1080
Hard Drives
Seagate 2TB
PSU
Cooler Master GX 750
Case
Antec 300
Cooling
Seidon 120V
Internet Speed
60/18
Antivirus
MSE
Browser
Firefox
Sweet, that's a keeper. Those other options will come handy in the future. Thank you so much, it does just what I need it to :)

For future reference:
Menu > Audio > Select Track (Select 2nd Track > "... add audio track")
 

My Computer

OS
Windows 7 x64
re : Avidemux editing/trimming - if you navigate through a movie using up/down arrows, so you are always on an I frame when cutting, no recode is required. Just leave the video + audio on copy, and it's really fast. Cutting on any other type of frame means a recode.

Another use for Avidemux is boosting audio in a quiet movie. Leave the video on copy and use the audio filter to boost, say, 12 dB. You can also adjust audio delay to fix out of sync problems.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
self build
OS
Windows 7 Pro x64 sp1
CPU
i7 4770K
Motherboard
MSI B85M-E45
Memory
8GB Corsair Vengeance 1600MHz
Graphics Card(s)
onboard
Monitor(s) Displays
LG 27MP35
Screen Resolution
1920-1080
Hard Drives
Seagate 2TB
PSU
Cooler Master GX 750
Case
Antec 300
Cooling
Seidon 120V
Internet Speed
60/18
Antivirus
MSE
Browser
Firefox
Thanks for those tips. The second one came in handy, however the audio is still misaligned later on, it seems that the video is slightly slower than the audio. That's not as easy to fix unfortunately.
 

My Computer

OS
Windows 7 x64
As a temp fix for out of sync audio, VLC player lets you adjust audio delay +/- in 50ms steps on the fly. Hot keys are J/K. If the audio is out by a constant amount, you can get the value this way to use in Avidemux for recoding.

With the problem you mention of the soundtrack being the wrong length, although you can stretch/shrink an audio track using, say, Audacity (Effects, change tempo), then remux it, I've never had much success with that.

VideoLAN - VLC: Official site - Free multimedia solutions for all OS!
Audacity: Free Audio Editor and Recorder

VLC is also useful for quiet movies - using the mouse scroll wheel, you can push the volume upto 200%. Saves recoding.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
self build
OS
Windows 7 Pro x64 sp1
CPU
i7 4770K
Motherboard
MSI B85M-E45
Memory
8GB Corsair Vengeance 1600MHz
Graphics Card(s)
onboard
Monitor(s) Displays
LG 27MP35
Screen Resolution
1920-1080
Hard Drives
Seagate 2TB
PSU
Cooler Master GX 750
Case
Antec 300
Cooling
Seidon 120V
Internet Speed
60/18
Antivirus
MSE
Browser
Firefox
I've been using both - VLC and Audacity for a while now, but I'm just starting to discover their functionality other than video playback and sound recording, haha.

I will try compressing and altering the audio, so it's slightly shorter but sounds the same, that will do for me.

Thank you for being so helpful
 

My Computer

OS
Windows 7 x64
Back
Top