Posts: 215
Joined: Jul 2014
Reputation:
11
2019-01-02, 03:55
(This post was last modified: 2019-01-02, 04:46 by sbthomas.)
I'm trying to get in and do some debugging... The article above definitely has something to do with it. Here is the difference in the Kodi logs between 17 and 18...
Kodi 17
VideoPlayer: Opening: smb://USERNAME:PASSWORD@wmcserver/Public Recorded TV/The Neighborhood/The Neighborhood-S01E11-Welcome to the Fundraiser.wtv
Kodi 18
VideoPlayer::OpenFile: pvr://recordings/tv/active/The Neighborhood (2)/s01e11%20Welcome%20to%20the%20Fundraiser, TV, 20181218_040003, 10977524099972652.pvr
So it makes sense how Kodi used to be able to look in the same directory by just changing the wtv to edl. They totally changed the mothod to play a PVR recording.
Next I think i need to enable debug in Kodi to see the edl loading and processing. I tried sniffing the Kodi to ServerWMC traffic and didn't see anything obvious like a GetRecordingEdl. I'll update when i get a chance to do some more.
Posts: 215
Joined: Jul 2014
Reputation:
11
2019-01-02, 04:45
(This post was last modified: 2019-01-02, 05:06 by sbthomas.)
Here is the output of the Kodi log from 17 and 18 for the same recording...
Kodi 17:
18:28:47.550 T:7328 DEBUG: CEdl::ReadEditDecisionLists - Checking for edit decision lists (EDL) on local drive or remote share for: smb://xbmc:********@wmcserver/Public Recorded TV/The Neighborhood/The Neighborhood-S01E11-Welcome to the Fundraiser.wtv
18:28:47.557 T:7328 DEBUG: CEdl::AddCut - Pushing new cut to back [00:00:04.970 - 00:00:31.000], 3
18:28:47.557 T:7328 DEBUG: CEdl::AddCut - Pushing new cut to back [00:02:58.800 - 00:04:48.240], 3
18:28:47.557 T:7328 DEBUG: CEdl::AddCut - Pushing new cut to back [00:10:00.850 - 00:13:45.170], 3
18:28:47.557 T:7328 DEBUG: CEdl::AddCut - Pushing new cut to back [00:26:44.850 - 00:29:17.490], 3
18:28:47.557 T:7328 DEBUG: CEdl::ReadEdl - Read 4 cuts and 0 scene markers in EDL file: smb://xbmc:***********@wmcserver/Public Recorded TV/The Neighborhood/The Neighborhood-S01E11-Welcome to the Fundraiser.edl
18:28:47.557 T:7328 DEBUG: CEdl::AddSceneMarker - Inserting new scene marker: 00:00:04.970
18:28:47.557 T:7328 DEBUG: CEdl::AddSceneMarker - Inserting new scene marker: 00:00:31.000
18:28:47.557 T:7328 DEBUG: CEdl::AddSceneMarker - Inserting new scene marker: 00:02:58.800
18:28:47.557 T:7328 DEBUG: CEdl::AddSceneMarker - Inserting new scene marker: 00:04:48.240
18:28:47.557 T:7328 DEBUG: CEdl::AddSceneMarker - Inserting new scene marker: 00:10:00.850
18:28:47.557 T:7328 DEBUG: CEdl::AddSceneMarker - Inserting new scene marker: 00:13:45.170
18:28:47.557 T:7328 DEBUG: CEdl::AddSceneMarker - Inserting new scene marker: 00:26:44.850
18:28:47.558 T:7328 DEBUG: CEdl::AddSceneMarker - Inserting new scene marker: 00:29:17.490
Kodi 18:
18:34:20.235 T:8396 DEBUG: CEdl::ReadEditDecisionLists - Checking for edit decision list (EDL) for PVR recording: pvr://recordings/tv/active/The Neighborhood (2)/s01e11%20Welcome%20to%20the%20Fundraiser, TV, 20181218_040003, 10977524099972652.pvr
18:34:20.235 T:8396 DEBUG: CEdl::ReadPvr - Reading Edl for recording: s01e11 Welcome to the Fundraiser
It looks like there is a method in client.cpp of the pvr add-on:
PVR_ERROR GetRecordingEdl(const PVR_RECORDING&, PVR_EDL_ENTRY, int*) { return PVR_ERROR_NOT_IMPLEMENTED; };
I don't know if this is the answer or not... this code was added in 2012 and it is in the "Unused API functions" section. Maybe this was the correct method to use but since it had the full path it also checked?
Kodi expert, please explain what the correct method is to support this...
Posts: 2,041
Joined: Jan 2015
Reputation:
149
ksooo
Team-Kodi Developer
Posts: 2,041
Does the problem still persist in RC4?
Posts: 215
Joined: Jul 2014
Reputation:
11
Yes, I downloaded RC4 and tested with that yesterday.
Posts: 2,041
Joined: Jan 2015
Reputation:
149
ksooo
Team-Kodi Developer
Posts: 2,041
2019-01-02, 17:48
(This post was last modified: 2019-01-02, 17:50 by ksooo.)
pvr.wmc needs to implement PVR addon API function "GetRecordingEdl" if it handles recording stream open/close/read/seek/... itself (which it currently does).
Alternatively, the addon could leave recording stream open/close/read/seek/... and edl handling to Kodi. In this case, it must implement the PVR addon API function "GetRecordingStreamProperties" where it has to provide the smb URL of the recording with the property "streamurl". OTOH, functions "*RecordedStream" are all obsolete for the addon, then. I'm not aware of any downsite of this (new to Leia and much simpler) approach. Ofc, Kodi must understand the data format of the recording stream and must be able to access the smb share holding the recording.
Posts: 2,041
Joined: Jan 2015
Reputation:
149
ksooo
Team-Kodi Developer
Posts: 2,041
You should open an issue for pvr.wmc at github.com/kodi-pvr/pvr.wmc/issues
Posts: 3,439
Joined: Aug 2012
Reputation:
91
Cool, thanks for letting us know.
Posts: 3,439
Joined: Aug 2012
Reputation:
91
I have a version of this built, but no way to test it. Looking for volunteers...