Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Severe problems with gstreamer and mplayer...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Guinpen
Guru
Guru


Joined: 08 Dec 2004
Posts: 393

PostPosted: Sun May 15, 2005 9:17 pm    Post subject: [SOLVED] Severe problems with gstreamer and mplayer... Reply with quote

SOLVED: dmix caused the problem

Hello,
When running any app that uses the gstreamer engine to play something over my Audigy 2 NX (see my .asoundrc below), it tends to hang randomly - when playing, when stopping, or during playing. It seems fine with my intel8x0. When running any app (even the same app) with xine, things work OK with the Audigy as long as I'm using audigy_rate - with audigy_dmix, the programs hang in a similar way as with gstreamer (altohugh with some, say xine-ui the sound keeps playing but the app does not respond). The behavior is the same no matter whether I play a video or a plain mp3. Mplayer works just fine on all devices wit some video files (some divx and xvid) but not with others (mpeg, mwv) - with them, even a mouse move can halt the program sometimes, while at other times it seems to run fine, and then halts again... it seems random.
I'm completely confused. The only thing I can think of is CFLAGS (my kernel is compiled without any kernel hacking though); that's why I'm including a make.conf as well. I was about to try VLC but it wants to emerge wxGTK, cvs, mozilla, and who knows what else, so I'll skip.
Any help will be appreciated!

.asoundrc:
Code:

pcm.intel {
   type hw
   card 0
   device 0
}

ctl.intel {
   type hw
   card 0
}

pcm.intel_dmix {
   type dmix
   ipc_key 1234
   slave {
      pcm intel
      period_time 0
      period_size 1024
      buffer_size 4096
   }
}

ctl.intel_dmix {
   type hw
   card 0
}

pcm.audigy {
   type hw
   card 1
   device 0
}

ctl.audigy {
   type hw
   card 1
}

pcm.audigy_dmix {
   type dmix
   ipc_key 5678
   slave {
      pcm audigy
      period_time 0
      period_size 1024
      buffer_size 4096
      rate 48000
   }
}

ctl.audigy_dmix {
   type hw
   card 1
}

pcm.!default {
   type plug
   slave.pcm audigy_dmix
}

pcm.audigy_rate {
   type rate
   slave {
      pcm audigy
      rate 48000
   }
}

ctl.audigy_rate {
   type hw
   card 1
}


make.conf:
Code:

ACCEPT_KEYWORDS="~x86"
ARCH="x86"
CFLAGS="-O2 -march=pentium-m -mtune=pentium-m -pipe -ftracer -fomit-frame-pointer -ffast-math -momit-leaf-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS=${CFLAGS}
LDFLAGS="-Wl,-O1"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
RSYNC_RETRIES="3"
RSYNC_TIMEOUT="120"
MAKEOPTS="-j1"
PORTAGE_NICENESS="3"
AUTOCLEAN="yes"
GENTOO_MIRRORS="ftp://mirror.iu-bremen.de/gentoo/mirror/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
USE="-3dfx -3dnow X -Xaw3d a52 aac -aalib -accessibility -acl acpi -adabas -adns -afs -aim alsa -altivec -apache2 -apm -arts atlas audiofile avi bash-completion -berkdb -bidi bindist -birdstep -bluetooth -bmp -bonobo bzlib calendar -canna -caps -cdb -cdparanoia cdr -chasen -cjk cpdflib crypt -cscope ctype cups -curl -curlwrappers -db2 -dba -dbase -dbm -dbmaker -debug dedicated dga dio directfb divx4linux doc -dv -dvb dvd -dvdr dvdread -emacs -emacs-w3 -emboss -empress -empress-bcs -emul-linux-x86 encode -esd -esoob -ethereal -ev6 -evo -examples exif -expat -fam -fastcgi fbcon -fdftk ffmpeg -fftw -filepro -firebird flac flash -flatfile -foomaticdb -freetds -freewnn -frontbase ftp -gb -gcj gd -gd-external -gdbm -geoip ggi gif -ginac glut -gmp -gnome -gnutls gphoto2 -gpm -gps -gstreamer gtk gtk2 gtkhtml -guile hal -hardened -hardenedphp howl -hyperwave-api -icc -icc-pgo iconv icq ieee1394 -ifc imagemagick imap imlib -informix -ingres -inifile -innodb -interbase -iodbc -ipv6 -jabber -jack java javascript  jikes -joystick jpeg junit kde kdeenablefinal -kdexdeltas -leim -lesstif libcaca -libedit -libg++ -libgda libwww -lirc lm_sensors -m17n-lib mad -maildir -mailwrapper matroska -matrox -mbox mcal -mcve -memlimit -mhash -migemo -mikmod -milter ming -minimal -mmap mmx mmx2 -mng -mnogosearch motif mozilla mp3 mpeg mpi -msession msn -msql -mssql -mule -multilib -mysql -mysqli -nas ncurses -netboot -netcdf -neXt -nhc98 nis -nls nocd -nocxx nptl -oci8 -odbc offensive -ofx ogg openal opengl -oracle7 -oracle -osc -oscar -oss -ovrimos pcmcia -pcntl -pcre -pda pdflib perl -pfpro php pic pie plotutils png portaudio posix -postgres ppds prelude -profile python -qdbm qt quicktime readline -recode -ruby samba -sapdb -sasl scanner sdl session sharedext sharedmem -shorten simplexml slang -slp -smardcard sndfile -snmp -soap sockets -socks5 -solid -sox -speex spell spl -sqlite sse sse2 ssl svg svga -sybase -sybace-ct symlink -sysvipc -szip tcltk tcpd -tetex theora threads -tidy tiff tokenizer truetype trusted -uclibc unicode usb -usepackagedmakefiles v4l -vanilla vcd -vhosts videos -voodoo3 vorbis -wavelan -wddx wifi wmf wxwindows -xface xine -xinerama xml xml2 -xmms -xpm -xprint xsl xv xvid -yahoo -yaz -zeo zlib -alpha -amd64 -arm -hppa -ia64 -mips -ppc -ppc64 -ppc-macos -s390 -sh -sparc x86"
ALSA_CARDS="intel8x0,usb-audio"
VIDEO_CARDS="nvidia"


Edit: Actually xine (used by xine-ui) crashes even with the audigy_rate device. Also, when it does not crash (in any application), it often (if not always) fails to release the device, and without dmix, I have to restart the alsa server. I'm using the latest alsa-driver btw. I have no clue where the problem is. I'm ready to take a drastic approach if there is one... but I don't think simply recompiling everything will help much by itself.

Also, cedega for instance (with Max Payne 2) can't use audigy_dmix for some reason, but works beautifully with audigy_rate, so I think alsa is not the problem here...


Last edited by Guinpen on Sun May 22, 2005 2:55 pm; edited 1 time in total
Back to top
View user's profile Send private message
The DJ
n00b
n00b


Joined: 06 Nov 2002
Posts: 74

PostPosted: Tue May 17, 2005 7:43 pm    Post subject: Reply with quote

You could also "unset" some of the USE variables you don't want to use in the specific case of VLC you know......
i mean. that's what they are there for. with VLC USE variables actually have a use. instead of with most monolithic other players.
Back to top
View user's profile Send private message
Guinpen
Guru
Guru


Joined: 08 Dec 2004
Posts: 393

PostPosted: Tue May 17, 2005 8:06 pm    Post subject: Reply with quote

You have a point there: I only just noticed I had the mozilla flag enabled - how did that happen?? Anyway, I'll uncheck that and emerge VLC, but still, that doesn't slove the problem with all the others. Random hangs, etc... are my USE flags too aggressive by the way?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum