Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support
Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support
Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support
Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support Windows 7, Vista & Linux Media Center Support


Go Back   Australian Media Center Community > Cross Platform HTPC Solutions > XBMC – Linux

Community Information

Fine tuning questions on xbmc
this thread has 58 replies and has been viewed 6626 times
Reply
 
Thread Tools
Old 12th November 2008, 10:31 AM   #13 (permalink)

 
arkay's Avatar
Status arkay is Online:
Location Melbourne
ActivityPosts: 10,064
Reputation & Thanks Support Rating:
arkay arkay arkay arkay arkay arkay arkay arkay arkay arkay arkay
Points Earned: 2588

arkay has been thanked 756 times in 630 posts
arkay's
Media Center
Re: Fine tuning questions on xbmc

Duffy,

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.

Cheers,

Arkay.
  Reply With Quote


Old 12th November 2008, 09:15 PM   #14 (permalink)

 
arkay's Avatar
Status arkay is Online:
Location Melbourne
ActivityPosts: 10,064
Reputation & Thanks Support Rating:
arkay arkay arkay arkay arkay arkay arkay arkay arkay arkay arkay
Points Earned: 2588

arkay has been thanked 756 times in 630 posts
arkay's
Media Center
Re: Fine tuning questions on xbmc

Duffy,

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.

Cheers,

Arkay
  Reply With Quote


Old 12th November 2008, 09:25 PM   #15 (permalink)
MC Mentor
 
Duffy's Avatar
Status Duffy is Online:
Location Melbourne
ActivityPosts: 893
Reputation & Thanks Support Rating:
Duffy Duffy Duffy Duffy
Points Earned: 305

Duffy has been thanked 65 times in 44 posts
Duffy's
Media Center
Re: Fine tuning questions on xbmc

Arkay

Quote:
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

Duffy
  Reply With Quote


Old 12th November 2008, 09:33 PM   #16 (permalink)

 
arkay's Avatar
Status arkay is Online:
Location Melbourne
ActivityPosts: 10,064
Reputation & Thanks Support Rating:
arkay arkay arkay arkay arkay arkay arkay arkay arkay arkay arkay
Points Earned: 2588

arkay has been thanked 756 times in 630 posts
arkay's
Media Center
Re: Fine tuning questions on xbmc

Duffy,

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.

Cheers,

Arkay.
  Reply With Quote


Old 12th November 2008, 09:47 PM   #17 (permalink)
MC Mentor
 
Duffy's Avatar
Status Duffy is Online:
Location Melbourne
ActivityPosts: 893
Reputation & Thanks Support Rating:
Duffy Duffy Duffy Duffy
Points Earned: 305

Duffy has been thanked 65 times in 44 posts
Duffy's
Media Center
Re: Fine tuning questions on xbmc

Arkay

Quote:
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.

http://ubuntuforums.org/showthread.php?p=5954213

Duffy
  Reply With Quote


Old 12th November 2008, 09:52 PM   #18 (permalink)

 
arkay's Avatar
Status arkay is Online:
Location Melbourne
ActivityPosts: 10,064
Reputation & Thanks Support Rating:
arkay arkay arkay arkay arkay arkay arkay arkay arkay arkay arkay
Points Earned: 2588

arkay has been thanked 756 times in 630 posts
arkay's
Media Center
Re: Fine tuning questions on xbmc

Thanks. Will have a read. Forgot to mention in last post that the .lirc errors in mplayer are nothing to worry about

Cheers,

Arkay.
  Reply With Quote


Old 12th November 2008, 09:55 PM   #19 (permalink)

 
arkay's Avatar
Status arkay is Online:
Location Melbourne
ActivityPosts: 10,064
Reputation & Thanks Support Rating:
arkay arkay arkay arkay arkay arkay arkay arkay arkay arkay arkay
Points Earned: 2588

arkay has been thanked 756 times in 630 posts
arkay's
Media Center
Re: Fine tuning questions on xbmc

