Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94577 - Mplayer out of sync with ALSA libs 1.0.9
Summary: Mplayer out of sync with ALSA libs 1.0.9
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Other
: High major
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-30 22:07 UTC by Ginsu
Modified: 2006-06-22 18:13 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ginsu 2005-05-30 22:07:43 UTC
When using ALSA libs 1.0.8 mplayer is fine.  But if I upgrade to 1.0.9 or any of
the rc releases before 1.0.9 was released the sound and the video are desynced.
 I've tried all different combinations of static in kernel drivers, modular
kernel drivers, and alsa-driver.  All provide the same results.  Upon
downgrading to 1.0.8 mplayer acts fine.

Reproducible: Always
Steps to Reproduce:




Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.5-r0, 2.6.12-rc5-ck1 i686)
=================================================================
System uname: 2.6.12-rc5-ck1 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
Gentoo Base System version 1.7.1
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16-r1
sys-devel/libtool:   1.5.18
virtual/os-headers:  2.6.11-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mfpmath=sse -fomit-frame-pointer -ftracer -fweb -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -mfpmath=sse -fomit-frame-pointer -ftracer -fweb
-pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks noinfo sandbox sfperms"
GENTOO_MIRRORS="http://mirror.espri.arizona.edu/gentoo/"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://mirror.espri.arizona.edu/gentoo-portage"
USE="x86 X alsa apache2 cdr cups curl gtk gtk2 java jpeg junit lirc mmx mysql
ncurses nptl opengl pcre perl png python readline sse ssl win32codecs xml2 xv
xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Reimar Döffinger 2005-06-01 13:16:42 UTC
try -srate 44100 and -srate 48000, I heard it fixed problems sometimes. Does
this also happen with the OSS emulation?
Comment 2 Ginsu 2005-06-14 17:51:30 UTC
-srate 44100 looks like it works, but woudlnt that mean there is a bug somewhere
if it WAS working and now it can't detect it properly or something?
Comment 3 Reimar Döffinger 2005-06-16 11:32:56 UTC
(In reply to comment #2)
> -srate 44100 looks like it works, but woudlnt that mean there is a bug somewhere
> if it WAS working and now it can't detect it properly or something?

I never know with alsa, but maybe your soundcard driver claims it can do 48kHz
audio but in reality can't?
Maybe try other video players, and try with and without dmix. But actually I'd
suggest using OSS emulation, it works much better in most cases.
Comment 4 Ginsu 2005-06-16 17:40:08 UTC
Making mplayer use oss also seems to fix it, but I still think its a bug
somewhere in something.  Nothing wrong with my driver cuz it worked fine with
alsa libs 1.0.8.
Comment 5 Luca Barbato gentoo-dev 2005-06-17 09:40:33 UTC
try to use the updated drivers
Comment 6 Ginsu 2005-06-21 01:06:14 UTC
So it seems ALSA 1.0.9 enables dmix by default and acording to the docs, dmix
defaults to 48000.  I've been googling and wiki'ing and just can't seem to find
the right asoundrc file to get it to 44100.  But the fixes in the mplayer config
"fix" it.
Comment 7 genbug 2005-07-01 06:07:43 UTC
so what is req here. If alsa 1.09 forces dmix , does it not provide a working 
config?

I never managed to get dmix to work so say the built-in mixing as a way out.

The result is sound is now completely broken (jumps stuttery unstable) and even 
retro-grading to 1.08 now shows the same issues.

Is there possibley some residue that breaks 1.08. How to clean up and get back.

Mplayer is now _unusable_ on any config. eg mp3 only...

Video: no video
Starting playback...
alsa-space: xrun of at least 6.499 msecs. resetting stream                      
alsa-space: xrun of at least 8.741 msecs. resetting stream                      
A:   2.7 (02.7)  0.7% 77%                                                       

MPlayer interrupted by signal 2 in module: play_audio
alsa-uninit: pcm closed
Comment 8 Martin 2005-08-14 16:15:58 UTC
This sounds familiar - I have a sound latency issue in alsa-libs 1.0.9 with
bzflag. Funny is, it is only with my sound blaster (snd-ens1371). With onboard
ac97-sound (snd-via82xx) there is no latency. with alsa 1.0.8, I
Comment 9 Martin 2005-08-14 16:15:58 UTC
This sounds familiar - I have a sound latency issue in alsa-libs 1.0.9 with
bzflag. Funny is, it is only with my sound blaster (snd-ens1371). With onboard
ac97-sound (snd-via82xx) there is no latency. with alsa 1.0.8, I´m fine with
both cards. See bug #100276.
Comment 10 Tom P. 2005-09-03 00:10:24 UTC
Adding another datapoint.  I have sync issues using amd64 with nvidia onboard
using intel8x0 kernel driver.  According to
http://www.alsa-project.org/alsa-doc/index.php?vendor=vendor-Nvidia#matrix this
chip always resamples to 48khz.  

Downgraded to 1.08 and no problems.
Comment 11 Michele Schiavo 2005-10-18 14:32:44 UTC
me too i have the same problem

Portage 2.0.51.22-r3 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.
6.13-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.13-gentoo-r3 x86_64 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -mtune=nocona -march=nocona -pipe -fomit-frame-pointer -mfpmath=sse "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/shar
e/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/li
b64/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /u
sr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/te
xmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/alias /var/q
mail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=nocona -march=nocona -pipe -fomit-frame-pointer -mfpmath=s se"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://pandemonium.tiscali.de/pub/gentoo/ http://pandemonium.tis
cali.de/pub/gentoo/ http://mirror.switch.ch/mirror/gentoo/"
LANG="it_IT.UTF-8"
LINGUAS="ar bg bn br bs ca cs cy da de el en_GB eo es   et eu fi fr fy ga he hi
 hsb hu is it lt mk     nb nds nl nn pa pl pt pt_BR ro ru se sk sl sr   sr@Latn
 sv ta tg tr uk zh_CN"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X a52 aac aalib acpi alsa apache2 arts audiofile authdaemon avi bash
-completion bcmath berkdb bidi bitmap-fonts bluetooth bmp bonobo bzip2 caps cdd
a cddb cdio cdr cgi chroot cpudetection crypt cups curl dbm dbus directfb dts d
v dvd dvdr dvdread eds emacs emboss encode esd ethereal evo exif fam fame fbcon
 ffmpeg fftw firefox flac flash foomaticdb fortran freetype ftp gb gcj gd gdbm
gif gimp gimpprint gnome gnutls gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile ha
l ieee1394 imagemagick imap imlib ithreads jack java jpeg junit kde libcaca lib
clamav libedit libg++ libsamplerate libwww live lm_sensors logrotate lzo lzw lz
w-tiff mad maildir matroska mikmod mjpeg mms motif mozilla mp3 mpeg msn mule mx
 mysql ncurses nls nsplugin ogg oggvorbis opengl oss pam pdf pdflib perl php pi
c png ppds python qmail qt quicktime quotas rdesktop readline real recode samba
 scanner sdl session slang smp sndfile spamassassin speex spell ssl stream svg
symlink tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts unic
ode usb v4l vcd vhosts vorbis wifi wxgtk1 wxwindows xine xml xml2 xmms xpm xv x
vid yahoo zlib linguas_ar linguas_bg linguas_bn linguas_br linguas_bs linguas_c
a linguas_cs linguas_cy linguas_da linguas_de linguas_el linguas_en_GB linguas_
eo linguas_es linguas_et linguas_eu linguas_fi linguas_fr linguas_fy linguas_ga
 linguas_he linguas_hi linguas_hsb linguas_hu linguas_is linguas_it linguas_lt
linguas_mk linguas_nb linguas_nds linguas_nl linguas_nn linguas_pa linguas_pl l
inguas_pt linguas_pt_BR linguas_ro linguas_ru linguas_se linguas_sk linguas_sl
linguas_sr linguas_sr@Latn linguas_sv linguas_ta linguas_tg linguas_tr linguas_
uk linguas_zh_CN userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
Comment 12 Michele Schiavo 2005-10-18 14:36:31 UTC
no alsa driver but last kernel
Comment 13 Steve Dibb (RETIRED) gentoo-dev 2006-06-22 18:13:14 UTC
Cleaning out old bugs, the alsa libs mentioned arent even in the tree anymore. :)

Thanks all