Posts: 476
Joined: Nov 2007
Hey guys,
just reinstalled my HTPC yesterday with my new hardware setup, Intel Core i3, Z77 chipset. After a little bit of work I am pretty satisfied with Intel VAAPI compared to my previous Nvidia setup. Video playback is absolutely fine so far.
I am facing one problem though.
Digital sound isn't correctly initialized when playing back AC3 or DTS videos. This is what happens:
I launch a video with digital sound, video stutters really bad, framerate about 4-5 fps, I get no sound, my AV Receiver (Denon AVR 3313) isn't seeing the digital signal either. The HTPC is hooked up via HDMI to the Denon AVR.
Now as soon as I pause and play the video or seek in one direction, digital sound is there and everything is fine. So at least I got a workaround, but I'd like to have everything playing fine by just launching the video and not having to seek or anything to get digital sound working correctly.
Could anyone help me out here?
Thanks,
boba
Posts: 23,266
Joined: Aug 2011
Reputation:
1,074
fritsch
Team-Kodi Developer
Posts: 23,266
Please post an xbmc.log with debugging turned on.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Posts: 476
Joined: Nov 2007
2013-04-27, 15:46
(This post was last modified: 2013-04-27, 15:49 by User 29008.)
(2013-04-27, 14:12)fritsch Wrote: Please post an xbmc.log with debugging turned on.
Full debug log attached. This is me playing aviator.avi and getting the described behaviour. Video plays with about 5 fps, no sound, AVR not receiving AC3 signal from HTPC. After 10-20 seconds I seek back via remote, and all is well, 25fps, digital sound playing fine.
EDIT: ok, thought I could attach files here, I'll upload it to pastebin
http://pastebin.com/Yynw3Avz
Posts: 476
Joined: Nov 2007
Thanks, will try that. Or could I also just compile xbmc with --disable-pulse? Would this do the trick as well?
Thanks,
boba
Posts: 23,266
Joined: Aug 2011
Reputation:
1,074
fritsch
Team-Kodi Developer
Posts: 23,266
you need the other way round: --enable-pulse (you are currently running with alsa). Be aware the pulse implementation in xbmc is quite basic, only one "default" output, no intelligent sink.
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Posts: 476
Joined: Nov 2007
2013-04-27, 16:12
(This post was last modified: 2013-04-27, 16:21 by User 29008.)
Hmm I am a bit confused now, I use to compile (my current build) with just --disable-debug. So Pulse should be enabled, right?
Anyway, I'll try your suggestion first, just hope that it's that easy to remove pulseaudio. I remember it's been a pain in the ass previously on ubuntu ....
boba
Alright, this fixes the issues in XBMC, thanks for that. Only problem is that by removing those packages, I lose Ubuntu Desktop/System sounds and LIRC stopped working as well, for whatever reason ... did I mention, that I indeed use Ubuntu itself as well on that machine?
Can I just remove Alsa then and keep pulse to also keep system sounds?
boba
Posts: 5,174
Joined: Jan 2010
Reputation:
97
Kib
Team-Kodi Member
Posts: 5,174
Best advise is to not have pulseaudio on your system and run XBMC with alsa only if you want to get bitstreaming working.
Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135
2013-04-27, 16:27
(This post was last modified: 2013-04-27, 16:28 by un1versal.)
iirc you only get proper audio on intel with kernel >=3.9 according to what I read so far re user reports anything lower is works for some ppl and some doesnt.
uNi
Posts: 476
Joined: Nov 2007
Well, I had XBMC running on Ubuntu 12.04 till yesterday, with a nvidia based system though, same cabling through HDMI and AVR as now. I didn't have Pulseaudio removed there and had no problems. Now with 13.04 it is necessary again to remove Pulse altogether?
boba
Posts: 23,266
Joined: Aug 2011
Reputation:
1,074
fritsch
Team-Kodi Developer
Posts: 23,266
You could try to set the default pulse device to the Analog Output :-) before starting xbmc. That way it should be "free".
First decide what functions / features you expect from a system. Then decide for the hardware. Don't waste your money on crap.
Posts: 7,135
Joined: Oct 2012
un1versal
Out of Memory (1939–2016)
Posts: 7,135
(2013-04-27, 16:28)boba23 Wrote: Well, I had XBMC running on Ubuntu 12.04 till yesterday, with a nvidia based system though, same cabling through HDMI and AVR as now. I didn't have Pulseaudio removed there and had no problems. Now with 13.04 it is necessary again to remove Pulse altogether?
boba
Its not the same is it?, Intel vs Nvidia to begin with, specially audio wise, hence why I said newer kernel 3.9 or better may be required due to waht I read from user feedback around forums.
Regarding Pulse its random behaviour it can depend on user configuration + setup, more often than not, pulse can cause problems but you cant set it as a rule of thumb for everyone since not everyone has an issue.
FYI your not going to get better advice than fritsch can provide regarding troubleshooting, he's knows his stuff and confusing things with unrelated information doesnt help anyone.
uNi
Posts: 7,650
Joined: Jun 2011
Reputation:
287
You can also set pulse to use _another_ device then HDMI, that way it won't block it for Xbmc.
Although easiest and most secure is to remove pulse, like described above.