Duffy,

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?

Not that you couldn't back it out manually anyway.

Cheers,

Arkay.
  Reply With Quote


Old 12th November 2008, 10:11 PM   #20 (permalink)
MC Mentor
 
Duffy's Avatar
Status Duffy is Online:
Location Melbourne
ActivityPosts: 893
Reputation & Thanks Support Rating:
Duffy Duffy Duffy Duffy
Points Earned: 305

Duffy has been thanked 65 times in 44 posts
Duffy's
Media Center
Re: Fine tuning questions on xbmc

Arkay

Downloading now.

Quote:
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.

Duffy
  Reply With Quote


Old 12th November 2008, 10:15 PM   #21 (permalink)

 
arkay's Avatar
Status arkay is Online:
Location Melbourne
ActivityPosts: 10,064
Reputation & Thanks Support Rating:
arkay arkay arkay arkay arkay arkay arkay arkay arkay arkay arkay
Points Earned: 2588

arkay has been thanked 756 times in 630 posts
arkay's
Media Center
Re: Fine tuning questions on xbmc

Not being able to create the image file could only be one of three things:

1. It didn't connect to the sambe share or
2. The permissions on the share are wrong or
3. There's no space left in the share.

I'm betting 3. A df -h should tell you all you need to know

Cheers,

Arkay.
  Reply With Quote


Old 13th November 2008, 08:30 PM   #22 (permalink)
MC Mentor
 
Duffy's Avatar
Status Duffy is Online:
Location Melbourne
ActivityPosts: 893
Reputation & Thanks Support Rating:
Duffy Duffy Duffy Duffy
Points Earned: 305

Duffy has been thanked 65 times in 44 posts
Duffy's
Media Center
Re: Fine tuning questions on xbmc

Arkay

After downing the new drivers, where do I put them and what do I do with them? The zip file is currently sitting on the desktop.

Quote:
1. It didn't connect to the sambe share or
2. The permissions on the share are wrong or
3. There's no space left in the share.

I'm betting 3. A df -h should tell you all you need to know
Yes, but no.

It was 3, but I then expanded the volume/filesystem. Then it became 2 - permission was denied to create folder to save image into.

Duffy
  Reply With Quote


Old 13th November 2008, 08:36 PM   #23 (permalink)

 
arkay's Avatar
Status arkay is Online:
Location Melbourne
ActivityPosts: 10,064
Reputation & Thanks Support Rating:
arkay arkay arkay arkay arkay arkay arkay arkay arkay arkay arkay
Points Earned: 2588

arkay has been thanked 756 times in 630 posts
arkay's
Media Center
Re: Fine tuning questions on xbmc

Duffy,

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.

Cheers,

Arkay.
  Reply With Quote


Old 13th November 2008, 09:07 PM   #24 (permalink)
MC Mentor
 
Duffy's Avatar
Status Duffy is Online:
Location Melbourne
ActivityPosts: 893
Reputation & Thanks Support Rating:
Duffy Duffy Duffy Duffy
Points Earned: 305

Duffy has been thanked 65 times in 44 posts
Duffy's
Media Center
Re: Fine tuning questions on xbmc

Arkay

Output from ls -la and contnets of smb.conf:

Code:
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.

Duffy
  Reply With Quote


Reply

Bookmarks

Thread Tools



Advertisers








Terms Of Service - Contact Us - Advertise With Us - Archive - Privacy Policy - FAQ
Microsoft©, Windows 7©, Windows Vista© & Windows XP© are registered trademarks of Microsoft Corporation.
www.xpmediacentre.com.au has no relationship with, nor is affiliated in any way with Microsoft Corporation.
All original content on this website © 2004 - 2010 xpmediacentre.com.au, All rights reserved
Forum by vBulletin Version 3.8.3 - Copyright Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0 RC7
Local time now is 12:36 AM AEDT.

Add to Google