Kodi Community Forum
OS X Video stutter, no audio, after reconnecting HDMI output - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Mac OS X (https://forum.kodi.tv/forumdisplay.php?fid=56)
+---- Thread: OS X Video stutter, no audio, after reconnecting HDMI output (/showthread.php?tid=175595)

Pages: 1 2 3


Video stutter, no audio, after reconnecting HDMI output - doug316 - 2013-10-13

I can reproduce this, across 12.2, as well as the Oct 1 monthly Gotham build.

I have a 2012 MacMini connected via HDMI to a Denon AVR, then via HDMI to a Samsung LCD.

Typically I leave XBMC running and turn off the AVR/TV when not in use. If I power up the AVR/TV (no video in progress, paused, etc.) and then try to play a new video, I almost always get the stuttering and lack of audio. Restarting XBMC fixes it every time.

I'm wondering, is the output buffer not being flushed when a video is started? Any other tips in fixing this?

Code:
15:52:30 T:140735145615744 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
15:52:30 T:4403134464    INFO: CDVDAudioCodecPassthroughFFmpeg::SetupMuxer - Trying to setup spdif muxer
15:52:30 T:4403134464    INFO: CDVDAudioCodecPassthroughFFmpeg::SetupMuxer - spdif muxer ready
15:52:30 T:4643622912    INFO: CDVDPlayerVideo - Stillframe left, switching to normal playback
15:52:30 T:4649914368    INFO: CCoreAudioAE::MakeStream - AE_FMT_AC3, 48000, 48000, RAW,RAW
                                            #define XBMC_texture_rectangle 0
                                            #define XBMC_texture_rectangle_hack 0
                                            #define XBMC_STRETCH 0
                                            #define XBMC_YV12
15:52:31 T:4649914368 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
15:52:31 T:4649914368 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
15:52:31 T:4649914368 WARNING: Previous line repeats 7 times.
15:52:31 T:4649914368 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
15:52:31 T:4662546432 WARNING: Previous line repeats 13 times.
15:52:33 T:4649914368   ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
15:52:35 T:4649914368   ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
15:52:35 T:4649914368   ERROR: AddPackets - failed to add leftover bytes to render
15:52:37 T:4649914368   ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
15:52:38 T:4649914368   ERROR: AddPackets - failed to add leftover bytes to render



RE: Video stutter, no audio, after reconnecting HDMI output - Memphiz - 2013-10-13

try setting the output device to default in xbmc audio settings


RE: Video stutter, no audio, after reconnecting HDMI output - chucklin72 - 2013-10-14

I'm experiencing the same problem. Audio output device is set at default when its happening. Its very consistent at about 1 hour into any playback.

At 22:56 I started watching a movie. At 23:43 I start seeing the problem. The video becomes halted, showing one frame every 2 seconds.

Mac Mini 2Ghz Intel Core i7 with OSX 10.8.5 playing through HDMI ( audio also to HDMI ).
In XBMC: audio output HDMI, audio output device default.




22:56:31 T:2887359016 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
22:56:31 T:2953318400 NOTICE: Thread CDVDPlayer start, auto delete: false
22:56:31 T:2953318400 NOTICE: Creating InputStream
22:56:31 T:2953318400 NOTICE: Creating Demuxer
22:56:31 T:2953318400 NOTICE: Opening video stream: 1 source: 256
22:56:31 T:2953318400 NOTICE: Creating video codec with codec id: 28
22:56:31 T:2953318400 NOTICE: Creating video thread
22:56:31 T:2957119488 NOTICE: Thread CDVDPlayerVideo start, auto delete: false
22:56:31 T:2957119488 NOTICE: running thread: video_thread
22:56:31 T:2953318400 NOTICE: Opening audio stream: 0 source: 256
22:56:31 T:2953318400 NOTICE: Finding audio codec for: 86018
22:56:31 T:2953318400 NOTICE: Creating audio thread
22:56:31 T:2960846848 NOTICE: Thread CDVDPlayerAudio start, auto delete: false
22:56:31 T:2960846848 NOTICE: running thread: CDVDPlayerAudio:Tonguerocess()
22:56:31 T:2960846848 NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 48000, no pass-through)
22:56:31 T:2957119488 NOTICE: fps: 29.970030, pwidth: 1280, pheight: 540, dwidth: 1280, dheight: 540
22:56:31 T:2957119488 NOTICE: Display resolution DESKTOP : 1920x1080 @ 60.00 - Full Screen (16)
22:56:31 T:2887359016 NOTICE: Using GL_TEXTURE_2D
22:56:31 T:2960846848 ERROR: CCoreAudioDevice::SupportsMixing: Device mixing support : 'No'.
22:56:31 T:2887359016 ERROR: Previous line repeats 1 times.
22:56:31 T:2887359016 NOTICE: GL: Selecting Single Pass YUV 2 RGB shader
22:56:31 T:2887359016 NOTICE: GL: NPOT texture support detected
22:56:31 T:2887359016 NOTICE: GL: Using GL_ARB_pixel_buffer_object
22:56:31 T:2963578880 NOTICE: Thread Jobworker start, auto delete: true
23:43:08 T:2960846848 ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
23:43:09 T:2960846848 ERROR: Previous line repeats 1 times.
23:43:09 T:2960846848 ERROR: AddPackets - failed to add leftover bytes to render
23:43:10 T:2960846848 ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
23:43:11 T:2960846848 ERROR: Previous line repeats 1 times.


