Kodi Community Forum

Full Version: [AppleTV] Playing Video Crashes the System Audio
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm having this really strange issue where when i play a video file that has multi channel audio such as AC3 it seems to crash the system audio. By crash i mean before i play the file i have perfect audio, in appletv frontrow, in xbmc for all the menu sounds etc; but after i play the file then press stop (as sound doesn't work), i loose ALL sound, eg no menu clicks in xbmc, no menu clicks in appletv frontrow, nothing at all. The only solution is to reboot the machine. Everything i have to watch is recorded in HD so

I'm not sure what started this (have been running this setup for years), i say that because i was tinkering with new versions then i went away for work and now i can't recall exactly when the problem started.

I'm currently running Dharma Beta 4, i have a Crystal HD with the latest driver (27oct2010) which i download using the launcher add-in link, I output via hdmi to my TV (no 5.1 decoder, just the tv - its in the bedroom).

I've tried every combination of Analogue/HDMI with Default/Built In Line Out and nothing seems to make a difference. I haven't checked the options in system>audio for multi-channel capable receivers although in desperation i tried that once also and it didn't help (as expected).

Following is the log for an mkv file with ac3 audio
http://pastebin.com/1UbkdnX1

I noticed in the log the following lines which caught my attention:
09:25:35 T:51919872 M: 11472896 NOTICE: Opening audio stream: 1 source: 256
09:25:35 T:51919872 M: 11476992 NOTICE: Finding audio codec for: 86020
09:25:35 T:51919872 M: 11448320 DEBUG: FactoryCodec - Audio: PassthroughFFmpeg - Opening
09:25:36 T:51919872 M: 10416128 INFO: CDVDAudioCodecPassthroughFFmpeg::Open - Won't transcode for HDMI
09:25:36 T:51919872 M: 10412032 DEBUG: FactoryCodec - Audio: PassthroughFFmpeg - Failed
09:25:36 T:51919872 M: 10047488 DEBUG: FactoryCodec - Audio: FFmpeg - Opening
09:25:36 T:51919872 M: 9916416 DEBUG: FactoryCodec - Audio: FFmpeg - Opened
09:25:36 T:51919872 M: 9920512 INFO: CDVDAudioCodecFFmpeg::GetChannelMap - FFmpeg reported 6 channels, but the layout contains 0 ignoring

First i say the 'won't transcode', but then it says it finds 0 channels?

This file, along with the other dozen i've tried from various sources, is working perfectly on my mac, windows pc, linux etc. XBMC/quicktime/vlc/whatever. Definately not a file problem.

I've been tinkering with HD, xbmc, crystalhd, dts amps etc for years and i gotta say this one has me beat. Does anyone have any ideas on what to check?

Thanks in advance!
I sure am struggling with this. In desperation I reset the appletv to factory defaults and setup again from scratch using latest everything. No joy, same problem. Please help?
this quirk has been covered already and is a know issue. search and ye shall find.
Not sure of this is related,

Using latest firmware atv + Dharma RC1 HDMI connected straight to TV. I have HDMI set as audio under systems. Using a AC3 5.1 file, I get really high pitched noise instead of audio. This is what happens when I start the movie, issue seems to be related to:

19:34:36 T:54480896 M: 4866048 ERROR: CCoreAudioDevice::SetMixingSupport: Unable to set MixingSupport to 'Off'. Error = 0x65706f6e (nope)

Interesting enough on the mac using the same Dharma version, the same file plays fine. No so it seems like a setup issue, please help.

===start movie====
19:34:36 T:2684407808 M: 10268672 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
19:34:36 T:52253184 M: 10268672 NOTICE: Creating InputStream
19:34:36 T:52253184 M: 9990144 NOTICE: Creating Demuxer
19:34:36 T:52253184 M: 3657728 NOTICE: Opening video stream: 0 source: 256
19:34:36 T:52253184 M: 3674112 NOTICE: Creating video codec with codec id: 13
19:34:36 T:52253184 M: 3674112 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: MPEG-4 part 2
19:34:36 T:52253184 M: 3674112 NOTICE: Creating video thread
19:34:36 T:52253184 M: 3670016 NOTICE: Opening audio stream: 1 source: 256
19:34:36 T:52253184 M: 3670016 NOTICE: Finding audio codec for: 86020
19:34:36 T:52253184 M: 3653632 NOTICE: Creating audio thread
19:34:36 T:54480896 M: 3649536 NOTICE: running thread: CDVDPlayerAudio:Tonguerocess()
19:34:36 T:54760448 M: 3649536 NOTICE: running thread: video_thread
19:34:36 T:54480896 M: 3657728 NOTICE: Creating audio device with codec id: 86020, channels: 2, sample rate: 48000, pass-through
19:34:36 T:54760448 M: 2994176 NOTICE: fps: 25.000000, pwidth: 720, pheight: 400, dwidth: 720, dheight: 400
19:34:36 T:54480896 M: 4866048 ERROR: CCoreAudioDevice::SetMixingSupport: Unable to set MixingSupport to 'Off'. Error = 0x65706f6e (nope)
19:34:36 T:54760448 M: 5013504 WARNING: CRenderManager::Configure - timeout waiting for previous frame
19:34:36 T:54760448 M: 5013504 NOTICE: Display resolution DESKTOP : 1280x720 @ 60.00 - Full Screen (12)
19:34:37 T:2684407808 M: 3620864 NOTICE: Using GL_TEXTURE_2D
19:34:37 T:2684407808 M: 3637248 NOTICE: GL: ARB shaders support detected
19:34:37 T:2684407808 M: 3624960 NOTICE: GL: Selecting Single Pass ARB YUV2RGB shader
19:34:37 T:2684407808 M: 3633152 NOTICE: GL: No vertex shader, fixed pipeline in use
19:34:37 T:2684407808 M: 3616768 NOTICE: GL: NPOT texture support detected
19:34:37 T:2684407808 M: 3616768 NOTICE: GL: Using GL_ARB_pixel_buffer_object
19:34:40 T:52625408 M: 3989504 NOTICE: ES: Client from 127.0.0.1 timed out
19:34:42 T:2684407808 M: 3993600 NOTICE: CDVDPlayer::CloseFile()
19:34:42 T:2684407808 M: 4005888 NOTICE: DVDPlayer: waiting for threads to exit
19:34:42 T:52253184 M: 4001792 NOTICE: CDVDPlayer::OnExit()
19:34:42 T:52253184 M: 4005888 NOTICE: DVDPlayer: closing audio stream
19:34:42 T:52253184 M: 4001792 NOTICE: Closing audio stream
19:34:42 T:52253184 M: 4005888 NOTICE: Waiting for audio thread to exit
19:34:42 T:54480896 M: 4001792 NOTICE: thread end: CDVDPlayerAudio::OnExit()
19:34:42 T:52253184 M: 4030464 NOTICE: Closing audio device
19:34:42 T:52253184 M: 4030464 NOTICE: Deleting audio codec
19:34:42 T:52253184 M: 4075520 NOTICE: DVDPlayer: closing video stream
19:34:42 T:52253184 M: 4071424 NOTICE: Closing video stream
19:34:42 T:52253184 M: 4075520 NOTICE: waiting for video thread to exit
19:34:42 T:54760448 M: 4071424 NOTICE: thread end: video_thread
19:34:42 T:52253184 M: 4710400 NOTICE: deleting video codec
19:34:42 T:52253184 M: 6565888 NOTICE: CDVDPlayer::OnExit() deleting demuxer
19:34:42 T:52253184 M: 14127104 NOTICE: CDVDPlayer::OnExit() deleting input stream
19:34:42 T:2684407808 M: 14184448 NOTICE: DVDPlayer: finished waiting
19:34:42 T:2684407808 M: 14659584 NOTICE: CDVDPlayer::CloseFile()
19:34:42 T:2684407808 M: 14675968 WARNING: CDVDMessageQueue(player):Tongueut MSGQ_NOT_INITIALIZED
19:34:42 T:2684407808 M: 14733312 NOTICE: DVDPlayer: waiting for threads to exit
19:34:42 T:2684407808 M: 14733312 NOTICE: DVDPlayer: finished waiting
===stoped movie===
I came across another earlier thread about this (missed it somehow... Fail). I think my issue was fixed by going into the appletv settings (as in the actual Apple TV settings, not xbmc at all), and disabiling the DTS setting.
Do u remember where you found that setting? I can only find Dolby digital?