How to view video file with external ac3 audio track?

Solution 1:

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.

Solution 2:

First install smplayer:

sudo apt-get install smplayer

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

enter image description here

Solution 3:

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

mplayer video.mp4 -audiofile sound.mp3

Solution 4:

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.