Hi there,
I have a file with audio encoded in "surround" format, ie. left, right, center and
1 rear channel (BC). The following behavior occurs when trying to play this file:
- The audio stream is AC3 and plays perfectly fine when using AC3 pass-through. The BC channel gets correctly mapped to BL and BR by the receiver.
- When letting XBMC decode and send to the receiver as PCM using WASAPI, no sound will play at all. Video is a 4fps diashow.
- In DirectSound mode, the file plays properly, but only the front channels will have audio, rear is silent (ie. apparently BC is completely ignored).
- Any pre-AE build played this file fine using WASAPI, with proper channel mapping (iirc). Likely DirectSound would have as well, but I never tried that.
Since the XBMC log said I might have set my speakers incorrectly in Windows, I tried with all available settings, which are Stereo, Quadrophonic, 5.1 (2x) and 7.1 - same result everytime.
Debug log (using WASAPI output):
Code:
21:52:09 T:1924 NOTICE: Enumerated WASAPI devices:
21:52:09 T:1924 NOTICE: Device 1
21:52:09 T:1924 NOTICE: m_deviceName : {15608EA1-DE66-4C2A-9F67-D8514309FF7F}
21:52:09 T:1924 NOTICE: m_displayName : HDMI - DENON-AVAMP (Intel(R) High Definition Audio HDMI)
21:52:09 T:1924 NOTICE: m_displayNameExtra: WASAPI: DENON-AVAMP (Intel(R) High Definition Audio HDMI)
21:52:09 T:1924 NOTICE: m_deviceType : AE_DEVTYPE_HDMI
21:52:09 T:1924 NOTICE: m_channels : FL,FR,FC,LFE,SL,SR,BL,BR
21:52:09 T:1924 NOTICE: m_sampleRates : 192000,176400,96000,88200,48000,44100,32000
21:52:09 T:1924 NOTICE: m_dataFormats : AE_FMT_DTS,AE_FMT_AC3,AE_FMT_S24NE4,AE_FMT_S24LE4,AE_FMT_S24BE4,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_S16BE,AE_FMT_LPCM
.
. unrelated stuff here
.
21:52:31 T:3620 NOTICE: Creating audio stream (codec id: 86019, channels: 4, sample rate: 48000, no pass-through)
21:52:31 T:3620 INFO: CSoftAE::MakeStream - AE_FMT_S16NE, 48000, FL,FR,FC,BC
.
. dvdplayer startup here
.
21:52:31 T:2460 DEBUG: CSoftAE::Run - Sink restart flagged
21:52:31 T:2460 INFO: CSoftAE::InternalOpenSink - Forcing samplerate to 192000
21:52:31 T:2460 DEBUG: CAESinkWASAPI::IsCompatible: Formats Incompatible due to different :Channels
21:52:31 T:2460 INFO: CSoftAE::InternalOpenSink - sink incompatible, re-starting
.
. more dvdplayer startup
.
21:52:31 T:1924 DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
21:52:31 T:1924 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
21:52:31 T:2460 ERROR: CAESinkWASAPI::InitializeExclusive: IsFormatSupported failed (AUDCLNT_E_UNSUPPORTED_FORMAT) - trying to find a compatible format
21:52:31 T:2252 DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/postproc-52.dll)
21:52:31 T:2460 ERROR: CAESinkWASAPI::InitializeExclusive: Unable to locate a supported output format for the device. Check the speaker settings in the control panel.
21:52:31 T:2460 INFO: CAESinkWASAPI::Initialize: Could not Initialize Exclusive with that format
21:52:31 T:2460 ERROR: CAESinkWASAPI::Initialize: WASAPI initialization failed.
21:52:31 T:2460 DEBUG: CSoftAE::InternalOpenSink - NULL Initialized:
21:52:31 T:2460 DEBUG: Output Device : HDMI - DENON-AVAMP (Intel(R) High Definition Audio HDMI)
21:52:31 T:2460 DEBUG: Sample Rate : 192000
21:52:31 T:2460 DEBUG: Sample Format : AE_FMT_FLOAT
21:52:31 T:2460 DEBUG: Channel Count : 3
21:52:31 T:2460 DEBUG: Channel Layout: FL,FR,FC
21:52:31 T:2460 DEBUG: Frames : 96000
21:52:31 T:2460 DEBUG: Frame Samples : 3
21:52:31 T:2460 DEBUG: Frame Size : 12
21:52:31 T:2460 DEBUG: CSoftAE::InternalOpenSink - Using speaker layout: 5.1
21:52:31 T:2460 DEBUG: CSoftAE::InternalOpenSink - Internal Buffer Size: 1152000
21:52:31 T:2460 DEBUG: AERemap: Downmix normalization is disabled
21:52:32 T:2252 NOTICE: fps: 23.976024, pwidth: 1920, pheight: 1080, dwidth: 1920, dheight: 1080
21:52:32 T:2252 DEBUG: CDVDPlayerVideo::OutputPicture - change configuration. 1920x1080. framerate: 23.98. format: YV12
21:52:32 T:2252 DEBUG: Found Resolution 1920x1080 @ 50.00 - Full Screen #2 (17) from override of fps 23.976 (fpsmin:23.000 fpsmax:24.500 refreshmin:49.990 refreshmax:50.010)
21:52:32 T:2252 NOTICE: Display resolution ADJUST : 1920x1080 @ 50.00 - Full Screen #2 (17) (weight: 0.043)
21:52:32 T:2252 NOTICE: D3D: rendering method forced to DXVA2 processor
21:52:32 T:2460 DEBUG: AERemap: Downmix normalization is disabled
21:52:32 T:2252 DEBUG: DXVA - processor found Edge directed device
21:52:32 T:2252 DEBUG: DXVA - processor found Bob Device
21:52:32 T:2252 DEBUG: DXVA - processor found Progressive Device
21:52:32 T:2252 DEBUG: DXVA - processor selected Progressive Device
21:52:32 T:2252 DEBUG: DXVA - processor requires 0 past frames and 0 future frames
21:52:32 T:2460 DEBUG: AERemap: Downmix normalization is disabled
21:52:32 T:2252 DEBUG: CWinRenderer::SelectRenderMethod: Selected render method 3: DXVA
21:52:32 T:2252 DEBUG: CVideoReferenceClock: Clock speed 100.100000%
21:52:32 T:1924 DEBUG: created video buffer 0
21:52:32 T:1924 DEBUG: created video buffer 1
21:52:32 T:1924 DEBUG: Activating window ID: 12005
21:52:32 T:1924 DEBUG: ------ Window Deinit (MyVideoNav.xml) ------
21:52:32 T:1924 DEBUG: ------ Window Init (VideoFullScreen.xml) ------
21:52:32 T:1924 INFO: Loading skin file: VideoFullScreen.xml, load type: KEEP_IN_MEMORY
21:52:32 T:2460 DEBUG: AERemap: Downmix normalization is disabled
21:52:32 T:2460 DEBUG: Previous line repeats 3 times.
21:52:32 T:2460 DEBUG: CSoftAEStream::CSoftAEStream - Converting from AE_FMT_S16NE to AE_FMT_FLOAT
21:52:32 T:3620 DEBUG: CDVDPlayerAudio:: synctype set to 2: resample
21:52:32 T:2460 DEBUG: CSoftAE::Run - Sink restart flagged
21:52:32 T:2460 INFO: CSoftAE::InternalOpenSink - Forcing samplerate to 192000
21:52:32 T:2460 INFO: CSoftAE::InternalOpenSink - sink incompatible, re-starting
21:52:32 T:2460 ERROR: CAESinkWASAPI::InitializeExclusive: IsFormatSupported failed (AUDCLNT_E_UNSUPPORTED_FORMAT) - trying to find a compatible format
21:52:32 T:4048 DEBUG: CDVDPlayer::HandleMessages - player started 1
21:52:32 T:2460 ERROR: CAESinkWASAPI::InitializeExclusive: Unable to locate a supported output format for the device. Check the speaker settings in the control panel.
21:52:32 T:2460 INFO: CAESinkWASAPI::Initialize: Could not Initialize Exclusive with that format
21:52:32 T:2460 ERROR: CAESinkWASAPI::Initialize: WASAPI initialization failed.
21:52:32 T:2460 DEBUG: CSoftAE::InternalOpenSink - NULL Initialized:
21:52:32 T:2460 DEBUG: Output Device : HDMI - DENON-AVAMP (Intel(R) High Definition Audio HDMI)
21:52:32 T:2460 DEBUG: Sample Rate : 192000
21:52:32 T:2460 DEBUG: Sample Format : AE_FMT_FLOAT
21:52:32 T:2460 DEBUG: Channel Count : 3
21:52:32 T:2460 DEBUG: Channel Layout: FL,FR,FC
21:52:32 T:2460 DEBUG: Frames : 96000
21:52:32 T:2460 DEBUG: Frame Samples : 3
21:52:32 T:2460 DEBUG: Frame Size : 12
21:52:32 T:2460 DEBUG: CSoftAE::InternalOpenSink - Using speaker layout: 5.1
21:52:32 T:2460 DEBUG: CSoftAE::InternalOpenSink - Internal Buffer Size: 1152000
21:52:32 T:2460 DEBUG: AERemap: Downmix normalization is disabled
21:52:32 T:2460 DEBUG: CSoftAEStream::CSoftAEStream - Converting from AE_FMT_S16NE to AE_FMT_FLOAT
21:52:32 T:3620 DEBUG: CDVDPlayerAudio - CDVDMsg::GENERAL_RESYNC(32000.000000, 1)
21:52:32 T:3620 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:32086.869867, should be:32000.000000, error:-86.869867
21:52:32 T:4048 DEBUG: CDVDPlayer::HandleMessages - player started 2
21:52:32 T:2252 DEBUG: CVideoReferenceClock: Clock speed 104.270833%
21:52:32 T:1924 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
21:52:32 T:3620 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:743364.195415, should be:640000.000000, error:-103364.195415
21:52:33 T:3620 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:1834676.553217, should be:1312000.000000, error:-522676.553217
21:52:34 T:3620 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:1911703.389859, should be:1312000.000000, error:-599703.389859
21:52:35 T:3620 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:1910631.559510, should be:1312000.000000, error:-598631.559510
21:52:35 T:3620 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:1911601.180989, should be:1312000.000000, error:-599601.180989
21:52:36 T:3620 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:1911534.404528, should be:1312000.000000, error:-599534.404528
21:52:36 T:3620 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:1914583.635815, should be:1312000.000000, error:-602583.635815
21:52:37 T:3620 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:1896860.617764, should be:1312000.000000, error:-584860.617764
21:52:37 T:3620 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:1909241.859575, should be:1312000.000000, error:-597241.859575
21:52:38 T:3620 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:1911235.954627, should be:1312000.000000, error:-599235.954627
21:52:39 T:3620 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:1911145.670126, should be:1312000.000000, error:-599145.670126
21:52:39 T:3620 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:1909999.908693, should be:1312000.000000, error:-597999.908693
21:52:40 T:3620 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:1915098.768519, should be:1312000.000000, error:-603098.768519
21:52:40 T:3620 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:1908755.345354, should be:1312000.000000, error:-596755.345354
21:52:41 T:3620 DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:1909673.181006, should be:1312000.000000, error:-597673.181006
.
. stopped playback here
.