Commercial skipping doesn't work until recording finishes
#1
I don't have much experience with MythTV as I recently migrated from Windows Media Center. I've configured the backend to start commercial flagging as soon as the recording begins. When I look at the commflag log it usually starts showing progress around 10 minutes in and is caught up with what's recorded so far by the 15 minute mark. If I start watching a show in Kodi with the PVR add on at 20 minutes into the recording I see no commercial markers in the time scrubber bar and no commercials skip (I have it set to always). If I watch on the official MythTV frontend client at 20 minutes into the recording commercial skipping works. Once the recording finishes I see the commercial markers in Kodi and commercial skipping works. Should commercial skipping work in Kodi before the recording finishes? If so, any suggestions on how to fix? If not, do you think this can be supported?
Backend: 32.0+fixes.20220325.f69ce764b7-0ubuntu1
Kodi:19.4 on 32bit Android TV
Add on: MythTV PVR Client 19.0.8
Reply
#2
My experience with Kodi is the API call  GetRecordingEdl() is called only once at start play.

Martin
Reply
#3
I may not fully understand the implications of this. When I first play the recording some of the edl (commercial flagging) data is already available but it is not reflected in kodi, it's only after the recording completes that the edl data is shown in kodi and it is used for commercial skipping. For example, if I start recording a one hour show at 7pm, I will first start watching at 7:30pm. I won't see any commercial details or skipping. If I watch the same show at 7:30pm using the mythfrontend app commercial skipping does work. If I wait until 8:05pm and watch the show again in Kodi all of the commercial times are shown and skipping works.
Reply
#4
I tried with pvr.nextpvr which I use and it definitely get the request to skip and shows on the OSD with Estuary.

2022-07-01 10:07:55.015 T:3076    DEBUG <general>: CVideoPlayer::CheckAutoSceneSkip - Clock in commercial break [00:00:05.000 - 00:00:35.000]: 00:00:05.056. Automatically skipping to end of commercial break

This is why we ask for logs with posts.

The seeks fails though (could easily pvr.nextpvr)  but since it only loads once I won't rush to look into this.

Martin
Reply
#5
My apologies for not providing logs initially - I ran a new test recording from 12:30-1:00pm with 3 minutes of padding before and after. As you can see it doesn't show commercial breaks until after the full show has aired and the recording is over. Before I tried Kodi at 12:53 I used the official Myth Frontend and it saw the first commercial break at 13:29 and successfully skipped it.

Kodi trying to play before recording finishes at 12:53pm
https://paste.kodi.tv/yuxoxovadi12
2022-07-01 12:53:11.157 T:9814 DEBUG <general>: GetCuts: Reading EDL for recording: Test CBS
2022-07-01 12:53:11.162 T:9814 DEBUG <general>: AddOnLog: pvr.mythtv: GetRecordingEdl: Found 0 commercial breaks for: Test CBS
2022-07-01 12:53:11.166 T:9814 DEBUG <general>: AddOnLog: pvr.mythtv: GetRecordingEdl: Found 0 cut list entries for: Test CBS

Kodi playing again once recording is complete @ 1:04pm
https://paste.kodi.tv/voromiwimo

2022-07-01 13:04:20.047 T:20079 DEBUG <general>: GetCuts: Reading EDL for recording: Test CBS
2022-07-01 13:04:20.054 T:20079 DEBUG <general>: AddOnLog: pvr.mythtv: GetRecordingEdl: Found 6 commercial breaks for: Test CBS
2022-07-01 13:04:20.058 T:20079 DEBUG <general>: AddOnLog: pvr.mythtv: GetRecordingEdl: Found 0 cut list entries for: Test CBS
2022-07-01 13:04:20.059 T:20079 DEBUG <general>: AddOnLog: pvr.mythtv: GetRecordingEdl: COMBREAK 809.809 - 993.993
2022-07-01 13:04:20.059 T:20079 DEBUG <general>: AddOnLog: pvr.mythtv: GetRecordingEdl: COMBREAK 1424.423 - 1543.542
2022-07-01 13:04:20.059 T:20079 DEBUG <general>: AddOnLog: pvr.mythtv: GetRecordingEdl: COMBREAK 1806.805 - 1984.983
2022-07-01 13:04:20.059 T:20079 DEBUG <general>: AddCut - Pushing new cut to back [00:13:29.809 - 00:16:33.993], 3
2022-07-01 13:04:20.059 T:20079 DEBUG <general>: ReadPvr - Added break [00:13:29.809 - 00:16:33.993] found in PVR item for: pvr://recordings/tv/active/Test%20CBS (2009), TV%20(CBS), 20220701_172700, 14201_1656696420_02d.pvr. 2022-07-01 13:04:20.059 T:20079 DEBUG <general>: AddCut - Pushing new cut to back [00:23:44.423 - 00:25:43.542], 3
2022-07-01 13:04:20.059 T:20079 DEBUG <general>: ReadPvr - Added break [00:23:44.423 - 00:25:43.542] found in PVR item for: pvr://recordings/tv/active/Test%20CBS (2009), TV%20(CBS), 20220701_172700, 14201_1656696420_02d.pvr. 2022-07-01 13:04:20.059 T:20079 DEBUG <general>: AddCut - Pushing new cut to back [00:30:06.805 - 00:33:04.983], 3
2022-07-01 13:04:20.059 T:20079 DEBUG <general>: ReadPvr - Added break [00:30:06.805 - 00:33:04.983] found in PVR item for: pvr://recordings/tv/active/Test%20CBS (2009), TV%20(CBS), 20220701_172700, 14201_1656696420_02d.pvr.
2022-07-01 13:04:20.059 T:20079 DEBUG <general>: AddSceneMarker - Inserting new scene marker: 00:13:29.809
2022-07-01 13:04:20.059 T:20079 DEBUG <general>: AddSceneMarker - Inserting new scene marker: 00:16:33.993
2022-07-01 13:04:20.059 T:20079 DEBUG <general>: AddSceneMarker - Inserting new scene marker: 00:23:44.423
2022-07-01 13:04:20.059 T:20079 DEBUG <general>: AddSceneMarker - Inserting new scene marker: 00:25:43.542
2022-07-01 13:04:20.060 T:20079 DEBUG <general>: AddSceneMarker - Inserting new scene marker: 00:30:06.805
2022-07-01 13:04:20.060 T:20079 DEBUG <general>: AddSceneMarker - Inserting new scene marker: 00:33:04.983
Reply
#6
Sorry, the first log link is https://paste.kodi.tv/yuxoxovadi
Reply
#7
That really looks like an addon problem, since it isn't reporting any breaks to Kodi core.

Martin
Reply
#8
EDL is called only once at start playing the recording. This behavior cannot be changed because skips data need to be converted from position to time values regarding the frame rate of the recording. Also mythtv server doesn't provide a service to signal a change of commercial skips. So you have to wait the recording finish to handle all skips.
Reply

Logout Mark Read Team Forum Stats Members Help
Commercial skipping doesn't work until recording finishes0