Win no audio passthrough whith .dts audio files
#1
Hi to all.

I wanto to use my Microsoft Surface Pro as a multimedia player with some high definition video and audio files.

This is my system:

Microsoft Surface Pro -> Mini Displayport to HDMI adapter -> Kenwood 5.1 Home Theatre receiver -> TV

I've configured XBMC to use WASAPI and enabled audio passthrough.

Well, if I open a video file with a dts audio track my recevier show that the audio source is dts and all work well.
If I open a .dts or .wav audio file with a dts stream, i can't hear nothing.

I've caught XBMC trace and there seems to be an error opening WASAPI only whith .dts files, even if the audio streams are similar in both cases.


Trace for working passthrough:

INFO: ffmpeg[6C0]: Input #0, matroska,webm, from 'E:\Film\Capitan Harlock - FullHD.mkv':
INFO: ffmpeg[6C0]: Duration: 01:51:08.51, start: 0.000000, bitrate: 13100 kb/s
INFO: ffmpeg[6C0]: Stream #0:0: Video: h264 (High), yuv420p, 1920x804 [SAR 1:1 DAR 160:67], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
INFO: ffmpeg[6C0]: Stream #0:1(ita): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default)
INFO: ffmpeg[6C0]: Stream #0:2(ita): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
INFO: ffmpeg[6C0]: Stream #0:3(jpn): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s
INFO: ffmpeg[6C0]: Stream #0:4(jpn): Audio: ac3, 48000 Hz, 5.1(side), fltp, 640 kb/s
INFO: CAEStreamInfo::SyncDTS - dts stream detected (6 channels, 48000Hz, 16bit BE, period: 512)
NOTICE: Creating audio stream (codec id: 86020, channels: 2, sample rate: 48000, pass-through)
DEBUG: DXVA - supports 'MPEG2 VLD'
DEBUG: CDVDPlayerAudio:: synctype set to 0: clock feedback
INFO: CActiveAESink::OpenSink - initialize sink
DEBUG: CActiveAESink::OpenSink - trying to open device WASAPI:{21E2BC11-0B11-49F1-BD5D-3EAD7BD8ED90}
INFO: CAESinkWASAPI::InitializeExclusive: Format is Supported - will attempt to Initialize
INFO: CAESinkWASAPI::InitializeExclusive: WASAPI Exclusive Mode Sink Initialized using: AE_FMT_S16NE, 48000, 2
DEBUG: CActiveAESink::OpenSink - WASAPI Initialized:
DEBUG: Output Device : HDMI - RV-7000 (Audio Intel® per schermi)
DEBUG: Sample Rate : 48000
DEBUG: Sample Format : AE_FMT_S16NE
DEBUG: Channel Count : 2
DEBUG: Channel Layout: FL,FR
DEBUG: Frames : 2400
DEBUG: Frame Samples : 4800
DEBUG: Frame Size : 4
DEBUG: CActiveAE::ClearDiscardedBuffers - buffer pool deleted
DEBUG: CDVDPlayer::HandleMessages - player started 1
DEBUG: CDVDPlayer::SetCaching - caching state 0
DEBUG: CActiveAE::ClearDiscardedBuffers - buffer pool deleted
DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:10126.177557, should be:10334.461197, error:208.283641
DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay
INFO: Python, unloading python shared library because no scripts are running anymore
DEBUG: Activating window ID: 12005
DEBUG: ------ Window Deinit (MyVideoNav.xml) ------
DEBUG: ------ Window Init (VideoFullScreen.xml) ------
INFO: Loading skin file: VideoFullScreen.xml, load type: KEEP_IN_MEMORY
DEBUG: CDVDPlayerAudio:: Discontinuity1 - was:609788.335754, should be:499495.879969, error:-110292.455784
DEBUG: ------ Window Init (VideoOSD.xml) ------
INFO: Loading skin file: VideoOSD.xml, load type: KEEP_IN_MEMORY
DEBUG: CApplication:TonguerocessMouse: trying mouse action leftclick
DEBUG: ------ Window Init (Pointer.xml) ------
DEBUG: CPullupCorrection: detected pattern of length 1: 41708.33, frameduration: 41708.333333
DEBUG: CApplication:TonguerocessMouse: trying mouse action leftclick
NOTICE: CDVDPlayer::CloseFile()
NOTICE: DVDPlayer: waiting for threads to exit
NOTICE: CDVDPlayer::OnExit()
NOTICE: DVDPlayer: closing audio stream
NOTICE: Closing audio stream
NOTICE: Waiting for audio thread to exit
NOTICE: thread end: CDVDPlayerAudio::OnExit()
DEBUG: Thread DVDPlayerAudio 3952 terminating
NOTICE: Closing audio device
DEBUG: CActiveAE:Big GriniscardStream - audio stream deleted
DEBUG: CActiveAE::ClearDiscardedBuffers - buffer pool deleted
DEBUG: Previous line repeats 1 times.
INFO: CActiveAESink::OpenSink - initialize sink
NOTICE: Deleting audio codec
NOTICE: DVDPlayer: closing video stream
NOTICE: Closing video stream
NOTICE: waiting for video thread to exit
NOTICE: thread end: video_thread
DEBUG: Thread DVDPlayerVideo 308 terminating
NOTICE: deleting video codec
NOTICE: DVDPlayer: closing subtitle stream
NOTICE: Closing subtitle stream
DEBUG: CActiveAESink::OpenSink - trying to open device WASAPI:{21E2BC11-0B11-49F1-BD5D-3EAD7BD8ED90}
NOTICE: CDVDPlayer::OnExit() deleting demuxer
NOTICE: CDVDPlayer::OnExit() deleting input stream
DEBUG: CApplication::OnPlayBackStopped : play state was 2, starting 0
DEBUG: CAnnouncementManager - Announcement: OnStop from xbmc
DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnStop
DEBUG: Thread DVDPlayer 1728 terminating
NOTICE: DVDPlayer: finished waiting
INFO: CAESinkWASAPI::InitializeExclusive: Format is Supported - will attempt to Initialize
DEBUG: CGUIWindowManager:TonguereviousWindow: Deactivate
DEBUG: ------ Window Deinit (VideoOSD.xml) ------
DEBUG: ------ Window Deinit (VideoFullScreen.xml) ------
INFO: CAESinkWASAPI::InitializeExclusive: WASAPI Exclusive Mode Sink Initialized using: AE_FMT_S24NE4, 44100, 2
DEBUG: CActiveAESink::OpenSink - WASAPI Initialized:
DEBUG: Output Device : HDMI - RV-7000 (Audio Intel® per schermi)
DEBUG: Sample Rate : 44100
DEBUG: Sample Format : AE_FMT_S24NE4
DEBUG: Channel Count : 2
DEBUG: Channel Layout: FL,FR
DEBUG: Frames : 2208
DEBUG: Frame Samples : 4416
DEBUG: Frame Size : 8




