Cuesheet Bugs ?
#1
I think i found some bugs in cuesheet handling when playing with ac3/mlp files (see: http://forum.xbmc.org/showthread.php?tid=134396):

1) my generated .cue file (DVD Audio Extractor) has the line

REM DATE "1975"

in it, but XBMC only recognizes the release date, if i remove the " like

REM DATE 1975

2) the last track in the cuesheet has no time* (in fileview and database)

3) XBMC decodes the tracks instead of bitstreaming (it bitstreams the same file when there's no cuesheet present)

Is any of those bugs already known ?

My test files are .ac3/.cue (complete album), .mlp/.cue (one .mlp per track, single .cue-file) and .mka/.cue (muxed/appended .mlp-files).
I played them back with XBMC Eden Final + HD-Audio Patch via HDMI (WASAPI AMD HDMI) to a Denon AVR-1909 (all bitstream options checked in XBMC). When bitstreaming the AVR displays "Dolby Digital" for ac3-Files and "TrueHD" for mlp-Files. Playback with the cuesheet present always displays "MULTI CH IN" because XBMC decodes to 5.1 multichannel.

*Note: .mlp/.cue combo has no track times at all while the muxed .mka/.cue has all but the last track
Kodi 18.7 on Windows 10 (2x)/FireTV Stick (5x)/Android (2x) | MariaDB 5 on Synology Diskstation DS115/DS216+II
Reply
#2
I just made debug logs playing the ac3 file:

- ac3 with cuesheet uses PAPlayer
- ac3 without cuesheet uses DVDPlayer

is there a way to change this behaviour ?

excerpts of the logfiles in the following posts ...
logfile when playing the file in library mode with cuefile present to import the ac3 file in the library

Code:
19:50:06 T:2952   DEBUG: SDLKeyboard: scancode: 1c, sym: 000d, unicode: 000d, modifier: 0
19:50:06 T:2952   DEBUG: CApplication::OnKey: return (f00d) pressed, action is Select
19:50:06 T:2952   DEBUG: PLAYLIST::CPlayList::Shuffle shuffling at pos:0
19:50:06 T:2952   DEBUG: CPlayerCoreFactory::GetPlayers(musicdb://2/53/390/10155.ac3)
19:50:06 T:2952   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
19:50:06 T:2952   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
19:50:06 T:2952   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtv
19:50:06 T:2952   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: hdhomerun/myth/rtmp/mms/udp
19:50:06 T:2952   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
19:50:06 T:2952   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
19:50:06 T:2952   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
19:50:06 T:2952   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
19:50:06 T:2952   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdfile
19:50:06 T:2952   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
19:50:06 T:2952   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
19:50:06 T:2952   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
19:50:06 T:2952   DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
19:50:06 T:2952   DEBUG: CPlayerCoreFactory::GetPlayers: adding audiodefaultplayer (3)
19:50:06 T:2952   DEBUG: CPlayerCoreFactory::GetPlayers: for video=0, audio=1
19:50:06 T:2952   DEBUG: CPlayerCoreFactory::GetPlayers: adding player: PAPlayer (3)
19:50:06 T:2952   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
19:50:06 T:2952   DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
19:50:06 T:2952   DEBUG: CPlayerCoreFactory::GetPlayers: added 2 players
19:50:06 T:2952   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avutil-50.dll)
19:50:06 T:2952   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avcore-0.dll)
19:50:06 T:2952   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avcodec-52.dll)
19:50:06 T:2952   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avformat-52.dll)
19:50:06 T:2952   DEBUG: CDVDDemuxFFmpeg::Open - probing detected format [ac3]
19:50:06 T:2952   DEBUG: CDVDDemuxFFmpeg::Open - av_find_stream_info starting
19:50:06 T:2952   DEBUG: ffmpeg[B88]: [ac3] max_analyze_duration reached
19:50:06 T:2952   DEBUG: ffmpeg[B88]: [ac3] Estimating duration from bitrate, this may be inaccurate
19:50:06 T:2952   DEBUG: CDVDDemuxFFmpeg::Open - av_find_stream_info finished
19:50:06 T:2952    INFO: ffmpeg[B88]: Input #0, ac3, from 'musicdb://2/53/390/10155.ac3':
19:50:06 T:2952    INFO: ffmpeg[B88]:   Duration: 00:37:51.45, bitrate: 448 kb/s
19:50:06 T:2952    INFO: ffmpeg[B88]:     Stream #0.0: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
19:50:06 T:2952   DEBUG: FactoryCodec - Audio: FFmpeg - Opening
19:50:06 T:2952   DEBUG: FactoryCodec - Audio: FFmpeg - Opened
19:50:06 T:2952    INFO: PAPlayer: Playing musicdb://2/53/390/10155.ac3
19:50:06 T:2952   DEBUG: PAPlayer: Creating new audio renderer
19:50:06 T:2952    INFO: CAudioRendererFactory: no input channel map specified assume windows
19:50:06 T:2952   DEBUG: CWin32WASAPI::Initialize: endpoint device AMD HDMI Output (2- AMD High Definition Audio Device)
19:50:06 T:2952    INFO: CPCMRemap: Configured speaker layout: 5.1
19:50:06 T:2952    INFO: CPCMRemap: I channel map: FL,FR,CE,LFE,BL,BR
19:50:06 T:2952    INFO: CPCMRemap: O channel map: FL,FR,CE,LFE,BL,BR
19:50:06 T:2952   DEBUG: CPCMRemap: Downmix normalization is disabled
19:50:06 T:2952   DEBUG: CPCMRemap: FL = FL(1.000000*)
19:50:06 T:2952   DEBUG: CPCMRemap: FR = FR(1.000000*)
19:50:06 T:2952   DEBUG: CPCMRemap: CE = CE(1.000000*)
19:50:06 T:2952   DEBUG: CPCMRemap: LFE = LFE(1.000000*)
19:50:06 T:2952   DEBUG: CPCMRemap: BL = BL(1.000000*)
19:50:06 T:2952   DEBUG: CPCMRemap: BR = BR(1.000000*)
19:50:06 T:2952   DEBUG: CAudioContext::SetActiveDevice - SetActiveDevice from 2 to 0
19:50:06 T:2952   DEBUG: CAudioContext::RemoveActiveDevice - Removing device 2
19:50:06 T:2952   DEBUG: CGUIAudioManager::DeInitialize
19:50:07 T:2952   DEBUG: CWin32WASAPI::Initialize: Packet Size = 6144. Avg Bytes Per Second = 576000.
19:50:07 T:2952   DEBUG: CWin32WASAPI::Initialize - Channels: 6 - SampleRate: 48000 - SampleBit: 16 - Resample false - IsMusic true - IsPassthrough 0 - audioDevice: AMD HDMI Output (2- AMD High Definition Audio Device)
19:50:07 T:3788   DEBUG: Thread PAPlayer start, auto delete: 0
19:50:07 T:3788   DEBUG: PAPlayer: Thread started
19:50:07 T:3788    INFO: AudioDecoder: File is queued
19:50:07 T:2952   DEBUG: CGUIInfoManager::SetCurrentSong(musicdb://2/53/390/10155.ac3)
19:50:07 T:2952   DEBUG: Loading additional tag info for file smb://WHS2011/Musik_1/Rush/(1975) Fly By Night (Dolby Digital 5.1)/Rush - Fly By Night.ac3
19:50:07 T:2952   DEBUG: CAnnouncementManager - Announcement: OnPlay from xbmc
19:50:07 T:2952   DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnPlay

logfile when playing the file in filemode with no cuefile present
Code:
19:55:50 T:3288   DEBUG: CApplication::OnKey: return (f00d) pressed, action is Select
19:55:50 T:3288   DEBUG: PLAYLIST::CPlayList::Shuffle shuffling at pos:0
19:55:50 T:3288   DEBUG: CPlayerCoreFactory::GetPlayers(smb://WHS2011/Elements_500/Audio Tests/Rush - Fly By Night.ac3)
19:55:50 T:3288   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
19:55:50 T:3288   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
19:55:50 T:3288   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtv
19:55:50 T:3288   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: hdhomerun/myth/rtmp/mms/udp
19:55:50 T:3288   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
19:55:50 T:3288   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
19:55:50 T:3288   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
19:55:50 T:3288   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
19:55:50 T:3288   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdfile
19:55:50 T:3288   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
19:55:50 T:3288   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
19:55:50 T:3288   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
19:55:50 T:3288   DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
19:55:50 T:3288   DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (1)
19:55:50 T:3288   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
19:55:50 T:3288   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
19:55:50 T:3288   DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
19:55:50 T:3288   DEBUG: CPlayerCoreFactory::GetPlayers: adding audiodefaultplayer (3)
19:55:50 T:3288   DEBUG: CPlayerCoreFactory::GetPlayers: for video=0, audio=1
19:55:50 T:3288   DEBUG: CPlayerCoreFactory::GetPlayers: adding player: PAPlayer (3)
19:55:50 T:3288   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
19:55:50 T:3288   DEBUG: CPlayerCoreFactory::GetPlayers: adding player: DVDPlayer (1)
19:55:50 T:3288   DEBUG: CPlayerCoreFactory::GetPlayers: added 2 players
19:55:50 T:3288  NOTICE: DVDPlayer: Opening: smb://WHS2011/Elements_500/Audio Tests/Rush - Fly By Night.ac3
19:55:50 T:3288 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
19:55:50 T:3288   DEBUG: CRenderManager::UpdateDisplayLatency - Latency set to 0 msec
19:55:50 T:3288   DEBUG: DXVA - cheking samples array size using 842094158 render target
19:55:50 T:3288   DEBUG: DXVA - updated maximum samples count to 2
19:55:50 T:3288   DEBUG: DXVA - cheking samples array size using 842094169 render target
19:55:50 T:2504   DEBUG: Thread CDVDPlayer start, auto delete: 0
19:55:50 T:2504  NOTICE: Creating InputStream
19:55:50 T:2504   DEBUG: CUtil::ScanForExternalSubtitles: Searching for subtitles...
19:55:50 T:2504   DEBUG: CUtil::ScanForExternalSubtitles: END (total time: 50 ms)
19:55:50 T:2504  NOTICE: Creating Demuxer
19:55:50 T:2504   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avutil-50.dll)
19:55:50 T:2504   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avcore-0.dll)
19:55:50 T:2504   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avcodec-52.dll)
19:55:50 T:3288   DEBUG: ------ Window Init (DialogBusy.xml) ------
19:55:50 T:2504   DEBUG: SECTION:LoadDLL(special://xbmcbin/system/players/dvdplayer/avformat-52.dll)
19:55:50 T:2504   DEBUG: CDVDDemuxFFmpeg::Open - probing detected format [ac3]
19:55:50 T:2504   DEBUG: CDVDDemuxFFmpeg::Open - av_find_stream_info starting
19:55:50 T:2504   DEBUG: ffmpeg[9C8]: [ac3] max_analyze_duration reached
19:55:50 T:2504   DEBUG: ffmpeg[9C8]: [ac3] Estimating duration from bitrate, this may be inaccurate
19:55:50 T:2504   DEBUG: CDVDDemuxFFmpeg::Open - av_find_stream_info finished
19:55:50 T:2504    INFO: ffmpeg[9C8]: Input #0, ac3, from 'smb://WHS2011/Elements_500/Audio Tests/Rush - Fly By Night.ac3':
19:55:50 T:2504    INFO: ffmpeg[9C8]:   Duration: 00:37:51.45, bitrate: 448 kb/s
19:55:50 T:2504    INFO: ffmpeg[9C8]:     Stream #0.0: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
19:55:50 T:2504  NOTICE: Opening audio stream: 0 source: 256
19:55:50 T:2504  NOTICE: Finding audio codec for: 86019/-99
19:55:50 T:2504   DEBUG: FactoryCodec - Audio: PassthroughFFmpeg - Opening
19:55:50 T:2504    INFO: CDVDAudioCodecPassthroughFFmpeg::SetupMuxer - Trying to setup spdif muxer for codec 86019/-99
19:55:50 T:2504    INFO: CDVDAudioCodecPassthroughFFmpeg::SetupMuxer - spdif muxer ready
19:55:50 T:2504   DEBUG: FactoryCodec - Audio: PassthroughFFmpeg - Opened
19:55:50 T:2504  NOTICE: Creating audio thread
19:55:50 T:2504   DEBUG: CDVDPlayer::SetCaching - caching state 2
19:55:50 T:2504 WARNING: CDVDMessageQueue(video)::Put MSGQ_NOT_INITIALIZED
19:55:50 T:2356   DEBUG: Thread CDVDPlayerAudio start, auto delete: 0
19:55:50 T:2356  NOTICE: running thread: CDVDPlayerAudio::Process()
19:55:50 T:2356    INFO: CDVDAudioCodecPassthroughFFmpeg::SyncAC3 - AC3 stream detected (48000Hz)
19:55:50 T:2356  NOTICE: Creating audio device with codec id: 86019, channels: 6, sample rate: 48000, pass-through
19:55:50 T:2356   DEBUG: CWin32WASAPI::Initialize: endpoint device AMD HDMI Output (2- AMD High Definition Audio Device)
19:55:50 T:2356   DEBUG: CAudioContext::SetActiveDevice - SetActiveDevice from 2 to 0
19:55:50 T:2356   DEBUG: CAudioContext::RemoveActiveDevice - Removing device 2
19:55:50 T:2356   DEBUG: CGUIAudioManager::DeInitialize
19:55:51 T:3288   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
19:55:51 T:3288   DEBUG: CGUIInfoManager::SetCurrentSong(smb://WHS2011/Elements_500/Audio Tests/Rush - Fly By Night.ac3)
19:55:51 T:3288   DEBUG: CFileItem::LoadMusicTag: loading tag information for file: smb://WHS2011/Elements_500/Audio Tests/Rush - Fly By Night.ac3
19:55:51 T:2356   DEBUG: CWin32WASAPI::Initialize: Packet Size = 2048. Avg Bytes Per Second = 192000.
19:55:51 T:2356   DEBUG: CWin32WASAPI::Initialize - Channels: 6 - SampleRate: 48000 - SampleBit: 16 - Resample false - IsMusic false - IsPassthrough 1 - audioDevice: AMD HDMI Output (2- AMD High Definition Audio Device)
19:55:51 T:2356   DEBUG: CDVDPlayerAudio:: synctype set to 0: clock feedback
19:55:51 T:2504   DEBUG: CDVDPlayer::HandleMessages - player started 1
Kodi 18.7 on Windows 10 (2x)/FireTV Stick (5x)/Android (2x) | MariaDB 5 on Synology Diskstation DS115/DS216+II
Reply
#3
i think i solved (biggest) part of it Smile i added a playercorefactory.xml

Code:
<playercorefactory>
<rules action="prepend">
   <rule filetypes="ac3" player="dvdplayer"/>
   <rule filetypes="dts" player="dvdplayer"/>
   <rule filetypes="mlp" player="dvdplayer"/>
   <rule filetypes="mka" player="dvdplayer"/>
</rules>
</playercorefactory>

Now XBMC bitstreams the files, but since - at least with my AVR - it takes a few seconds until the AVR detects the codec and i get sound, it works best with mka or single-file ac3/dts albums. If you use one file per track, you lose some seconds at the beginning of each song...
Kodi 18.7 on Windows 10 (2x)/FireTV Stick (5x)/Android (2x) | MariaDB 5 on Synology Diskstation DS115/DS216+II
Reply

Logout Mark Read Team Forum Stats Members Help
Cuesheet Bugs ?0