Kodi Community Forum

Full Version: pcm_open_lconf error and 720p mkv/AC3 weirdness with recent builds
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm getting all sorts of problems with recents builds including 720p mkv content that plays way to fast (with no sound coming from the speakers and a crash when i press stop), and crashes when attempting to play anything with AC3 audio (even AC3 speakertest audiofiles). Earlier builds were fine.

I found the following in xbmc.log after the 720p mkv crash:

Quote:00:19:03 T:2826468240 M:101117952 NOTICE: Creating audio device with codec id: 86020, channels: 2, sample rate: 48000, pass-through
00:19:03 T:2826468240 M:101117952 DEBUG: CALSADirectSound::CALSADirectSound - opening alsa device
00:19:03 T:2826468240 M:100773888 DEBUG: CALSADirectSound - using alsa device default:AES0=6
00:19:03 T:2826468240 M:100773888 ERROR: CALSADirectSound - pcm_open_lconf, alsa error: No such file or directory
00:19:03 T:2826468240 M:100773888 ERROR: CALSADirectSound::AddPackets - sanity failed. no valid play handle!
00:19:03 T:2826468240 M:100773888 DEBUG: CDVDPlayerAudio:: Resync - clock:0.000000, delay:-32000.000000
00:19:03 T:2834860944 M: 91742208 INFO: ffmpeg: [h264] Cannot parallelize deblocking type 1, decoding such frames in sequential order
00:19:03 T:2826468240 M: 91312128 ERROR: CALSADirectSound::AddPackets - sanity failed. no valid play handle!
00:19:03 T:2826468240 M: 91312128 DEBUG: CDVDPlayerAudio:: Discontinuty - was:18952.638000, should be:64000.000000, error:45047.362000

With a lot of repeats of the last two lines. Havent really pinpointed this to a specific revision, but will try to do so.
Stupid question - sound working fine in Ubuntu? Something software related dorked my Ubuntu today and no matter what I did I got screwed up output to my receiver. Rebuilt tonight and sound is back but I'm having a video issue heh.
@BLKMGK: I also got no sound in Kubuntu since I did an apt-get upgrade.
However Dolby Digital or DTS sound is still working.

@hrak: I have also noticed x264 content running too fast immediately after starting such a file but they stabilize here after some seconds.
@knatsch: That used to be the behaviour with me aswell (initially fast, and after a sec normal) but now it stays fast and there is no sound.
Hmz no way to edit posts..

I wonder what the "CALSADirectSound - pcm_open_lconf, alsa error: No such file or directory" is about. I am guessing that is the source of the problem. Anyone have any ideas?
I have the same problem. All sounds ok, but DD or DTS passthrough doesn't work. I only get it to work in mplayer with the '-ac hwac3' switch.
Check the XBMC log file. While looking for another problem on my box I found entries related to passthrough, perhaps that would be helpful?
if it's new it's probably cause of the change of audiodevice for ac3 passthrough. it was changed a few days ago. I have no idea why it was changed thou. will have to check svn log to see who did it.
I tracked it down to r11640 of "xbmc/cores/dvdplayer/ALSADirectSound.cpp". Reverting this to the previous r11512 fixes both the fast mkv playback with no sound and all other AC3 related problems.
Same error here... definitely related to having a passthrough.

For me, I have a passthrough setup and all my HD content works great. Though recently (not sure exactly when it started), most of my SD content now generates the same errors as above and plays the video at 60fps oppose to 24fps. Stopping the movie crashes xbmc.

Turning off my passthrough everything works great again, except missing my dts passthrough Smile

Sound works great in Kubuntu/mplayer/xbmc menu/etc etc...

Can post logs if need, but looks exactly the same as hrak's
hrak, yea just as I expected. will have to check with vulcan what that change was about.
Grabbed the latest svn this morning and now when my sound device is set to default (before I had it set to surround51 for the passthrough) my sd content works great as well as my passthrough still works.

Cheers,
xgrep
heh. surround51 for passthrough is definatly wrong Smile. it's for 6 channel decoded audio.
I got the same problem, hos du you fix it?
Apply the following patch to xbmc/cores/dvdplayer/ALSADirectSound.cpp:

Quote:--- ALSADirectSound.cpp (revision 11640)
+++ ALSADirectSound.cpp (revision 11639)
@@ -77,11 +77,7 @@
if (!m_bPassthrough)
device = g_guiSettings.GetString("audiooutput.audiodevice");
else
- {
device = g_guiSettings.GetString("audiooutput.passthroughdevice");
- if (device.Find("AES0=6") < 0)
- device += ":AES0=6";
- }

int nErr;

Or in other words: remove line 80, 82, 83 and 84.