Error Trace:

INFO: ffmpeg[B5C]: Input #0, dts, from 'C:\AUDIO\AC-DC - Back In Black - DTS\01 - Hells Bells.dts':
INFO: ffmpeg[B5C]: Duration: 00:05:12.80, start: 0.000000, bitrate: 1411 kb/s
INFO: ffmpeg[B5C]: Stream #0:0: Audio: dts (DTS), 44100 Hz, 5.1(side), fltp, 1411 kb/s
INFO: CAEStreamInfo::SyncDTS - dts stream detected (6 channels, 44100Hz, 14bit LE, period: 1024)
DEBUG: CDVDDemuxFFmpeg::SeekTime - seek ended up on time 23
DEBUG: CDVDDemuxFFmpeg::SeekTime - seek ended up on time 0
INFO: CAEStreamInfo::SyncDTS - dts stream detected (6 channels, 44100Hz, 14bit LE, period: 1024)
INFO: AudioDecoder: File is queued
DEBUG: AudioDecoder::GetReplayGain - Final Replaygain applied: 1.000000, Track/Album Gain 89.000000, Peak 0.000000
INFO: CActiveAESink::OpenSink - initialize sink
DEBUG: CActiveAESink::OpenSink - trying to open device WASAPI:{21E2BC11-0B11-49F1-BD5D-3EAD7BD8ED90}
INFO: CAESinkWASAPI::Initialize: Could not Initialize Exclusive with that format
ERROR: CAESinkWASAPI::Initialize: WASAPI initialization failed.
DEBUG: CActiveAESink::OpenSink - trying to open device DIRECTSOUND:{21E2BC11-0B11-49F1-BD5D-3EAD7BD8ED90}
DEBUG: CAESinkDirectSound::Initialize: Using Window handle: 131880
ERROR: CAESinkDirectSound::Initialize: cannot create secondary buffer (DSERR_UNSUPPORTED)
DEBUG: CActiveAESink::OpenSink - open NULL sink
NOTICE: Thread AESinkNull start, auto delete: false
DEBUG: CAESinkNULL:Tonguerocess
DEBUG: CActiveAESink::OpenSink - NULL Initialized:
DEBUG: Output Device : HDMI - RV-7000 (Audio Intel® per schermi)
DEBUG: Sample Rate : 44100
DEBUG: Sample Format : AE_FMT_S16NE
DEBUG: Channel Count : 2
DEBUG: Channel Layout: RAW,RAW
DEBUG: Frames : 11000
DEBUG: Frame Samples : 2
DEBUG: Frame Size : 4



