Welcome To Australia's No.1 Media Center Community!
You Are Currently Viewing As A Guest - you'll need to register in order to participate in our community and make this annoying message disappear!
By registering you'll be able to post & reply to questions, set up your own image gallery & blog, communicate privately with other members, create & respond to polls, access downloads and other "members only" features.
Registration is fast, simple and absolutely free - so why not join our community today - you'll be glad you did! If you experience any problems with the registration process or your account, please send a message to Mike
Fine tuning questions on xbmc
this thread has 58 replies and has been viewed 6626 times
Should the above fail try this (as the normal user):
cd ~
nano .asoundrc
add:
pcm.!spdif {
type hw
card 0
device 1
}
pcm.!default {
type plug
slave {
pcm "spdif"
}
}
save and exit and then try playing some files, with and without the -ao and -ac switches in mplayer.
If you get no joy remove the ~/.asoundrc file.
It would probably be a good idea to read and work through the Alsa Wiki page as well.
The fact that iec958 is missing from your aplay -L output isn't a concern apparently. It just means that an alias wasn't automatically created for your sound card. As long as aplay -l shows a digital device, in your case hw:0,1 it should be able to pass audio over SPDIF.
I asked BLKMGK over at the XBMC forums as he also has the same board as you.
He told me he didn't have to do anything special to get SPDIF working on his board with Ubuntu. This is his aplay -L output
Code:
default:CARD=Intel
HDA Intel, ALC883 Analog
Default Audio Device
front:CARD=Intel,DEV=0
HDA Intel, ALC883 Analog
Front speakers
surround40:CARD=Intel,DEV=0
HDA Intel, ALC883 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
HDA Intel, ALC883 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
HDA Intel, ALC883 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
HDA Intel, ALC883 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
HDA Intel, ALC883 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
null
Discard all samples (playback) or generate zero samples (capture)
As you can see he has no iec958 device either. I've asked him to clarify if he needed a .asoundrc file or changed the sound setup in XBMC. Will let you know what I find out.
or put a dvd in and mount in to /mnt and try playing it:
<insert disc>
sudo su -
mount /dev/sr0 /mnt
mplayer dvd://1 -dvd-device /mnt -ao alsa:device=hw=0,1 -ac hwac3
Tried above. Got a lot of static (which, I understand, is not necessarily a bad thing). Receiver still showing analog though. Output is below - I've highlighted in red some problems:
Code:
root@myth-frontend:~# mplayer dvd://1 -dvd-device /mnt -ao alsa:device=hw=0,1 -ac hwac3
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU E8500 @ 3.16GHz (Family: 6, Model: 23, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not open config files /root/.lircrc and /etc/lirc//lircrc
mplayer: No such file or directory
Failed to read LIRC config file ~/.lircrc.
Playing dvd://1.
There are 6 titles on this DVD.
There are 36 chapters in this DVD title.
There are 1 angles in this DVD title.
audio stream: 0 format: ac3 (5.1) language: en aid: 128.
number of audio channels on disk: 1.
subtitle ( sid ): 0 language: en
number of subtitles on disk: 1
MPEG-PS file format detected.
VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 7500.0 kbps (937.5 kbyte/s)
vo: couldn't open the X11 display ()!
Error opening/initializing the selected video_out (-vo) device.
==========================================================================
Forced audio codec: hwac3
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
No accelerated IMDCT transform found
hwac3: switched to AC3, 384000 bps, 48000 Hz
AUDIO: 48000 Hz, 2 ch, ac3, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
==========================================================================
[AO_ALSA] alsa-lib: conf.c:3843:(parse_args) Unknown parameter AES0
[AO_ALSA] alsa-lib: conf.c:3969:(snd_config_expand) Parse arguments error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2196:(snd_pcm_open_noupdate) Unknown PCM hw:0,AES0=6
AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample)
Video: no video
Starting playback...
A: 13.0 (12.9) of 7958.0 ( 2:12:38.0) 0.3%
Exiting... (Quit)
root@myth-frontend:~#
Also found this on the ubuntu forum - should I go ahead and update the driver?
Quote:
I wanna start out with a big thanks to all who's been involved in this thread and other forums for making this work. After nearly tearing my hair out I found a solution working for me. My problem was not getting any sound out of the coax. After installing the realtek / ALSA package contained in the "Support Linux Drivers.zip" from Asus support site: http://support.asus.com/download/dow...l=P5E-V%20HDMI it worked like a charm.
I do have analog connected as well. Removing it gives me no sound at all. I'll keep it removed for now.
Tried adding the code to .asoundrc - no change. Removed .asoundrc
White noise (the static), is a good thing, at least it is sound!
Can you try the following as well:
<insert disc>
sudo su -
mount /dev/sr0 /mnt
mplayer dvd://1 -dvd-device /mnt -ao alsa:device=hwplug=0,1 -ac hwac3
try the above first, can you give me the link of the ubuntu thread you found that says to try the driver from Asus? The link in your last post is broken.
I prefer to not install a third party driver if possible because later updates may overwrite it and sometimes you have to re-install which is annoying.
White noise (the static), is a good thing, at least it is sound!
Can you try the following as well:
<insert disc>
sudo su -
mount /dev/sr0 /mnt
mplayer dvd://1 -dvd-device /mnt -ao alsa:device=hwplug=0,1 -ac hwac3
No luck. Output:
Code:
root@myth-frontend:~# mplayer dvd://1 -dvd-device /mnt -ao alsa:device=hwplug=0,1 -ac hwac3
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU E8500 @ 3.16GHz (Family: 6, Model: 23, Stepping: 6)
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not open config files /root/.lircrc and /etc/lirc//lircrc
mplayer: No such file or directory
Failed to read LIRC config file ~/.lircrc.
Playing dvd://1.
There are 6 titles on this DVD.
There are 36 chapters in this DVD title.
There are 1 angles in this DVD title.
audio stream: 0 format: ac3 (5.1) language: en aid: 128.
number of audio channels on disk: 1.
subtitle ( sid ): 0 language: en
number of subtitles on disk: 1
MPEG-PS file format detected.
VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 7500.0 kbps (937.5 kbyte/s)
vo: couldn't open the X11 display ()!
Error opening/initializing the selected video_out (-vo) device.
==========================================================================
Forced audio codec: hwac3
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
No accelerated IMDCT transform found
hwac3: switched to AC3, 384000 bps, 48000 Hz
AUDIO: 48000 Hz, 2 ch, ac3, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
==========================================================================
[AO_ALSA] alsa-lib: pcm.c:2196:(snd_pcm_open_noupdate) Unknown PCM hwplug:0,AES0=6
[AO_ALSA] alsa-lib: pcm.c:2196:(snd_pcm_open_noupdate) Unknown PCM hwplug:0
[AO_ALSA] Playback open error: No such file or directory
Could not open/initialize audio device -> no sound.
Audio: no sound
Video: no video
Exiting... (End of file)
root@myth-frontend:~#
Link to ubuntu thread. Reference to ASUS update driver is in post 148.
Looks promising and it's a recent post so I say go for it. If it doesn't work you have a recent image backup right?
You bet - first thing I did prior to playing around with the iMon remote. Also recovered image once I gave iMon the flick (nice to know I could do it).
Also backed up after installing xbmc.
However, had to backup to external drive - had trouble backing up to backend. Won't bug you now about this (couldn't create file in image folder). Will post in backend thread once I've solved the current problems I am tackling.
Ok. Must be a share problem on the images share. Though you have been able to write to it before?
Check the ownership on it first.
cd /home/dad/Documents/images
ls -la
I can't remember what we did except that that particular share was different and could be accessed by anyone at one point.
Maybe post up your /etc/samba/smb.conf too. Are you able to map that share and write to it from the frontend or a windows box, without using clonezilla?
No, the patches.
I'd move them from the Desktop to somwhere like:
mkdir /gome/dad/Documents/downloads/patches
cd /home/dad/Desktop
mv <filename.zip> /home/dad/Documents/patches
cd /home/dad/Documents/patches
unzip <filename.zip>
If the file is a tar archive that was zipped untar it with:
tar -xvf filename.tar
See what's in there. I imagine one of them will be something about Alsa.
dad : /home/dad > cd Documents/images
dad : /home/dad/Documents/images > ls -la
total 4.0K
drwxr-xr-x 3 dad users 24 Nov 7 19:50 ./
drwxr-xr-x 7 dad users 4.0K Sep 28 23:10 ../
drwxr-xr-x 4 dad users 29 Sep 30 20:38 .Trash-1000/
dad : /home/dad/Documents/images > cd
dad : /home/dad > cat /etc/samba/smb.conf
# smb.conf is the main Samba configuration file. You find a full commented
# version at /usr/share/doc/packages/samba/examples/smb.conf.SUSE if the
# samba-doc package is installed.
# Date: 2006-05-02
[global]
workgroup = WORKGROUP
client ntlmv2 auth = yes
map to guest = Bad User
include = /etc/samba/dhcp.conf
logon path = \\%L\profiles\.msprofile
logon home = \\%L\%U\.9xprofile
logon drive = P:
restrict anonymous = no
domain master = no
max protocol = NT
ldap ssl = No
server signing = Auto
add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
create mask = 775
directory mask = 775
preferred master = no
acl compatibility = winnt
server string = Home Server
[homes]
comment = Home Directories
valid users = %S, %D%w%S
browseable = No
read only = No
inherit acls = Yes
[users]
comment = All users
path = /home
read only = No
inherit acls = Yes
veto files = /aquota.user/groups/shares/
[groups]
comment = All groups
path = /home/groups
read only = No
inherit acls = Yes
[audio]
read only = no
inherit acls = Yes
path = /home/dad/Documents/audio
guest ok = Yes
force group = users
[adult]
comment = TV Episodes and Movies for Adults
inherit acls = Yes
path = /home/dad/Documents/video/adult
read only = no
guest ok = Yes
force group = users
[childrens]
comment = TV Episodes andMovies for Children
inherit acls = Yes
path = /home/dad/Documents/video/kids
read only = no
guest ok = Yes
force group = users
[downloads]
comment = Downloaded Files
inherit acls = Yes
read only = no
path = /home/dad/Documents/downloads
guest ok = Yes
force group = users
[photos]
comment = Digital Photo Albums
inherit acls = Yes
path = /home/dad/Documents/photos
guest ok = Yes
force group = users
[images]
comment = Clonezilla images
inherit acls = Yes
path = /home/dad/Documents/images
read only = no
guest ok = Yes
force group = usersdad : /home/dad >
Currently trying to work out how to map the image file from the frontend.