Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 104699 - mplayer fails to play AC3/DTS audio tracks on XBOX subarch
Summary: mplayer fails to play AC3/DTS audio tracks on XBOX subarch
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-03 04:34 UTC by Bartosz Kulicki
Modified: 2006-07-14 10:56 UTC (History)
2 users (show)

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


Attachments
Mplayer patch (xbox_hwac3.patch,988 bytes, patch)
2005-09-03 04:35 UTC, Bartosz Kulicki
Details | Diff
/etc/asound.conf (asound.conf,3.50 KB, text/plain)
2005-09-03 04:36 UTC, Bartosz Kulicki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Bartosz Kulicki 2005-09-03 04:34:07 UTC
mplayer fails when trying to play ac3/dts content on xbox using SPDIF (-hwac3 or
-hwdts). It exits with:

ALSA lib setup.c:548:(add_elem) Cannot obtain info for CTL elem (MIXER,'IEC958
Playback AC97-SPSA',0,0,0):....

This is due to lack of this control in xbox alsa. Attached patch takes out
IEC958 initialization from mplayer code.

It was tested on 2.6.12 (+ xbox patches) alsa 1.0.9b(+xbox patch) and attached
/etc/asound.conf

Reproducible: Always
Steps to Reproduce:
1. run mplayer -ao alsa -ac hwac3 movie_with_ac3sound.avi
2.
3.




Portage 2.0.51.22-r2 (default-linux/x86/2005.0/2.4, gcc-3.4.4, glibc-2.3.5-r1,
2.6.12 i686)
=================================================================
System uname: 2.6.12 i686 Celeron (Coppermine)
Gentoo Base System version 1.4.16
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.4.3-r4, 1.5.18-r1
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -Os -fomit-frame-pointer -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/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -Os -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS=" http://dwarf/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo
http://ftp.heanet.ie/pub/gentoo/"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
USE="x86 a52 alsa apm audiofile avi berkdb bitmap-fonts cdr crypt cups curl
directfb dts dvd dvdread eds emboss encode esd fam fbcon foomaticdb fortran gdbm
gif gstreamer gtk2 imlib ithreads java joystick jpeg libg++ libwww lirc mad
mikmod mjpeg mmx mmxext motif mp3 mpeg mysql ncurses nls nptl nptlonly nvidia
ogg oggvorbis oss pam pdflib perl png python quicktime readline rtc samba sdl
slang spell sse ssl svga tcpd tiff truetype truetype-fonts type1-fonts usb
vorbis win32codecs xine xml2 xmms xv xvid xvmc zlib userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Bartosz Kulicki 2005-09-03 04:35:33 UTC
Created attachment 67545 [details, diff]
Mplayer patch
Comment 2 Bartosz Kulicki 2005-09-03 04:36:20 UTC
Created attachment 67546 [details]
/etc/asound.conf
Comment 3 Reimar Döffinger 2005-09-04 14:53:27 UTC
I don't know the right syntax or if it works with your version of MPlayer (since 
you didn't tell us which you are actually using), but why not just
mplayer -ao also:device=default
Comment 4 Bartosz Kulicki 2005-09-05 01:32:05 UTC
I'm using mplayer-1.0_pre7-r1.
I'll try your suggestion in two days as I dont have access to Xbox right now.
Comment 5 Luca Barbato gentoo-dev 2006-03-07 14:46:26 UTC
alsa issue again?
Comment 6 Steve Dibb (RETIRED) gentoo-dev 2006-06-22 08:11:54 UTC
still an issue with newer versions of mplayer?
Comment 7 Bartosz Kulicki 2006-07-14 10:56:04 UTC
it's still an issue with mplayer 1.0_pre8. Attached patch works with this version.

This is related to this subarch _only_. XBOX doesn't have hardware mixers (or at least they are not accessible through alsa). In other words it's not mplayer bug per se but a combination of this specific hardware and mplayer.