XBMC Community Forum
AudioEngine branch - DO NOT REQUEST BINARY BUILDS - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Development (/forumdisplay.php?fid=93)
+--- Thread: AudioEngine branch - DO NOT REQUEST BINARY BUILDS (/showthread.php?tid=78289)



- forall - 2012-02-26 15:21

Hello,

Yesterday I compilled xbmc with AE - but I have some problem, when I play a movie it running so very fast 2-3x faster.
My audio device isn't initliaze, I put custome device: plughw:0,7, on distro xbmc this audio configuration it working.
I compiled xbmc with ./configure --prefix=/usr/local/xbmcAE --enable-vaapi --disable-pulse.
Below I past my xbmc.log: http://pastebin.com/wg4MQkWw

My HTPC:
Asrock Z68M-ITX/HT
i3-2100T (Sandy Bridge)


- elite1967 - 2012-02-26 16:32

forall Wrote:Hello,

Yesterday I compilled xbmc with AE - but I have some problem, when I play a movie it running so very fast 2-3x faster.
My audio device isn't initliaze, I put custome device: plughw:0,7, on distro xbmc this audio configuration it working.
I compiled xbmc with ./configure --prefix=/usr/local/xbmcAE --enable-vaapi --disable-pulse.
Below I past my xbmc.log: http://pastebin.com/wg4MQkWw

My HTPC:
Asrock Z68M-ITX/HT
i3-2100T (Sandy Bridge)

I have the same problem.
Cannot play with the newer versions.
I have to stick with my version compiled in January. All other newer versions have the symptoms you describe above.
They compile and run ok, but when playing back are 2x faster and no audio device initialized.

Maybe some simple tweak could resolve the issue?


- forall - 2012-02-26 17:19

@elite1967 - maybe Gnif say somethingSmile where is the problem..


- mightymouse2045 - 2012-02-26 17:31

DDDamian Wrote:Yep, a debug log is handy. Obviously it's not seeing your audio driver. I'm assuming nVidia here. I think if you search this thread and the forum with "plughw" you'll find some answers, as a Custom audio device must be configured properly for your hardware, and this topic has been well discussed.

Here is a new log - I did a git reset and clean and rebuilt - it obviously wasn't getting any debug info in my previous logs but now it is:

http://pastebin.com/HgDg3x9h

Hopefully this will help you or gniff track down the problem for me....

This log is opening DTS-HD MA, DTS-HD HRA and Dolby True HD streams but still any stream I play it shows as PCM and in the log it is showing that it failed to open passthrough


EDIT:

By the way this works:
Code:
aplay -D plughw:1,7 -c8 -fs16_le -r192000 thd.spdif
aplay -D hw:CARD=1,DEV=7 -c8 -fs16_le -r192000 thd.spdif

but this squeals back at me

aplay -D hdmi:CARD=1,DEV=1 -c8 -fs16_le -r192000 thd.spdif

This is with an NVidia 560TI


- mightymouse2045 - 2012-02-26 19:22

mightymouse2045 Wrote:Here is a new log - I did a git reset and clean and rebuilt - it obviously wasn't getting any debug info in my previous logs but now it is:

http://pastebin.com/HgDg3x9h

Hopefully this will help you or gniff track down the problem for me....

This log is opening DTS-HD MA, DTS-HD HRA and Dolby True HD streams but still any stream I play it shows as PCM and in the log it is showing that it failed to open passthrough


EDIT:

By the way this works:
Code:
aplay -D plughw:1,7 -c8 -fs16_le -r192000 thd.spdif
aplay -D hw:CARD=1,DEV=7 -c8 -fs16_le -r192000 thd.spdif

but this squeals back at me

aplay -D hdmi:CARD=1,DEV=1 -c8 -fs16_le -r192000 thd.spdif

This is with an NVidia 560TI

Not wanting to be a pain but I have since set both audio output and pass through to custom and typed in "does this even work" for both

and funnily enough I still have audio - so I don't know what's happening but for some reason these options aren't even working for me and the audio device is being picked up elsewhere.


- Drae - 2012-02-26 19:36

forall Wrote:Hello,

Yesterday I compilled xbmc with AE - but I have some problem, when I play a movie it running so very fast 2-3x faster.
My audio device isn't initliaze, I put custome device: plughw:0,7, on distro xbmc this audio configuration it working.
I compiled xbmc with ./configure --prefix=/usr/local/xbmcAE --enable-vaapi --disable-pulse.
Below I past my xbmc.log: http://pastebin.com/wg4MQkWw

My HTPC:
Asrock Z68M-ITX/HT
i3-2100T (Sandy Bridge)
I see the same thing - discontinuities - with a G620T processor. Given it runs fine on my Nvidia G210 card in the same system I assume it's a case of tweaking needed to support Intel. This is all on Linux ofc.


- wingrunr21 - 2012-02-27 15:25

mightymouse2045 Wrote:Not wanting to be a pain but I have since set both audio output and pass through to custom and typed in "does this even work" for both

and funnily enough I still have audio - so I don't know what's happening but for some reason these options aren't even working for me and the audio device is being picked up elsewhere.

I think your issue is Pulse. I'm running a nVidia card directly to ALSA with a Custom device (hdmi:CARD=NVidia,DEV=1) and get everything working to my receiver. I did have issues with the newest nvidia drivers (295.20) so I am currently running 290.10. Only issue I have is DTS output is choppy as none other so I currently have that disabled and just output PCM to the receiver. It is odd since DTS-HD works fine but I figured it was a bug.