RE: Video stutter, no audio, after reconnecting HDMI output - chucklin72 - 2013-10-14

Nevermind I just found this.

http://forum.xbmc.org/showthread.php?tid=148243&page=35


RE: Video stutter, no audio, after reconnecting HDMI output - Memphiz - 2013-10-15

chucklin72 - yours is unrelated ...


RE: Video stutter, no audio, after reconnecting HDMI output - doug316 - 2013-10-19

There is no "default" available. Oddly if I set it to Optical/Coax I still get sound even thought that's not connected in my case.

This is pretty frustrating as I need to restart XBMC every time I turn on the TV/AMP. Stopping and starting a new video doesn't help. Each new version I try has the same issue. It seems like something's not getting reset, flushed, etc. when a new episode is played, which I think could be possible.

Can anyone provide any guidance to help me dig into the code and diagnose this? Are there known bugs, issues, etc.?


RE: Video stutter, no audio, after reconnecting HDMI output - Ned Scott - 2013-10-20

Scroll further down to where it says "output device".


RE: Video stutter, no audio, after reconnecting HDMI output - Riderzzz - 2013-10-21

I have the same problem, normally when i pause a movie and my amplifier goes off. Put my amplifier back on, and resuming or restarting the movie will end in stutter and lost audio, restarting xbmc helps.
Sometimes the stutter goes away but the sound stays away.

Atm I'm not near my machine, when it am I can post my log.

Mac mini i5, frodo 12.2, optical sound


RE: Video stutter, no audio, after reconnecting HDMI output - Memphiz - 2013-10-22

Pausing - ripping off the receiver under our asses - put it on - resume <- better forget that use case for now ...


RE: Video stutter, no audio, after reconnecting HDMI output - jjd-uk - 2013-10-22

Perhaps try the Pin 19 trick, see http://forum.xbmc.org/showthread.php?tid=158432&pid=1357945#pid1357945

Not sure if this would work on OS-X though.


RE: Video stutter, no audio, after reconnecting HDMI output - doug316 - 2013-10-23

(2013-10-20, 02:09)Ned Scott Wrote: Scroll further down to where it says "output device".

Am I looking in the wrong place?

Screen Shot


RE: Video stutter, no audio, after reconnecting HDMI output - Memphiz - 2013-10-23

go levt and set settings level to advanced to see the option ...


RE: Video stutter, no audio, after reconnecting HDMI output - Scaggs - 2013-10-25

I have exact same problem - easy fix without rebooting all of XBMC

Mac Mini Mid 2011 with ATI Graphics card
Monitor 1 = Dell 1080p monitor connected via HDMI port
Monitor 2 = Samsung 48inch TV connected via thunderbolt adapter to hdmi port
XBMC set to full screen on Monitor 2 Samsung 48 inch TV

If I tell my mac mini to out put the sound to my Dell monitor when im using the computer for other things, it causes xbmc video playback to take a dive.

To fix this you dont need to restart xbmc, simply make sure the mac mini is set for it's output to be whatever the xbmc is connected to. In my case, i need to tell the mac mini to output sound back through the Samsung HDMI. This is done via the system preferences - audio icon on the Mac.

Once that is done, i simply go into System options, then Audio settings in XBMC and toggle the Audio from whatever it was set to, to something else, then back to it's original setting. So in my case, it's normally set to the Optical "even though it's thunderbolt adapter to HDMI" I then change it to anything else, then right back to Optical and problem is solved.

Sometimes even when Xbmc is at idle for a while this will happen. all i do is toggle the audio settings in xbmc to something else then back to original setting and problem is solved.

this only happens to me when setting xbmc to full screen on Monitor 2


RE: Video stutter, no audio, after reconnecting HDMI output - Memphiz - 2013-10-25

Output device "default" should do this automagically ... i don't repeat it. If it doesn't work do a proper report of the problem.


RE: Video stutter, no audio, after reconnecting HDMI output - noone - 2014-01-02

I have the same issue, since running 12.2 XBMC. Not sure if it was in 12.1, but it definitely wasn't in Eden when I was running Eden on Lion. I thought maybe running 12.3 on Mavericks would fix the issue, but it didn't which is why I am posting here.

Mac mini 2010 running Mavericks and XBMC 12.3. Hooked up via HDMI to Denon AV receiver. Denon AV receiver is hooked up via HDMI to a Pioneer plasma.

Whenever I use my Harmony remote to turn on or switch back over to the Mac mini activity, I lose HDMI sound. Subsequent play of any video results in no audio and video stuttering. XBMC is not syncing the HDMI audio correctly.

Within XBMC, I have tried setting the Audio Output Device to both HDMI and Default, neither of which fix the issue. I have also played around with setting the Audio Output to Optical rather than HDMI. Nothing changes this odd behavior. If I go in and toggle the Audio Output Device, I get sound back and this fixes the issue. Yes, it's a workaround, but, this sucks and this workaround is definitely not wife and family friendly.

Does Eden work on Mavericks? This is definitely a show-stopper. I'm surprised more people haven't mentioned this issue.