CDVDPlayerAudio:: Discontinuity issue
#1
Hi there,

ATV1 user here, I'm facing an issue with intermittent stuttering when playing a video content that my setup should have absolutely no issue with (like an SD TV show episode). Looking at the log I see mentions of CDVDPlayerAudio:: Discontinuity, and I've seen several threads about this with no resolution whatsoever apart from the stock answer "please upgrade to the latest version".

So my question is, how would I go about investigating this ? any help welcome.

My setup:
ATV1 with CrystalHD (BCM7015) enabled, running XBMC 11.0, A/V Sync disabled.
The files are stored on a NAS (QNAP 419P) accessed through an NFS mount. Transfer rate out of the NAS oscillates between 115 Kbps and 330Kbps.

An example of content exhibiting this issue: mp4 file with SD video and 120Kbps AAC.

Code:
22:31:43 T:3021277456   DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
22:31:43 T:3021277456   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
22:31:43 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:134275033.144637, should be:134293701.544963, error:18668.400326
22:31:43 T:3021277456   DEBUG: ------ Window Deinit (DialogSeekBar.xml) ------
22:32:44 T:2880019344  NOTICE: ES: Client  from 127.0.0.1 timed out
22:33:35 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:246602149.455963, should be:246592139.131895, error:-10010.324068
22:35:28 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:359904006.032895, should be:359893946.238696, error:-10059.794199
22:37:21 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:472202615.907696, should be:472192587.405277, error:-10028.502420
22:39:13 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:584501736.350277, should be:584491711.432556, error:-10024.917721
22:39:14 T:2636102544 WARNING: CALSADirectSound::GetSpace - get space failed. err: -32 (Broken pipe)
22:39:14 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:585160503.813556, should be:584661391.724553, error:-499112.089002
22:39:14 T:2636102544   ERROR: GetDelay - snd_pcm_delay, alsa error: -32 - Broken pipe
22:39:14 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:584808595.286554, should be:584938500.606405, error:129905.319851
22:41:09 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:700255495.329405, should be:700245454.739525, error:-10040.589880
22:41:10 T:2636102544 WARNING: CALSADirectSound::GetSpace - get space failed. err: -32 (Broken pipe)
22:41:10 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:700937203.371525, should be:700416037.716232, error:-521165.655292
22:42:53 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:803701043.845232, should be:803691008.234929, error:-10035.610303
22:44:46 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:915999585.496929, should be:915989544.860889, error:-10040.636039
22:46:38 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:1028298692.270889, should be:1028288656.319688, error:-10035.951201
22:46:39 T:2636102544 WARNING: CALSADirectSound::GetSpace - get space failed. err: -32 (Broken pipe)
22:46:39 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:1029017886.571688, should be:1028458705.150889, error:-559181.420799
22:48:22 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:1131744247.270889, should be:1131734194.416142, error:-10052.854747
22:50:14 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:1244042809.816142, should be:1244032786.230337, error:-10023.585805
22:52:06 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:1356340764.849337, should be:1356330755.385625, error:-10009.463713
22:52:07 T:2636102544 WARNING: CALSADirectSound::GetSpace - get space failed. err: -32 (Broken pipe)
22:52:07 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:1357028589.776625, should be:1356501371.818563, error:-527217.958062
22:52:07 T:2636102544 WARNING: CALSADirectSound::GetSpace - get space failed. err: -32 (Broken pipe)
22:52:07 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:1356660793.413563, should be:1356799809.843745, error:139016.430182
22:54:03 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:1472117629.018745, should be:1472107586.320290, error:-10042.698455
22:55:55 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:1584415651.338289, should be:1584405612.343020, error:-10038.995270
22:57:47 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:1696714220.198020, should be:1696704217.218716, error:-10002.979304
22:59:40 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:1809013126.457716, should be:1809003092.141030, error:-10034.316686
23:01:32 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:1921312137.716030, should be:1921302109.425292, error:-10028.290737
23:03:24 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:2033610480.157292, should be:2033600465.179096, error:-10014.978196
23:03:25 T:2636102544 WARNING: CALSADirectSound::GetSpace - get space failed. err: -32 (Broken pipe)
23:03:25 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:2034268119.432096, should be:2033770705.640895, error:-497413.791202
23:05:08 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:2137055948.056895, should be:2137045916.964657, error:-10031.092238
23:07:00 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:2249354086.819656, should be:2249344069.650380, error:-10017.169276
23:08:53 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:2361675025.056380, should be:2361665001.168892, error:-10023.887488
23:08:53 T:2636102544 WARNING: CALSADirectSound::GetSpace - get space failed. err: -32 (Broken pipe)
23:08:53 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:2362372568.564892, should be:2361834704.522883, error:-537864.042009
23:08:53 T:2636102544 WARNING: CALSADirectSound::GetSpace - get space failed. err: -32 (Broken pipe)
23:08:54 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:2361998600.473883, should be:2362154936.926920, error:156336.453037
23:10:52 T:2636102544   DEBUG: CDVDPlayerAudio:: Discontinuity - was:2480481438.765921, should be:2480471335.901497, error:-10102.864424
23:12:08 T:2657082256 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
23:12:09 T:2657082256    INFO: CDVDPlayerVideo - Stillframe detected, switching to forced 23.976024 fps
23:12:09 T:2657082256   DEBUG: CPullupCorrection: pattern lost on diff 208541.666667
23:12:09 T:2636102544   DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_EOF
Reply
#2
full debug log (wiki) needed via pastebin.com
Reply
#3
Full debug log on pastebin here.

