19

I can listen to view the video with built-in audio (ac3) and listen to the audio track as regular sound file, but how to do these same time?

Can't see such options in Totem, Kplayer, VLC, KMplayer, Gnome-Mplayer.

Also I can't find how to do this using mplayer, though I may be lost in its huge man file.

Thanks.

7 Answers 7

12

And here's how to do this with VLC via the command line:

vlc videofile --input-slave audiofile

, then select the audio channel.

NB. Though not strictly related, --sub-file <subfile> will also load subtitles.

2
  • I've got silence when choosing a second track. While opening it as standalone track does produce sound.
    – holms
    Jun 27, 2022 at 0:20
  • Too hard to debug it from here. If that happens for one particular case, I would suggest to try a different player (see below); if it happens regularly, I would start with updating the vlc version. Jun 28, 2022 at 3:36
11

First install smplayer:

sudo apt-get install smplayer

Then open the video file and select audio > load external audio file

enter image description here

3
  • Thanks. Another problem: for some reason after selecting external file playback becomes extremely slow. Unloading restores normal playback. Any ideas? Feb 11, 2011 at 18:27
  • @Sergii: Re-opening the thing sometimes helps (if You have save settings on in the preferences -- You probably do).
    – Adobe
    Nov 13, 2012 at 14:23
  • SMPlayer is awesome. Somehow VLC gives me really bad image with external audio, SMPlayer does the job well.
    – xealits
    Oct 24, 2014 at 21:09
9

If you want to do this with mplayer from the command line, use the -audiofile flag. Example:

mplayer video.mp4 -audiofile sound.mp3
3

As workaround for other possible readers of this question.

Used advices from this thread to add the sound track into the video. This works perfectly.

2

If you do not want to edit tracks in your container, but just load an external audio track you have, then VLC definitely have that feature.

Here's how to do that:

Choose your video file first

 — File: Add...

and add additional audio file to it

 — Browse...

which opens confusing the same window (itself). Here just

 — File: Add...

to choose your audio file and confirm it by

 — Select

button. Do not press Browse button in the second window!

Now you should have both paths to your video and audio files in one window (the first one). Now press

 — Play

button to play video with external audio track. During playback you can choose your second audio track

Audio — Audio Track
2

In kmplayer:

  1. right click on screen
  2. open>load external audio once the audio is loaded right click again and this time select filters and select kmp stream switcher and select your preferred audio

This should work.

1

Totem does have an "load external file" option for audio...

It is the second item from the top in the Audio menu (Main or Context)

2
  • Sorry, but there's definitely no such option in 2.32 shipped with my Ubuntu 10.10. It just can switch between audio tracks that already found. Feb 11, 2011 at 20:20
  • @Sergii...Oops! my mistake :( ...that's what happens with lack of sleep... I got my video players mixed up. I was up all night tracking down how-to mux a text subtitle stream (.srt) into an mp4 .. I found it :) As this is a video question here'e the link for anyone who is interested (unix.stackexchange.com/questions/7212/…) ...
    – Peter.O
    Feb 12, 2011 at 6:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .