BETA: Enhanced Commercial Detection

Just saw your message, @eric, about the available upgrade. I went to the settings page just now to upgrade and my server is already using it.

The last time I did any type of upgrade on the server was before 2026.03.12:

I know for sure I didn't upgrade the enhanced commercial detection so I'm wondering how it got upgraded by itself. :thinking:

Mine did the same, upgraded by itself.

I just saw this in the log:

2026/03/14 18:18:57.747284 [INFO] Enhanced comskip model updated to 2026.03.12.1811

1 Like

After the most recent update (Version 2026.03.12.1811), my DVR server abruptly shut down/ crash while watching live TV. Logs have been submitted as 364c2b41-a041-4073-9cf3-e57a38fa7b2c

According to the logs at the time of the shutdown, the DVR was busy running enhanced commercial detection. This excerpt from the logs covers the time of the crash and my manual restart of the program:

2026/03/15 08:26:00.635977 [DVR] Completed enhanced commercial detection on file 10191 (Movies/Roll on Texas Moon (1946) 2024-02-08-0244.mpg) in 4s
2026/03/15 08:26:03.831166 [DVR] Completed enhanced commercial detection on file 10172 (TV/Everybody Loves Raymond/Everybody Loves Raymond S09E01 2004-09-20 The Home 2024-02-07-1529.mpg) in 3s
2026/03/15 08:26:06.663517 [DVR] Completed enhanced commercial detection on file 10170 (TV/Everybody Loves Raymond/Everybody Loves Raymond S08E23 2004-05-24 Golf for It 2024-02-07-1459.mpg) in 3s
2026/03/15 08:26:09.812471 [DVR] Completed enhanced commercial detection on file 10168 (TV/Everybody Loves Raymond/Everybody Loves Raymond S08E22 2004-05-17 The Mentor 2024-02-07-1429.mpg) in 3s
2026/03/15 08:26:13.122874 [DVR] Completed enhanced commercial detection on file 10166 (TV/Everybody Loves Raymond/Everybody Loves Raymond S08E21 2004-05-10 The Model 2024-02-07-1359.mpg) in 3s
2026/03/15 08:26:16.104309 [DVR] Completed enhanced commercial detection on file 10164 (TV/Everybody Loves Raymond/Everybody Loves Raymond S08E20 2004-05-03 Blabbermouths 2024-02-07-1329.mpg) in 3s
panic: interface conversion: *gorgonia.I32 is not tensor.Tensor: missing method Apply

goroutine 344461229 [running]:
gorgonia.org/gorgonia.transposeOp.Do({{0xc00fae2d40, 0x4, 0x4}, 0x4}, {0xc00650ecc0, 0x1, 0xc005aafc01?})
	gorgonia.org/[email protected]/op_tensor.go:952 +0x152
gorgonia.org/gorgonia.(*execOp).exec(0xc005aafc70, 0xc0057fa500)
	gorgonia.org/[email protected]/vm_tape_nocuda.go:66 +0x13c3
gorgonia.org/gorgonia.(*tapeMachine).runall(0xc0057fa500, 0xc003ac24d0, 0xc003ac25b0)
	gorgonia.org/[email protected]/vm_tape.go:262 +0x1c3
created by gorgonia.org/gorgonia.(*tapeMachine).RunAll in goroutine 731
	gorgonia.org/[email protected]/vm_tape.go:223 +0x133
2026/03/15 08:28:28.676285 [SYS] Starting Channels DVR v2026.03.12.2252 (linux-x86_64 pid:17216) in /var/packages/ChannelsDVR/target/channels-dvr/data
2026/03/15 08:28:31.009291 [SYS] Started HTTP Server on 8089
2026/03/15 08:28:32.145444 [M3U] Refreshed lineup for ADBTuner-DirecTV with 238 channels

@jsfullam Thanks for the report. Looking into it.

Thnk you, @eric ,
If this info is helpful, I am running Channels DVR server software as a native installation (non-docker) on a Synology NAS DS 920+

The latest pre-release has the fix for this crash.

1 Like

Thank you, @eric !

I was also automatically updated to 2026.03.12.1811 here. I would prefer to wait until the more adventurous test at least 24 hours. I installed the 2026.03.15.2326 pre-release to avoid a possible crash.

To be clear, the model had nothing to do with the crash.

The model is only updated if it is shown to improve the accuracy of commercial detection and is automatically updated (if available) when the DVR is restarted, but it is never checked again while the DVR is running, which is why the there is a button to update.

2 Likes

The 3 preview images in the commercial edit window, are those supposed to show beginning, middle, end of the segment? After confirming show blocks recently, I was surprised there was about 1m of commercials at the start of a block. I had no way of knowing because I didn't see the commercial frame, but could not have done a thing since it was detected with the show block.

Not sure what the recent update changed, but I did notice the last show I confirmed commercials had WAY more blocks to edit, which is good for granularity. It was way worse in detecting show and commercial though, on a show that has previously done pretty well.

Correct.

Yes, this is a known issue with the segmenting that we use from the comskip scene detection. As discussed above, fixing this is not part of the current set of improvements.

Nothing changed in a recent update related to scene detection/segment splitting. It may be that there were things about this recording that just caused the segmenting to act differently. If you are sharing your commercial edits with us, that will feed into future improvements.

How am I just discovering this new feature today?! Excited to see how much it improves my experience. Thank you devs!

1 Like

Enhanced Comskip model 2026.03.20.1803 has been released.

1 Like

Thank you Eric,

Years ago when I chose to move from TiVo to Channels DVR automatic commercial skipping on all content was the deciding factor for me. Back then both the humans doing the commercial skipping for the TiVo and automatic commercial skipping on Channels DVR were both OK yet there was plenty of room for improvement. My recent commercial skipping experience on Channels DVR has been fantastic. I start a showing and put my remote down and don't need to pick it up till it's over. I have not seen a false positive or false negative in a few weeks.

2 Likes

That's a great anecdote, but I can tell you that it's wildly inconsistent on sports events. I chase watch almost everything to catch up to live and the live detection still replies on comskip which is problematic.

But even on events where they've completed and enhanced detection has run, I don't really see a huge difference in the reliability of the skips. Some events on some channels are great, others are unwatchable with automatic skips.

Live commercial detection has never worked well for me. I'm not aware of anyone that is happy with it. If you are somone that is happy with live commercial detection please chime in.

@GTFan It's true that Sports Events are one of the lowest category of recordings that people have submitted edited commercials for. The more that we get, the better the system will become at being able to handle the unique aspects of them.

Thanks, I'll try to do better to submit those.

My comments would be that

  • it's definitely better than the previous pure comskip system

  • it's still not perfect :slight_smile:

  • it would be nice if there were a way to have these as the numbers recorded in the video.ffsplit file rather than the "pure" comskip numbers. I can (and do) edit the video.ffsplit file, but less work is better!

I have found that live commercial detection works extremely well for NFL football games. I start watching the game about 60 minutes after it begins and I end at the same time it does, and rarely ever watch a commercial. It also works very well for the local news and most OTA shows as long as I watch at least 10 minutes behind the live feed. Commercial detection [overall] works poorly for the TVE channels that inject their own holding pattern screens.