The visible artefact (video/audio freeze for about half a second) occurs at 14:12:12 at the bottom of the log (I would guess on the "broken pipe" line). I stopped playing after the first one but it typically happens about every 10mn but it's unpredictable (ie non repeatable at the exact same location).
Reply
#4
I have the same issue:
symptoms: every 15-20 minutes the audio drops for 1-2 seconds. I have tried various streams, SMB, local pen drive, local USB2 drive.
I have Xtreamer Ultra 2 with openelec/XBMC 1.95 from August 22nd 2012.

08:30:31 T:140611602970432 NOTICE: -----------------------------------------------------------------------
08:30:31 T:140611602970432 NOTICE: Starting XBMC (11.0 Git:a76f5d4), Platform: Linux (OpenELEC_PVR - Version: 1.95.7, 3.2.28 x86_64). Built on Aug 22 2012

10:51:10 T:140610988144384 DEBUG: CDVDPlayerAudio:: Discontinuity - was:1069696664.538668, should be:1069686598.843546, error:-10065.695121
10:52:03 T:140610988144384 DEBUG: CDVDPlayerAudio:: Discontinuity - was:1122464250.146546, should be:1122454217.277677, error:-10032.868869
10:52:56 T:140610988144384 DEBUG: CDVDPlayerAudio:: Discontinuity - was:1175206993.604677, should be:1175196975.758057, error:-10017.846620
10:53:49 T:140610988144384 DEBUG: CDVDPlayerAudio:: Discontinuity - was:1228009344.518057, should be:1227999307.783024, error:-10036.735033
10:54:41 T:140610988144384 DEBUG: CDVDPlayerAudio:: Discontinuity - was:1280695158.027024, should be:1280685136.425545, error:-10021.601478
10:55:34 T:140610988144384 DEBUG: CDVDPlayerAudio:: Discontinuity - was:1333429591.005545, should be:1333419575.127212, error:-10015.878334
10:56:27 T:140610988144384 DEBUG: CDVDPlayerAudio:: Discontinuity - was:1386141474.672212, should be:1386131442.143940, error:-10032.528272
full log file:

http://pastebin.com/A2UVm8Qj

Reply
#5
Similar issues:

http://forum.xbmc.org/showthread.php?tid=140971

Reply
#6
The real issue is with SoftAE


22:39:14 T:2636102544 WARNING: CALSADirectSound::GetSpace - get space failed. err: -32 (Broken pipe)
22:39:14 T:2636102544 DEBUG: CDVDPlayerAudio:: Discontinuity - was:585160503.813556, should be:584661391.724553, error:-499112.089002
22:39:14 T:2636102544 ERROR: GetDelay - snd_pcm_delay, alsa error: -32 - Broken pipe

This is a known problem that is being worked on.
Reply
#7
(2012-09-23, 11:33)jansef Wrote: I have the same issue:
symptoms: every 15-20 minutes the audio drops for 1-2 seconds. I have tried various streams, SMB, local pen drive, local USB2 drive.
I have Xtreamer Ultra 2 with openelec/XBMC 1.95 from August 22nd 2012.

08:30:31 T:140611602970432 NOTICE: -----------------------------------------------------------------------
08:30:31 T:140611602970432 NOTICE: Starting XBMC (11.0 Git:a76f5d4), Platform: Linux (OpenELEC_PVR - Version: 1.95.7, 3.2.28 x86_64). Built on Aug 22 2012

