2012-06-12, 12:24
Hey guys,
I have been trying to get pulseaudio's passthrough audio working, i have gotten XBMC 12.0 alpha 2 installed so i can use AE (thanks guys for that) but now im still seeing another problem i had encountered before.
When i play standard def content etc that uses the regular audio output its fine, however when i select a file that requires bitstreaming (DTS or DD for example) i get a video stream that plays faster than it should (somewhere between 2-4 times roughly) and no audio.
Having a look at the debug log, im seeing XBMC open the file, find ac3 audio with FFMPEG, start a VDPAU decoder session, start to stream AC3, it detects passthrough is needed, opens the audio passthrough, creates the audio stream as pass-through, then it starts spitting out a bunch of these:
09:51:22 T:140320511592192 DEBUG: CheckPlayerInit - dropping packet type:2 dts:375000.000000 to get to start point at 709000.000000
and after a few of those it does this:
09:51:22 T:140320498923264 DEBUG: PulseAudio: Stream failed
09:51:22 T:140320498923264 ERROR: PulseAudio: Waited for the stream but it failed
Then after that a LOT more of the above dropping packets while it trys to get to the start point.
After it seems to get to the start point, it switches and starts outputting these:
09:51:22 T:140320498923264 DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_RESYNC(32000.000000, 1)
09:51:22 T:140320498923264 DEBUG: CDVDPlayerAudio:: Discontinuity - was:32018.718000, should be:96000.000000, error:63981.282000
With the second error repeating with incrementing numbers forever until i stop the file.
Anybody got any idea, from what i have read the video plays faster when the sample rate is stuffed up and that seems to be the case.
I have uploaded the full log from the moment i start the file here:
http://xbmclogs.com/show.php?id=3507
If you need the full log from the start please let me know, i can produce it pretty quickly, it just ends up pretty big and exporting it to pastebin is a little more time consuming (dumping from my linux box to a windows PC that is not at the TV to upload it)
Any help would be really appreciated, i'm so close to getting proper pulseaudio with passthrough working, i dont want to revert to crippling PA and just pointing XBMC direct to the hardware again.
Oh 1 final point, i have pointed XBMC to the pulseaudio device for both regular and passthrough, however i cant change passthrough to anything other than pulseaudio defaults.
When i set standard audio to pulseaudio defaults SD content still works, I'm 99% that i have pulseaudio configured to default to the HDMI output anyway (i have turned off the onboard sound) but if anybody knows a command to confirm this (i have tried with pacmd but cant seem to see a way to see the current default, only to set one) that would be good.
Key info you may need if you have not seen my other post about the GIT problem:
Fedora 17, up to date with kernel 3.4.0-1.fc17.x86_64
NVidia GT520, running module version 295.53
XBMC 12.0 alpha2, compiled myself today from the zipball on github.
I have been trying to get pulseaudio's passthrough audio working, i have gotten XBMC 12.0 alpha 2 installed so i can use AE (thanks guys for that) but now im still seeing another problem i had encountered before.
When i play standard def content etc that uses the regular audio output its fine, however when i select a file that requires bitstreaming (DTS or DD for example) i get a video stream that plays faster than it should (somewhere between 2-4 times roughly) and no audio.
Having a look at the debug log, im seeing XBMC open the file, find ac3 audio with FFMPEG, start a VDPAU decoder session, start to stream AC3, it detects passthrough is needed, opens the audio passthrough, creates the audio stream as pass-through, then it starts spitting out a bunch of these:
09:51:22 T:140320511592192 DEBUG: CheckPlayerInit - dropping packet type:2 dts:375000.000000 to get to start point at 709000.000000
and after a few of those it does this:
09:51:22 T:140320498923264 DEBUG: PulseAudio: Stream failed
09:51:22 T:140320498923264 ERROR: PulseAudio: Waited for the stream but it failed
Then after that a LOT more of the above dropping packets while it trys to get to the start point.
After it seems to get to the start point, it switches and starts outputting these:
09:51:22 T:140320498923264 DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_RESYNC(32000.000000, 1)
09:51:22 T:140320498923264 DEBUG: CDVDPlayerAudio:: Discontinuity - was:32018.718000, should be:96000.000000, error:63981.282000
With the second error repeating with incrementing numbers forever until i stop the file.
Anybody got any idea, from what i have read the video plays faster when the sample rate is stuffed up and that seems to be the case.
I have uploaded the full log from the moment i start the file here:
http://xbmclogs.com/show.php?id=3507
If you need the full log from the start please let me know, i can produce it pretty quickly, it just ends up pretty big and exporting it to pastebin is a little more time consuming (dumping from my linux box to a windows PC that is not at the TV to upload it)
Any help would be really appreciated, i'm so close to getting proper pulseaudio with passthrough working, i dont want to revert to crippling PA and just pointing XBMC direct to the hardware again.
Oh 1 final point, i have pointed XBMC to the pulseaudio device for both regular and passthrough, however i cant change passthrough to anything other than pulseaudio defaults.
When i set standard audio to pulseaudio defaults SD content still works, I'm 99% that i have pulseaudio configured to default to the HDMI output anyway (i have turned off the onboard sound) but if anybody knows a command to confirm this (i have tried with pacmd but cant seem to see a way to see the current default, only to set one) that would be good.
Key info you may need if you have not seen my other post about the GIT problem:
Fedora 17, up to date with kernel 3.4.0-1.fc17.x86_64
NVidia GT520, running module version 295.53
XBMC 12.0 alpha2, compiled myself today from the zipball on github.