Mac OS X - Video stutter, no audio, after reconnecting HDMI output

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
doug316 Offline
Junior Member
Posts: 8
Joined: Dec 2012
Reputation: 0
Question  Video stutter, no audio, after reconnecting HDMI output
Post: #1
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
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 10,666
Joined: Feb 2011
Reputation: 112
Location: germany
Post: #2
try setting the output device to default in xbmc audio settings

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
chucklin72 Offline
Junior Member
Posts: 4
Joined: Oct 2013
Reputation: 0
Post: #3
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)::Put 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::Process()
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.
(This post was last modified: 2013-10-14 05:58 by chucklin72.)
find quote
chucklin72 Offline
Junior Member
Posts: 4
Joined: Oct 2013
Reputation: 0
Post: #4
Nevermind I just found this.

http://forum.xbmc.org/showthread.php?tid=148243&page=35
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 10,666
Joined: Feb 2011
Reputation: 112
Location: germany
Post: #5
chucklin72 - yours is unrelated ...

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
doug316 Offline
Junior Member
Posts: 8
Joined: Dec 2012
Reputation: 0
Post: #6
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.?
find quote
Ned Scott Offline
Team-XBMC Wiki Guy
Posts: 19,911
Joined: Jan 2011
Reputation: 247
Location: Arizona, USA
Post: #7
Scroll further down to where it says "output device".

You can make easy links to the XBMC wiki using double brackets around common XBMC words: [[debug log]] = debug log, [[Video library]] = Video library, [[SMB]] = SMB , [[userdata]] = userdata, etc
find quote
Riderzzz Offline
Senior Member
Posts: 206
Joined: Sep 2007
Reputation: 1
Location: DK
Post: #8
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
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 10,666
Joined: Feb 2011
Reputation: 112
Location: germany
Post: #9
Pausing - ripping off the receiver under our asses - put it on - resume <- better forget that use case for now ...

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
jjd-uk Online
Team-XBMC Member
Posts: 2,754
Joined: Oct 2011
Reputation: 58
Post: #10
Perhaps try the Pin 19 trick, see http://forum.xbmc.org/showthread.php?tid...pid1357945

Not sure if this would work on OS-X though.
find quote
doug316 Offline
Junior Member
Posts: 8
Joined: Dec 2012
Reputation: 0
Post: #11
(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
(This post was last modified: 2013-10-23 15:50 by doug316.)
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 10,666
Joined: Feb 2011
Reputation: 112
Location: germany
Post: #12
go levt and set settings level to advanced to see the option ...

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Scaggs Offline
Junior Member
Posts: 2
Joined: Oct 2013
Reputation: 0
Post: #13
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
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 10,666
Joined: Feb 2011
Reputation: 112
Location: germany
Post: #14
Output device "default" should do this automagically ... i don't repeat it. If it doesn't work do a proper report of the problem.

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
noone Offline
Junior Member
Posts: 31
Joined: Dec 2011
Reputation: 0
Post: #15
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.
(This post was last modified: 2014-01-02 04:00 by noone.)
find quote
Post Reply