10:51:10 T:140610988144384 DEBUG: CDVDPlayerAudio:: Discontinuity - was:1069696664.538668, should be:1069686598.843546, error:-10065.695121
10:52:03 T:140610988144384 DEBUG: CDVDPlayerAudio:: Discontinuity - was:1122464250.146546, should be:1122454217.277677, error:-10032.868869
10:52:56 T:140610988144384 DEBUG: CDVDPlayerAudio:: Discontinuity - was:1175206993.604677, should be:1175196975.758057, error:-10017.846620
10:53:49 T:140610988144384 DEBUG: CDVDPlayerAudio:: Discontinuity - was:1228009344.518057, should be:1227999307.783024, error:-10036.735033
10:54:41 T:140610988144384 DEBUG: CDVDPlayerAudio:: Discontinuity - was:1280695158.027024, should be:1280685136.425545, error:-10021.601478
10:55:34 T:140610988144384 DEBUG: CDVDPlayerAudio:: Discontinuity - was:1333429591.005545, should be:1333419575.127212, error:-10015.878334
10:56:27 T:140610988144384 DEBUG: CDVDPlayerAudio:: Discontinuity - was:1386141474.672212, should be:1386131442.143940, error:-10032.528272
full log file:

http://pastebin.com/A2UVm8Qj

I think this is the same issue I came across with Transcoding 5.1 AAC to 5.1 AC3. The workaround that I used was:
I should also say that mutil-channel audio transcoding from AAC to AC3 also has caused issues with stuttering video (not framedropping tho). When playing MP4 files containing H264 and AAC I have to disable Dolby Digital capable receiver and DTS capable received from System Settings | Audio Output. mkv files containing H264 and AC3 are fine however.

Other thread
Reply
#8
That workaround will work for receivers which accept AAC or with 2.0 AAC.

I just found the issue with transcoding in general last night - just need to clean up and will push the fix in the next couple of days.
System: XBMC HTPC with HDMI WASAPI & AudioEngine - Denon  AVR-3808CI  - Denon DVD-5900 Universal Player  - Denon DCM-27 CD-Changer
- Sony BDP-S580 Blu-Ray  - X-Box 360  - Android tablet wireless remote - 7.1 Streem/Axiom/Velodyne Surround System
If I have been able to help feel free to add to my reputation +/- below - thanks!
Reply
#9
(2012-09-25, 00:15)DDDamian Wrote: That workaround will work for receivers which accept AAC or with 2.0 AAC.

I just found the issue with transcoding in general last night - just need to clean up and will push the fix in the next couple of days.

If you want anything tested, let me know.
Reply
#10
Thx Chris - just testing fix on a couple of systems but quite sure I've found the root cause.
System: XBMC HTPC with HDMI WASAPI & AudioEngine - Denon  AVR-3808CI  - Denon DVD-5900 Universal Player  - Denon DCM-27 CD-Changer
- Sony BDP-S580 Blu-Ray  - X-Box 360  - Android tablet wireless remote - 7.1 Streem/Axiom/Velodyne Surround System
If I have been able to help feel free to add to my reputation +/- below - thanks!
Reply
#11
I started a thread recently here where I was experiencing stuttering in similar circumstances.

the relevant part from my debug log is:

13:15:53 T:2144 DEBUG: CDVDPlayerAudio:: Discontinuity - was:1443731157.789751, should be:1441698004.479566, error:-2033153.310186

I didn't get any replies from the devs, I think they were all at the dev conference at the time!

Anyway, I'm hoping very much that the forthcoming fix will sort my problem too - it's driving me crazy.
Reply
#12
Tongue 
Good progress. Could I test the patch on my Xtreamer Ultra 2? Any hints?
Thanks!
Reply
#13
Any fix for this yet? I never had this before with Eden 11.0 but now i started to have it to. Driving me maaad!
Reply
#14
Hi,

I have the same issue only I believe it is crashing my ATV2.
log is here: http://xbmclogs.com/show.php?id=12812

Can this be the cause of the crashes?
Reply
#15
This is still a problem in many machines and OS's and hasn't had any attention to get any fixes, for e.g. Current git build of master still displays the same errors in logs

I'm in Linux Ubuntu with a ion1 and have tons of these messages in logs.

Any fix at all, now that xbmc is in feature freeze?

uNi
Reply



Logout Mark Read Team Forum Stats Members Help
CDVDPlayerAudio:: Discontinuity issue0
This forum uses Lukasz Tkacz MyBB addons.