Commercial detection issue on RPI4

What should this say?

Uname -a output:

Linux ChannelsDVR 5.4.61-v7l+ #1339 SMP Tue Sep 1 18:51:27 BST 2020 armv7l GNU/Linux

v4l2-status: command not found

I have run the sudo rpi-update and commercial detection doesn’t seem to be working after moving over from an iMac to a pi4

pi@ChannelsDVR:~ $ v4l2-ctl --list-devices
bcm2835-codec-decode (platform:bcm2835-codec):
/dev/video10
/dev/video11
/dev/video12

bcm2835-isp (platform:bcm2835-isp):
/dev/video13
/dev/video14
/dev/video15
/dev/video16

Cannot open device /dev/video0, exiting.

Diagnostic logs submitted

Most of your recordings are showing commercial markers. Commercial detection will be much slower on RPI4 than a Mac so you may have to wait 20-30min per recording for the commercial markers to appear.

Ok thanks. Those old recordings were all on the iMac. Only the one from today was on the pi4. I’ll keep a watch on it but it seems to be working now

My PI4 commercial detection runs at about 10-13min/hour for OTA (MPG) feeds (aka ~5x). Isn't this comparable to detection performance on more capable systems? It drops dramatically for MP4/TVE feeds to about 2.75x. Not sure if that is expected based on decoding complexity, or if it could be improved.

I have added thread_count=2 to comskip.ini (though I don't recall that making much of a difference).

Where is comskip.ini located on the Linux install? Commercial detection is working for me now but I like to mess with success :slight_smile:

It is in Channel's data folder. In your log, you'll see a line like:

2020/09/13 11:57:25.884447 [SYS] Starting Channels DVR v2020.09.13.1807 (linux-x86_64 pid:37) in /var/lib/channels-dvr

In the case about, my data folder is /var/lib/channels-dvr; yours is probably different. You need to put your custom comskip.ini file in this directory; in the future Channels will use this new config file instead of its default.

Awesome thanks!