Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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.

share|improve this question
add comment

6 Answers

First install smplayer

sudo apt-get install smplayer

Then open the video file in it.After that you can select audio > load external audio file... form the menu and load the audio file.

enter image description here

share|improve this answer
    
Thanks. Another problem: for some reason after selecting external file playback becomes extremely slow. Unloading restores normal playback. Any ideas? –  Sergii Feb 11 '11 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 '12 at 14:23
add comment

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.

share|improve this answer
add comment
up vote 3 down vote accepted

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.

share|improve this answer
add comment

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
share|improve this answer
add comment

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

mplayer video.mp4 -audiofile sound.mp3
share|improve this answer
add comment

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)

share|improve this answer
    
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. –  Sergii Feb 11 '11 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 '11 at 6:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.