Nvidia 8300, no HDMI audio under live Dharna
#16
AmirG Wrote:Tried quite a few things, including disabling the audio chip and leaving HDMI as the only viable option, nothing helped.

At one time i got some navigation sounds, but not when I tried to play a video. XBMC always recognizes the audio as AC3, perhaps the problem is only there? The XBMCbuntu page mentioned there's a problem with that on nVidia drivers past 159.

I think I'll install again this weeked. If that doesn't work, I'll try a full version of Ubuntu.

I've exactly the same motherboard as yours and all sounds over hdmi are working.

Started with the minimal cd of ubuntu 10.10 and installed only openssh server

Added the following ppa-repository's
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo add-apt-repository ppa:ricotz/unstable
sudo add-apt-repository ppa:team-xbmc-svn/ppa

Installed Xbmc
sudo apt-get install xbmc xinit x11-xserver-utils xbmc-live -y

The latest nvidia drivers (260.19.29)
sudo apt-get install nvidia-current -y

And the latest alsa package (1.0.23+dfsg-2ubuntu1b1~10.10~ricotz1)
sudo apt-get install alsa -y

Unmuted everything with "alsamixer"

Added a config file for audio
sudo nano .asoundrc
With the following content

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

After reboot changed in de audio settings to coax/optical (hdmi also works) 5.0 (channels) ac3 en dts checked on and the last two settings hdmi and hdmi.

A reboot too be sure and everything works, at least over here.

dutch is my native language so that would be easier (have a dutch manual ready) but i hope you'll understand
Reply
#17
Hmm, I guess I'll have to try that. What about making a proper xorg.conf?

Oh, and BTW, does your HTPC connects to am AC3/DTS capable receiver?
Reply
#18
AmirG Wrote:Hmm, I guess I'll have to try that. What about making a proper xorg.conf?

Oh, and BTW, does your HTPC connects to am AC3/DTS capable receiver?

Marantz sr5004 dts and ac3 compatible.

