20

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 Answers7

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.

ジョージ
  • 399
  • 6
  • 12
12

First install smplayer:

sudo apt-get install smplayer

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

enter image description here

Pedram
  • 5,811
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.

techraf
  • 3,316
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)

Peter.O
  • 25,251