Kodi DSPlayer – DirectShow Player for Windows
Thanks ARACNOZ! And thank you especially for including the ability to set/reset Formats tab for LAV Audio and Video!

Unfortunately I am still having an issue with Kodi not able to reinitialize WASAPI exclusive mode after I play a video that uses FFDShow and ArcSoft Audio Renderer as extra filters. It seems to be only when I use ffdshow to bitstream that the Audio Engine can't reinitialize WASAPI exclusive mode. If I drive Arcsoft Audio Render with the internal LAV Audio filter, I maintain sound, I just can't bitstream so that my receiver recognizes the stream as TrueHD or HDMA. FFDShow is the only method I have been able to find that allows me to bitstream TrueHD and HDMA so that my receiver detects the stream correctly. Probably because I have the ASUS Xonar HDAV1.3 Slim.

First initialization:
Code:
08:01:20.743 T:7552    INFO: CActiveAESink::OpenSink - initialize sink
08:01:20.743 T:7552   DEBUG: CActiveAESink::OpenSink - trying to open device WASAPI:{E225C9B5-C50B-42F3-945C-1E4E00F98C73}
08:01:20.743 T:7552   DEBUG: CAESinkWASAPI::InitializeExclusive: IsFormatSupported failed (AUDCLNT_E_UNSUPPORTED_FORMAT) - trying to find a compatible format
08:01:20.753 T:7552    INFO: CAESinkWASAPI::InitializeExclusive: WASAPI Exclusive Mode Sink Initialized using: AE_FMT_S24NE3, 44100, 2
08:01:20.753 T:7552   DEBUG: CActiveAESink::OpenSink - WASAPI Initialized:
08:01:20.753 T:7552   DEBUG:   Output Device : SPDIF - S/PDIF Pass-through Device (ASUS Xonar HDAV 1.3 Slim Audio Device)
08:01:20.753 T:7552   DEBUG:   Sample Rate   : 44100
08:01:20.753 T:7552   DEBUG:   Sample Format : AE_FMT_S24NE3
08:01:20.753 T:7552   DEBUG:   Channel Count : 2
08:01:20.753 T:7552   DEBUG:   Channel Layout: FL,FR
08:01:20.753 T:7552   DEBUG:   Frames        : 2205
08:01:20.753 T:7552   DEBUG:   Frame Size    : 6

Attempt to initialize after I have played and stopped a successfully HDMA bitstreaming video:
Code:
08:02:06.342 T:7552    INFO: CActiveAESink::OpenSink - initialize sink
08:02:06.342 T:7552   DEBUG: CActiveAESink::OpenSink - trying to open device WASAPI:{E225C9B5-C50B-42F3-945C-1E4E00F98C73}
08:02:06.342 T:7552   DEBUG: CAESinkWASAPI::InitializeExclusive: IsFormatSupported failed (AUDCLNT_E_UNSUPPORTED_FORMAT) - trying to find a compatible format
08:02:06.415 T:7552   ERROR: CAESinkWASAPI::InitializeExclusive: Failed to initialize WASAPI in exclusive mode -2004287478 - (AUDCLNT_E_DEVICE_IN_USE).
08:02:06.415 T:7552   DEBUG:   Sample Rate     : 44100
08:02:06.415 T:7552   DEBUG:   Sample Format   : AE_FMT_S24NE3
08:02:06.415 T:7552   DEBUG:   Bits Per Sample : 24
08:02:06.415 T:7552   DEBUG:   Valid Bits/Samp : 24
08:02:06.415 T:7552   DEBUG:   Channel Count   : 2
08:02:06.415 T:7552   DEBUG:   Block Align     : 6
08:02:06.415 T:7552   DEBUG:   Avg. Bytes Sec  : 264600
08:02:06.415 T:7552   DEBUG:   Samples/Block   : 24
08:02:06.415 T:7552   DEBUG:   Format cBSize   : 22
08:02:06.415 T:7552   DEBUG:   Channel Layout  : FL,FR
08:02:06.415 T:7552   DEBUG:   Enc. Channels   : 2
08:02:06.415 T:7552   DEBUG:   Enc. Samples/Sec: 44100
08:02:06.415 T:7552   DEBUG:   Channel Mask    : 3
08:02:06.415 T:7552   DEBUG:   Periodicty      : 499998
08:02:06.415 T:7552    INFO: CAESinkWASAPI::Initialize: Could not Initialize Exclusive with that format
08:02:06.415 T:7552   ERROR: CAESinkWASAPI::Initialize: WASAPI initialization failed.
At this point, audio no longer works in Kodi and it must be restarted to regain audio.

Is it possible that DSPlayer is not shutting down the extra filters correctly, specifically FFDShow, and it is not allowing WASAPI to close properly thus the CAESinkWASAPI::InitializeExclusive: Failed to initialize WASAPI in exclusive mode -2004287478 - (AUDCLNT_E_DEVICE_IN_USE).?

My next step is to try to setup the system use Media Rules for Filter Management and see if there is any difference in performance.

Doug
Reply


Messages In This Thread
Lockup on STOP issue resolved! - by MKANET - 2015-04-11, 21:59
RE: 4G aware patch - by MagikMark - 2015-09-08, 03:27
Alt-F4 no longer quits - by JeffA - 2015-10-31, 20:38
RE: Kodi DSPlayer – DirectShow Player for Windows - by DougShuffield - 2017-02-08, 20:56
H265 playback - by rew88 - 2017-11-04, 00:41
RE: H265 playback - by ashlar - 2017-11-04, 16:21
RE: H265 playback - by rew88 - 2017-11-05, 01:34
RE: H265 playback - by ashlar - 2017-11-05, 16:48
RE: H265 playback - by rew88 - 2017-11-05, 23:08
RE: H265 playback - by ashlar - 2017-11-06, 12:00
Leia 18 - by terpsarlington - 2017-11-21, 03:51
RE: Leia 18 - by spencerjford - 2017-11-21, 06:24
Display Modes / Refresh Rates - by goofer69 - 2019-09-20, 00:19
RE: Display Modes / Refresh Rates - by ashlar - 2019-09-20, 00:39
RE: Display Modes / Refresh Rates - by ashlar - 2019-09-20, 19:35
DSPlayer 23.810 to 23.976 - by Runakanta - 2018-05-09, 03:24
RE: DSPlayer 23.810 to 23.976 - by Warner306 - 2018-05-10, 01:32
Logout Mark Read Team Forum Stats Members Help
Kodi DSPlayer – DirectShow Player for Windows47