Any ideas?
Reply
#2
http://forum.xbmc.org/showthread.php?tid=195360

Seems relevant.
Reply
#3
Don't post log snippets as the full debug log is always required, and don't post logs directly into the forum, instead use either http://pastebin.com or http://xbmclogs.com

A sample file so others can test would also be useful.
Reply
#4
@madjockxbmc: thank you, i had already read that post but I ahen't found a solution.

@jjd-uk: sorry, I skimmed log file leaving only the significant rows. Here are th full Logs:

working stream: http://pastebin.com/SkLSG7Vy
error stream: http://pastebin.com/qNh2Axs7
here's a dts audio file: http://www.diatonis.com/downloads/diaton...et-her.zip

As showed, audio streams are both recognized by XBMC gotham but when it try to play the audio file, WASAPI initialization failed.
With my old machine having the Frodo release installed, the same files plays good with passthrugh.
Reply
#5
Just tried that sample on my systems, it works on both my main rig with passthrough to AVR and also on my test rig decoding to PCM and connected direct to TV, therefore there's an issue with your system.

Your HDMI connection to the AVR is capable of PCM 5.1 so try deselecting the "DTS capable receiver" option to see if the DTS audio can be decoded to PCM, then if still issues then try setting "Output configuration" to "Fixed" and set "Limit sampling rate" to "48.0khz". For reason for this is that the playing DTS and non-playing DTS has different sample rates, the one from the mkv is 48kHz and the problematic one is 44.1kHz, it maybe an issue with 44.1khz on your system.

The other option to ttry is see if there's any different in how it is handled by the default music player "PAPlayer" and the video player "DVDPlayer", do this by opening Context menu with file selected, going to "Play using..." and selecting "DVDPlayer".
Reply
#6
Ok, opening the dts file with "DVDPlayer" instead of "PAPlayer" did not change anything..

But I found a .dts audio file with 48.0KHz and it's played well !!

So I think there's something wrong with my Intel HD driver...

Surface Pro come out with Microsoft Video adn Audio Drivers.

I've installed:
- Intel HD graphics Driver [https://downloadcenter.intel.com/Detail_...ldID=23885]
- Realtek High Definition Audio Driver R2.75 [http://www.realtek.com.tw/downloads/down...Down=false]

After installing both Drivers the problem still persist...
Reply

Logout Mark Read Team Forum Stats Members Help
no audio passthrough whith .dts audio files0