[LIVE] dharma beta 4 crashing when trying to play a video! Help!
#16
here is the new .asounrc file the script creates.

Code:
xbmc@XBMCLive:~$ cat .asoundrc

pcm.both {
        type route
        slave {
                pcm multi
                channels 6
        }
        ttable.0.0 1.0
        ttable.1.1 1.0
        ttable.0.2 1.0
        ttable.1.3 1.0
        ttable.0.4 1.0
        ttable.1.5 1.0
}

pcm.multi {
        type multi
        slaves.a {
                pcm "hdmi_hw"
                channels 2
        }
        slaves.b {
                pcm "digital_hw"
                channels 2
        }
        slaves.c {
                pcm "analog_hw"
                channels 2
        }
        bindings.0.slave a
        bindings.0.channel 0
        bindings.1.slave a
        bindings.1.channel 1
        bindings.2.slave b
        bindings.2.channel 0
        bindings.3.slave b
        bindings.3.channel 1
        bindings.4.slave c
        bindings.4.channel 0
        bindings.5.slave c
        bindings.5.channel 1
}

pcm.hdmi_hw {
        type hw
        card 0
        device 3
        channels 2
}

pcm.hdmi_formatted {
        type plug
        slave {
                pcm hdmi_hw
                rate 48000
                channels 2
        }
}

pcm.hdmi_complete {
        type softvol
        slave.pcm hdmi_formatted
        control.name hdmi_volume
        control.card 0
}

pcm.digital_hw {
        type hw
        card 0
        device 1
        channels 2
}

pcm.analog_hw {
        type hw
        card 0
        device 0
        channels 2
}
xbmc@XBMCLive:~$

not sure why it says speaker config is 2.0 I did notice that it changes my speakers from 5.1 to 2.0 after this script ran.I changed it back to 5.1 as thats the setup I have.

my Yamaha amp plays. the following formats. Dobly Digital, DTS, AAC, Dolbly True HD, DTS-HD Masters.

-=Jason=-
Reply
#17
If you are using DD/DTS passthrough. You can't have audio from hdmi and analog at the same time. You would have to manually switch the device to analog plughw:0,0. If you disable dd/dts and passthough pcm instead, it should work. It should downmix multichannel pcm as well.

cheers

EDIT.. I just checked and it doesn't downmix properly. It works fine with 2 channels though.
HTPC 1 : Acer revo R3700 ion2 HTPC 2 :Apple TV2 HTPC 3 : Apple TV2 HTPC4 Acer revo R3700 ion2 Remote : x2 Riimote2
SERVER : 10TB Ubuntu Server 10.04, dual wintv nova hd s2 cards, tvheadend, Newcs, Omnikey reader, White *Sky uk* Card, Mysql Db, Sabnzbdplus, SickBeard, Couchpotato, FlexRaid. :cool:
--------------------------------------------
Image
Reply
#18
for me its SOLVED it was a bad .asoundrc file once I deleted it video started working again. using my old tried and true .asoundrc file (posted below) I am 100% back in business.


ok, setting to plug:both worked to get sound outback, but I had to disable DTS and Dolby Digital.

I do not get AAC using this plug:both setting. actually AAC and my current .asoundrc file are nonexistent.

I've had to revert back to my old .asoundrc config which btw has played anything I throw at it.

AAC plays and the correct channel mapping as well.

http://forum.xbmc.org/showpost.php?p=612...stcount=12

Code:
pcm.dmixer {
type dmix
ipc_key 1024
ipc_key_add_uid false
ipc_perm 0660
slave {
pcm "hw:0,3"
rate 48000
channels 2
period_time 0
period_size 1024
buffer_time 0
buffer_size 4096
}
}

pcm.!default {
type plug
slave.pcm "dmixer"
}

pcm.!hdmi-remap {
type asym
playback.pcm {
type plug
slave.pcm "remap-surround71"
}
}

pcm.!remap-surround71 {
  type route
  slave.pcm "hw:0,3"
  ttable {
    0.0= 1
    1.1= 1
    2.4= 1
    3.5= 1
    4.2= 1
    5.3= 1
    6.6= 1
    7.7= 1
  }
}

with the following xbmc audio settings.
Audio Output: HDMI
Audio Output Device:HDMI
Passthrough: plughw:0,3
and if I want to get stereo sound to my zone two for backyard music I change to
Audio Output: plughw:0,0 and I get analog audio out of my green headphone jack.