Did nothing with the xorg.conf, in the past i used a sh script from this forum to optimize it but with the last few installs i did not do that. everything is working great.
Reply
#19
No go :-(

I did everything just like you described (with a few additions: partitioning, mounting /tmp and /var/tmp as tmpfs, mounting the backend CIFS, setting wifi and limiting cpu scaling to no lower than 2Ghz) but I still can't get proper sound!

Setting sound output to HDNI gets me complete silence. Optical gives me some nav. sounds and a half second of audio the 1st time I tried and then nothing. Analog (which I rather not use) gives me background music and barely audible everything else.
While aplay -l output remained the same, aplay -L has a lot more options this time:
Quote:null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=NVidia
HDA NVidia, ALC1200 Analog
Default Audio Device
front:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Analog
Front speakers
surround40:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Digital
IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
HDA NVidia, NVIDIA HDMI
HDMI Audio Output
dmix:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Analog
Direct sample mixing device
dmix:CARD=NVidia,DEV=1
HDA NVidia, ALC1200 Digital
Direct sample mixing device
dmix:CARD=NVidia,DEV=3
HDA NVidia, NVIDIA HDMI
Direct sample mixing device
dsnoop:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Analog
Direct sample snooping device
dsnoop:CARD=NVidia,DEV=1
HDA NVidia, ALC1200 Digital
Direct sample snooping device
dsnoop:CARD=NVidia,DEV=3
HDA NVidia, NVIDIA HDMI
Direct sample snooping device
hw:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Analog
Direct hardware device without any conversions
hw:CARD=NVidia,DEV=1
HDA NVidia, ALC1200 Digital
Direct hardware device without any conversions
hw:CARD=NVidia,DEV=3
HDA NVidia, NVIDIA HDMI
Direct hardware device without any conversions
plughw:CARD=NVidia,DEV=0
HDA NVidia, ALC1200 Analog
Hardware device with all software conversions
plughw:CARD=NVidia,DEV=1
HDA NVidia, ALC1200 Digital
Hardware device with all software conversions
plughw:CARD=NVidia,DEV=3
HDA NVidia, NVIDIA HDMI
Hardware device with all software conversions

Any idea for my next move?
Reply
#20
AmirG Wrote:No go :-(
Any idea for my next move?

No sorry, i haven't got any solutions anymore. In mine opinion it's very strange that exactly the same hardware and install method gets different results.
Reply
#21
Tried hdmi, iec958, hw:0,3 and plughw:0,3, nothing. Then I tried playing an MP3 file - success! so the problem is only with the passthrou of AC3 and DTS to the receiver, just PCM works.
Reply
#22
- what receiver make/model do you have? because I begin to suspect that your receiver is only capable of HDMI passthrough to the TV and not actually decoding the audio... god help you if this is true...
- what happens if you disable DD/DTS/passthrough in audio settings and let XBMC do the decoding?
OpenElec Standalone --> Asus Chromebox 'Panther' --> Onkyo TX-NR709 --> Sony 55" X85C Android TV (also with Kodi!)
Asus Chromebox EZ Script
Kodi on Sony Bravia Android TVs
Reply
#23
I've reached the "what the hell" phase. So far I've tried TV episodes with audio encoded as DD/AC3. On a hunch, I tried a sample encoded as DTS - and it worked! So PCM and DTS passthrough works, but DD/AC3 passthrough does not. Very odd.

The receiver is Harman-Kardon 255 and it can handle the decoding just fine: when I hook the old HD with Ubuntu 9.04 and XBMC Camelot, all the files plays just fine and the receiver reports DD.

Hmm, I'll go look for a true AC3 file and see. I'll try disabling passthrough for AC3 as you suggested as well.
Reply
#24
OK, results. Playing DTS:
Quote:22:42:06 T:139694591072000 M:3341549568 INFO: ffmpeg[2E7A5700]: Stream #0.1(eng): Audio: dca, 48000 Hz, 5.1, s16, 1536 kb/s
22:42:07 T:139694591072000 M:3339145216 NOTICE: Opening audio stream: 1 source: 256
22:42:07 T:139694591072000 M:3339145216 NOTICE: Finding audio codec for: 86021
22:42:07 T:139694591072000 M:3339145216 DEBUG: FactoryCodec - Audio: PassthroughFFmpeg - Opening
22:42:07 T:139694591072000 M:3339145216 INFO: CDVDAudioCodecPassthroughFFmpeg::SetupMuxer - Trying to setup spdif muxer
22:42:07 T:139694591072000 M:3339145216 INFO: CDVDAudioCodecPassthroughFFmpeg::SetupMuxer - spdif muxer ready
22:42:07 T:139694591072000 M:3339145216 DEBUG: FactoryCodec - Audio: PassthroughFFmpeg - Opened
22:42:07 T:139694591072000 M:3339145216 NOTICE: Creating audio thread
22:42:07 T:139694471898880 M:3339145216 NOTICE: running thread: CDVDPlayerAudi :Tonguerocess()
22:42:07 T:139694471898880 M:3339059200 NOTICE: Creating audio device with codec id: 86021, channels: 2, sample rate: 48000, pass-through
22:42:07 T:139694471898880 M:3339059200 DEBUG: CGUIAudioManager:Big GrineInitialize
22:42:07 T:139694471898880 M:3280564224 DEBUG: Initialize - using alsa device hdmi:AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2
22:42:07 T:139694471898880 M:3279319040 DEBUG: CALSADirectSound::Initialize - packet size:2048, packet count:16, buffer size:8192
22:42:07 T:139694471898880 M:3279319040 DEBUG: CALSADirectSound::Initialize - Channels: 2 - SampleRate: 48000 - SampleBit: 16 - Resample false - IsMusic false - IsPassthrough true - audioDevice: hdmi
22:42:07 T:139694471898880 M:3279319040 DEBUG: CDVDPlayerAudio:: synctype set to 0: clock feedback
22:42:07 T:139694471898880 M:3280011264 WARNING: CALSADirectSound::GetSpace - get space failed. err: -32 (Broken pipe)
22:42:07 T:139694471898880 M:3279941632 DEBUG: CDVDPlayerAudio:: Discontinuity - was:284.982000, should be:10679.993781, error:10395.011781
22:42:07 T:139694471898880 M:3279941632 DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_RESYNC(10000.000000, 1)
22:42:23 T:139694471898880 M:3254083584 DEBUG: CDVDPlayerAudio:: Discontinuity - was:16061862.013781, should be:16051763.576323, error:-10098.437458
22:42:44 T:139694471898880 M:3253735424 DEBUG: CDVDPlayerAudio:: Discontinuity - was:37118106.564323, should be:37107671.534569, error:-10435.029754

I've filtered every log line that didn't have "audio", "sound" or "alsa". odd things - the 'Channels: 2' (it's a 5.1 file) and the 'Broken pipe'.

Same log, for an AC3 file with the AC3 capable receiver ticked:
Quote:22:54:02 T:139694450919168 M:3303100416 INFO: ffmpeg[261FC700]: Stream #0.1(ger): Audio: ac3, 48000 Hz, 5.1, s16, 640 kb/s
22:54:02 T:139694450919168 M:3303100416 INFO: ffmpeg[261FC700]: Stream #0.2(eng): Audio: ac3, 48000 Hz, 5.1, s16, 640 kb/s
22:54:03 T:139694450919168 M:3300171776 NOTICE: Opening audio stream: 1 source: 256
22:54:03 T:139694450919168 M:3300171776 NOTICE: Finding audio codec for: 86020
22:54:03 T:139694450919168 M:3300171776 DEBUG: FactoryCodec - Audio: PassthroughFFmpeg - Opening
22:54:03 T:139694450919168 M:3300171776 INFO: CDVDAudioCodecPassthroughFFmpeg::SetupMuxer - Trying to setup spdif muxer
22:54:03 T:139694450919168 M:3300171776 INFO: CDVDAudioCodecPassthroughFFmpeg::SetupMuxer - spdif muxer ready
22:54:03 T:139694450919168 M:3300171776 DEBUG: FactoryCodec - Audio: PassthroughFFmpeg - Opened
22:54:03 T:139694450919168 M:3300171776 NOTICE: Creating audio thread
22:54:03 T:139694429939456 M:3300171776 NOTICE: running thread: CDVDPlayerAudi :Tonguerocess()
22:54:03 T:139694429939456 M:3300171776 NOTICE: Creating audio device with codec id: 86020, channels: 2, sample rate: 48000, pass-through
22:54:03 T:139694429939456 M:3300171776 DEBUG: CGUIAudioManager:Big GrineInitialize
22:54:03 T:139694429939456 M:3244228608 DEBUG: Initialize - using alsa device hdmi:AES0=0x6,AES1=0x82,AES2=0x0,AES3=0x2
22:54:03 T:139694429939456 M:3244228608 DEBUG: CALSADirectSound::Initialize - packet size:2048, packet count:16, buffer size:8192
22:54:03 T:139694429939456 M:3244228608 DEBUG: CALSADirectSound::Initialize - Channels: 2 - SampleRate: 48000 - SampleBit: 16 - Resample false - IsMusic false - IsPassthrough true - audioDevice: hdmi
22:54:03 T:139694429939456 M:3244228608 DEBUG: CDVDPlayerAudio:: synctype set to 0: clock feedback
22:54:03 T:139694429939456 M:3243466752 WARNING: CALSADirectSound::GetSpace - get space failed. err: -32 (Broken pipe)
22:54:03 T:139694429939456 M:3243335680 DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_RESYNC(32000.000000, 1)
22:54:03 T:139694429939456 M:3243335680 DEBUG: CDVDPlayerAudio:: Discontinuity - was:32108.400000, should be:32010.878480, error:-97.521520

Two channels again and broken pipe again. No audio, the receiver gets nothing.

The same file, but with the AC3 capable unticked:
Quote:23:01:18 T:139694636508928 M:3288236032 INFO: ffmpeg[312FA700]: Stream #0.1(ger): Audio: ac3, 48000 Hz, 5.1, s16, 640 kb/s
23:01:18 T:139694636508928 M:3288236032 INFO: ffmpeg[312FA700]: Stream #0.2(eng): Audio: ac3, 48000 Hz, 5.1, s16, 640 kb/s
23:01:19 T:139694636508928 M:3286081536 NOTICE: Opening audio stream: 1 source: 256
23:01:19 T:139694636508928 M:3286081536 NOTICE: Finding audio codec for: 86020
23:01:19 T:139694636508928 M:3286081536 DEBUG: FactoryCodec - Audio: PassthroughFFmpeg - Opening
23:01:19 T:139694636508928 M:3286081536 INFO: CDVDAudioCodecPassthroughFFmpeg::Open - Won't transcode for HDMI
23:01:19 T:139694636508928 M:3286081536 DEBUG: FactoryCodec - Audio: PassthroughFFmpeg - Failed
23:01:19 T:139694636508928 M:3286081536 DEBUG: FactoryCodec - Audio: FFmpeg - Opening
23:01:19 T:139694636508928 M:3286081536 DEBUG: FactoryCodec - Audio: FFmpeg - Opened
23:01:19 T:139694636508928 M:3286081536 NOTICE: Creating audio thread
23:01:19 T:139694477461248 M:3286081536 NOTICE: running thread: CDVDPlayerAudi :Tonguerocess()
23:01:19 T:139694477461248 M:3286081536 NOTICE: Creating audio device with codec id: 86020, channels: 6, sample rate: 48000, no pass-through
23:01:19 T:139694477461248 M:3286081536 DEBUG: CGUIAudioManager:Big GrineInitialize
23:01:19 T:139694477461248 M:3242188800 DEBUG: Initialize - using alsa device plug:hdmi
23:01:19 T:139694477461248 M:3242061824 DEBUG: CALSADirectSound::Initialize - packet size:6144, packet count:16, buffer size:8192
23:01:19 T:139694477461248 M:3242061824 DEBUG: CALSADirectSound::Initialize - Channels: 6 - SampleRate: 48000 - SampleBit: 16 - Resample false - IsMusic false - IsPassthrough false - audioDevice: plug:hdmi
23:01:19 T:139694477461248 M:3242061824 DEBUG: CDVDPlayerAudio:: synctype set to 0: clock feedback
23:01:19 T:139694477461248 M:3240656896 DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_RESYNC(32000.000000, 1)
23:01:19 T:139694477461248 M:3240751104 DEBUG: CDVDPlayerAudio:: Discontinuity - was:714.400000, should be:0.000000, error:-714.400000
23:01:20 T:139694477461248 M:3232264192 DEBUG: CDVDPlayerAudio:: Discontinuity - was:1027028.520000, should be:1043758.113085, error:16729.593085

This time I have six channels, no broken pipe and the receiver gets (and plays) PCM audio.
Reply
#25
recently a user with nearly identical hardware (judging from his aplay output) had dharma running well with HDMI output

http://forum.xbmc.org/showthread.php?tid=82416 the thread mostly talks about channel mapping, but probably you could get in touch with him
OpenElec Standalone --> Asus Chromebox 'Panther' --> Onkyo TX-NR709 --> Sony 55" X85C Android TV (also with Kodi!)
Asus Chromebox EZ Script
Kodi on Sony Bravia Android TVs
Reply

Logout Mark Read Team Forum Stats Members Help
Nvidia 8300, no HDMI audio under live Dharna1