You are not logged in.

#1 2010-09-23 23:31:59

duke11235
Member
Registered: 2009-10-09
Posts: 221

Mplayer Sound/Audio Sync Inaccurate

Everything looks great, but the audio is several seconds ahead of the video, but the video runs at normal speed. I tried -autosync 30, but it still failed. I have a 15gb bluray rip of The Dark Knight.  I am feeding mplayer to jack. I have a 2.0ghz Macbook with a NVIDIA graphics card, and I've run videos like this before. I think mplayer is confused. Is there a format to convert to or a better program to try this with?

Offline

#2 2010-09-23 23:35:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Mplayer Sound/Audio Sync Inaccurate

You can try other video players http://wiki.archlinux.org/index.php/Com … eo_Players

Are you running the stock mplayer or e.g. some version from AUR?

Offline

#3 2010-09-23 23:54:29

Army
Member
Registered: 2007-12-07
Posts: 1,784

Re: Mplayer Sound/Audio Sync Inaccurate

Why do you use jack to play videos with mplayer?! I recommend to use pure alsa! In case the rip is well done the codec shouldn't be the culprit. Would you mind showing your whole ~/.mplayer/config ?

Offline

#4 2010-09-24 03:23:55

duke11235
Member
Registered: 2009-10-09
Posts: 221

Re: Mplayer Sound/Audio Sync Inaccurate

Here is my config:

# default configuration that applies to every file
[default]
# use X11 for video output
vo=x11
# use also for audio output
ao=jack
# ao=oss # Use OSS4
# prefer using six channels audio
channels = 2
# scale the subtitles to the 3% of the screen size
subfont-text-scale = 3
# never use font config
nofontconfig = 1
# add black borders so the movies have the same aspect ratio of the monitor
# for wide screen monitors
vf-add=expand=::::1:16/9:16
# for non wide screen traditional monitors
#vf-add=expand=::::1:4/3:16

#profile for up-mixing two channels audio to six channels
# use -profile 2chto6ch to activate
[2chto6ch]
af-add=pan=6:1:0:.4:0:.6:2:0:1:0:.4:.6:2
 
#profile to down-mixing six channels audio to two channels
# use -profile 6chto2ch to activate
[6chto2ch]
af-add=pan=2:0.7:0:0:0.7:0.5:0:0:0.5:0.6:0.6:0:0

# Disable screensaver.
heartbeat-cmd="xscreensaver-command -deactivate &" # stop xscreensaver
stop-xscreensaver="yes" # stop gnome-screensaver

I tried mplayer with alsa and jack as well. The video works great on Mac under VLC. Linux VLC stubbornly refuses to ouput sound.

Offline

Board footer

Powered by FluxBB