my AAC tracks play on the correct channels.
mp3 audio is correct
DTS and Dolby Digital play as should.
all emulators play sound using this setup.

-=Jason=-
Reply
#19
Yeah that looks good. Its a pita there isn't a complete solution but changing the device is pretty straight forward.

Btw, did you get mupen64plus to run without choppy audio when using the --nogui argument? Sorry to thread jack. Pm me if you like.

cheers
HTPC 1 : Acer revo R3700 ion2 HTPC 2 :Apple TV2 HTPC 3 : Apple TV2 HTPC4 Acer revo R3700 ion2 Remote : x2 Riimote2
SERVER : 10TB Ubuntu Server 10.04, dual wintv nova hd s2 cards, tvheadend, Newcs, Omnikey reader, White *Sky uk* Card, Mysql Db, Sabnzbdplus, SickBeard, Couchpotato, FlexRaid. :cool:
--------------------------------------------
Image
Reply
#20
I had the same problem I updated to dharma 4 from dharma 3 everything worked fine I restarted my acer then playing any videos crashed. I spent hours yesterday trying to sort this. In the end i put it down to a failed upgrade. after a complete fresh install I had no sound for anything. I tried Different nvidia drivers, messing with the alsamixer all sorts, loads of different .asoundrc files and sound settings. In the end I did a fresh install of dharma 3 and got the hdmi sound working by adding
pcm.!default {
type plug
slave {
pcm "hdmi"
}
}
to my .asound file. I then updated to 4 and everything is working fine

It was odd a failed upgrade, two failed fresh installs and a working upgrade
not quite sure what was going on but i got it back up and running in the end
Reply
#21
Flomaster Wrote:for me its SOLVED it was a bad .asoundrc file once I deleted it video started working again. using my old tried and true .asoundrc file (posted below) I am 100% back in business.


ok, setting to plug:both worked to get sound outback, but I had to disable DTS and Dolby Digital.

I do not get AAC using this plug:both setting. actually AAC and my current .asoundrc file are nonexistent.

I've had to revert back to my old .asoundrc config which btw has played anything I throw at it.

AAC plays and the correct channel mapping as well.

http://forum.xbmc.org/showpost.php?p=612...stcount=12

Code:
pcm.dmixer {
type dmix
ipc_key 1024
ipc_key_add_uid false
ipc_perm 0660
slave {
pcm "hw:0,3"
rate 48000
channels 2
period_time 0
period_size 1024
buffer_time 0
buffer_size 4096
}
}

pcm.!default {
type plug
slave.pcm "dmixer"
}

pcm.!hdmi-remap {
type asym
playback.pcm {
type plug
slave.pcm "remap-surround71"
}
}

pcm.!remap-surround71 {
  type route
  slave.pcm "hw:0,3"
  ttable {
    0.0= 1
    1.1= 1
    2.4= 1
    3.5= 1
    4.2= 1
    5.3= 1
    6.6= 1
    7.7= 1
  }
}

with the following xbmc audio settings.
Audio Output: HDMI
Audio Output Device:HDMI
Passthrough: plughw:0,3
and if I want to get stereo sound to my zone two for backyard music I change to
Audio Output: plughw:0,0 and I get analog audio out of my green headphone jack.

my AAC tracks play on the correct channels.
mp3 audio is correct
DTS and Dolby Digital play as should.
all emulators play sound using this setup.

-=Jason=-

Hey thanks i just used your method and it helped me ha....I thought i had something to do with the video guess not.....thanks
Reply
#22
ok rebooted the system and its crashing again wtf now im getting some pulseaudio error WTF is Pulse doing on my xbmcFreak system.

http://flomaster.pastebin.com/E14kMP1w

-=Jason=-

EDIT: took my GOLDEN .asoundrc file and copied over the one that was created on boot and all is well.

this is a bug in my eyes why does a bogus .asoundrc file keep getting created.

-=Jason=-
Reply
#23
for anyone interested this is the lovely .asoundrc file thats created each time xbmc restarts or wakes up from sleep.

http://flomaster.pastebin.com/d7Xbwi26

-=Jason=-
Reply

Logout Mark Read Team Forum Stats Members Help
[LIVE] dharma beta 4 crashing when trying to play a video! Help!0