@people getting choppy video: the choppiness is because the audio output device could not be opened to play back your stream. I saw the same issues when I ran my ATI card and tried to play HD audio (ATI cards only support two audio channels via HDMI). You need to make sure you are sending sound out of the correct interface and/or you are modprobing to enable the digital audio features properly.


- mightymouse2045 - 2012-02-27 18:54

wingrunr21 Wrote:I think your issue is Pulse. I'm running a nVidia card directly to ALSA with a Custom device (hdmi:CARD=NVidia,DEV=1) and get everything working to my receiver. I did have issues with the newest nvidia drivers (295.20) so I am currently running 290.10. Only issue I have is DTS output is choppy as none other so I currently have that disabled and just output PCM to the receiver. It is odd since DTS-HD works fine but I figured it was a bug.

@people getting choppy video: the choppiness is because the audio output device could not be opened to play back your stream. I saw the same issues when I ran my ATI card and tried to play HD audio (ATI cards only support two audio channels via HDMI). You need to make sure you are sending sound out of the correct interface and/or you are modprobing to enable the digital audio features properly.

Can I ask you if this is with an AE build on or after the 28th Jan? I have tried the above device, as well as plughw:1,7 and hw:1,7 and hw:CARD=1,DEV=7 and hw:CARD=NVidia,DEV=7

None of them work - it keeps giving me this in the log:

Code:
00:45:10 T:139930336474880   DEBUG: FactoryCodec - Audio: passthrough - Opening
00:45:10 T:139930336474880   DEBUG: FactoryCodec - Audio: passthrough - Failed
00:45:10 T:139930336474880   DEBUG: FactoryCodec - Audio: FFmpeg - Opening
00:45:10 T:139930336474880   DEBUG: FactoryCodec - Audio: FFmpeg - Opened
00:45:10 T:139930336474880  NOTICE: Creating audio thread
00:45:10 T:139929426679552   DEBUG: Thread CDVDPlayerAudio start, auto delete: 0
00:45:10 T:139929426679552  NOTICE: running thread: CDVDPlayerAudio::Process()
00:45:10 T:139930336474880   DEBUG: CheckPlayerInit - dropping packet type:2 dts:83000.000000 to get to start point at 125000.000000
00:45:10 T:139929426679552  NOTICE: Creating audio stream (codec id: 86020, channels: 6, sample rate: 48000, no pass-through)
00:45:10 T:139930336474880   DEBUG: CheckPlayerInit - dropping packet type:2 dts:42000.000000 to get to start point at 125000.000000
00:45:10 T:139933336242048   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
00:45:10 T:139929426679552   DEBUG: PulseAudio: Stream ready
00:45:10 T:139929426679552    INFO: PulseAEStream::Initialized
00:45:10 T:139929426679552    INFO:   Sample Rate   : 48000
00:45:10 T:139929426679552    INFO:   Sample Format : AE_FMT_S16NE
00:45:10 T:139929426679552    INFO:   Channel Count : 6
00:45:10 T:139929426679552    INFO:   Channel Layout: FL,FR,FC,LFE,SL,SR
00:45:10 T:139929426679552    INFO:   Frame Size    : 12
00:45:10 T:139929426679552    INFO:   Cache Size    : 144000
00:45:10 T:139929426679552   DEBUG: CDVDPlayerAudio:: synctype set to 0: clock feedback
00:45:10 T:139929426679552   DEBUG: CDVDPlayerAudio:: Discontinuity - was:112551.874000, should be:0.000000, error:-112551.874000
00:45:10 T:139929426679552   DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_RESYNC(10000.000000, 1)
00:45:10 T:139930336474880   DEBUG: CDVDPlayer::HandleMessages - player started 1

I have tried going back to previous commits, I have played around with default devices etc but everything i do the passthrough fails to open and it just plays via Pulse Audio and I get PCM only appearing on the receiver...

But if I use the above devices and run aplay on the command line it plays correctly and shows the correct audio stream...

I am stumped at this point


- wingrunr21 - 2012-02-28 20:13

I'm running AE master merged with Eden RC1.

I still think your issue is Pulse. Backup and remove /etc/asound.conf, reboot, and see if you can get the passthrough to work.


- mightymouse2045 - 2012-02-29 03:37

wingrunr21 Wrote:I'm running AE master merged with Eden RC1.

I still think your issue is Pulse. Backup and remove /etc/asound.conf, reboot, and see if you can get the passthrough to work.

Hi,

Is that from the standard AE git latest build, or the git when it was merged on the 28th Jan, or the latest AE git merged with the latest Eden RC1 git? if the latter how did you do that?

I can get passthrough working as expected with the latest RC1 Eden build by disabling navigation sounds in XBMC. I understand all the various hdmi:,hw:,plughw: options, and have them working without issue.

What I think is happening is somehow the alsa driver is getting held open in AE but the logs or logging method has changed so it's not clear from the logs whether it can't be found or if it's "device is busy", or even what interface it is trying to use.

It is now being logged simply as trying to open passthrough, opening passthrough failed. Which doesn't help me track down what the issue is.

With Eden the logs at least let me track down where the issue was, and I now have passthorugh working with that build... So if your saying we could somehow merge the builds so I had the best of both worlds that would be a great option in my opinion Smile

PS. I don't have an /etc/asound.conf I deleted it. The only entry I have modified is the /etc/pulse/default.pa to tell it to load the alsa hdmi:NVidia device as the default, and a probe mask setting the valid codec in my case Dev 1 as the NVidia device and masking the other 3 non working devices.

I have tried disabling the pulse audio altogether, not building with pulse support, setting gstreamer properties to various outputs and all of them have failed.