2014-07-16, 19:39
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:rocessMouse: trying mouse action leftclick
DEBUG: ------ Window Init (Pointer.xml) ------
DEBUG: CPullupCorrection: detected pattern of length 1: 41708.33, frameduration: 41708.333333
DEBUG: CApplication:rocessMouse: 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:iscardStream - 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:reviousWindow: 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:rocess
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?
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:rocessMouse: trying mouse action leftclick
DEBUG: ------ Window Init (Pointer.xml) ------
DEBUG: CPullupCorrection: detected pattern of length 1: 41708.33, frameduration: 41708.333333
DEBUG: CApplication:rocessMouse: 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:iscardStream - 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:reviousWindow: 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:rocess
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?