Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have and avi file and an ac3 file that contains an alternate audio stream. I run mplayer like:

mplayer -audiofile foo.ac3 bar.avi

mplayer takes the audio stream from the ac3 file as expected, but when I try to scroll the video using arrows or pgup/pgdown keys, the audio gets desynced: mplayer just starts playing the audio stream from the beginning.

Do I have to pass any additional command line arguments in order to make it scroll properly without desyncing audio?

share|improve this question
My mplayer scrolls both video and external audiofile. – Vi. Mar 18 '10 at 18:56
@Vi: what version are you using? Maybe I have an outdated one. – geek Mar 18 '10 at 19:25
MPlayer UNKNOWN-4.3.2 (C) 2000-2009 MPlayer Team (built from SVN) MPlayer SVN-r29142-4.3.3 (C) 2000-2009 MPlayer Team (Debian squeeze's, but not up to date). Both are scrolling both audiofile and video. – Vi. Mar 18 '10 at 20:02
Mine is more recent (r29390) and I get audio desynced. – geek Mar 18 '10 at 20:05
May be it is because I'm testing not with that ac3 format but with plain wav or mp3? Try to generate simpler sound sox -n qqq.wav synth 440 and test with it. – Vi. Mar 18 '10 at 20:13

Try to process your video through the mencoder which also supports -audiofile option. I hope the resulting file will be scrollable.

share|improve this answer
My goal is to be able to watch the video with an alternate audio stream without doing any processing. – geek Mar 18 '10 at 19:26

Your Answer


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.