Commercial detection failed with exit status 1

After recording a show today I noticed in the log file “Commercial detection failed with exit status 1”
and the comskip was out of whack. Is there anything I can do to keep this from happening again.

Thanks for any help

TJ

Please paste the lines from the log which show the commercial detection starting and stopping.

2017/02/09 18:03:39 [DVR] Processing file-105: TV/11 News at 5/2017-02-09-1759 11 News at 5 1999-08-30.mpg
2017/02/09 18:03:39 [DVR] Running commercial detection on file 105 (TV/11 News at 5/2017-02-09-1759 11 News at 5 1999-08-30.mpg)
2017/02/09 18:03:42 [DVR] Commercial detection failed with exit status 1

Thanks

Thanks. Can you check what the last 5 lines of http://127.0.0.1:8089/dvr/files/105/comskip.log say?

sorry whenever I try I get “{“error”:“file not found”}”

I guess you deleted the recording already?

Yes sorry I did delete it already but thanks for the quick response. you guys are great!!

deleted

I'm having this issue with a few files. I can get the last 5 lines of the comskip log but it doesn't seem to say anything particularly useful:

121480 Frames Processed
################################################################
Time at end of run:
Tue Dec 29 12:03:30 2020
################################################################

Here is the Channels log that covers this comskip failure:

2020/12/29 11:08:05.824863 [DVR] Commercial detection failed for CBeebies Puss in Boots (2019).ts with exit status 1
2020/12/29 11:27:58.814428 [DVR] Commercial detection failed for Ant-Man (2015).ts with exit status 1
2020/12/29 11:40:14.096748 [DVR] Commercial detection failed for Becoming Jane (2007).ts with exit status 1
2020/12/29 11:49:13.634857 [DVR] Waiting 20m36.365157s until next job 1609243790-ch105 The Bridge on the River Kwai (1957)
2020/12/29 11:50:26.231794 [DVR] Running commercial detection on file 2455 (Becoming Jane (2007)/Becoming Jane (2007).ts)
2020/12/29 11:50:43.435625 [DVR] Running commercial detection on file 2458 (CBeebies Puss in Boots (2019)/CBeebies Puss in Boots (2019).ts)
2020/12/29 11:51:01.521390 [DVR] Running commercial detection on file 2466 (Dr. Dolittle 2 (2001)/Dr. Dolittle 2 (2001).ts)
2020/12/29 11:53:07.319987 [DVR] Commercial detection failed for Evil Under the Sun (1982).ts with exit status 1
2020/12/29 11:54:17.784275 [DVR] Commercial detection failed for Dr. Dolittle 2 (2001).ts with exit status 1
2020/12/29 11:58:27.742585 [DVR] Waiting 11m22.257429s until next job 1609243790-ch105 The Bridge on the River Kwai (1957)
2020/12/29 11:59:27.232609 [DVR] Running commercial detection on file 2466 (Dr. Dolittle 2 (2001)/Dr. Dolittle 2 (2001).ts)
2020/12/29 11:59:37.664384 [DVR] Running commercial detection on file 2470 (Evil Under the Sun (1982)/Evil Under the Sun (1982).ts)
2020/12/29 12:00:01.445513 [TNR] Closed connection to 12523831/0 for ch101 BBC ONE HD
2020/12/29 12:00:01.476081 [SNR] Statistics for "Movies/The Croods (2013) 2020-12-29-1029.mpg": ss=100% snq=70%,56%-77% seq=100% bps=5159397,1917600-13298368 pps=490,182-1264
2020/12/29 12:00:02.074892 [DVR] Finished job 1609237790-ch101 The Croods (2013)
2020/12/29 12:00:02.174055 [DVR] Waiting 9m47.825959s until next job 1609243790-ch105 The Bridge on the River Kwai (1957)
2020/12/29 12:00:03.027921 [DVR] Processing file-2750: Movies/The Croods (2013) 2020-12-29-1029.mpg
2020/12/29 12:00:04.082508 [DVR] Running commercial detection on file 2750 (Movies/The Croods (2013) 2020-12-29-1029.mpg)
2020/12/29 12:00:35.611720 [DVR] Running commercial detection on file 2451 (Ant-Man (2015)/Ant-Man (2015).ts)
2020/12/29 12:01:36.530331 [NAT] Successfully mapped port 8089 using natpmp
2020/12/29 12:01:53.183699 [DVR] Waiting 7m56.816316s until next job 1609243790-ch105 The Bridge on the River Kwai (1957)
2020/12/29 12:03:30.456942 [DVR] Commercial detection failed for Dr. Dolittle 2 (2001).ts with exit status 1

The comskip log was from file 2466. These are imported files rather than ones recorded directly in Channels DVR.

IIRC, an exit code of 1 means no commercials were detected.

Ah, thanks. In that case, Channels should report that in the recording info. Otherwise you just end up doing what I’ve done and spent a lot of time trying them over and over.

At this point, the discussion comes back to some of the problems I’ve been having with comskip, where if you set many recordings to have commercials redetected, it inexplicably fails. And there is no way of easily seeing which have worked and which haven’t. Let alone any way to sort them into ones requiring detection and those which don’t.

If you're using Redetect Commercials on Imported media, beware you can run too many instances of comskip at the same time doing that.

Normally comskip jobs are queued serially, one at a time after a recording finishes.

If you manually run comskip you have to look at the DVR log to see when it's done because the activity on the DVR web UI only displays the last comskip job that was started.

As far as did comskip detect any commercials, look near the end of the comskip log for the line
Total commercial length: 0:14:43.41

1 Like

All the greater need for more info to be provided to users. And for a way to queue tasks so that it is Channels that decides when to run these tasks rather than a manual job for the user.

I have a couple of TVE recordings I noticed were missing edl files so I re-ran the commercial detection. When I checked back later I saw in the logs the exit status 1, and when I checked the comskip log I saw exactly what you were saying: "Total commercial length: 0:00:00.00". Thus, the error makes sense.

Now my only questions are: Why? And what can I do to fix (aside from manually adding breaks)?

What's weird is that other episodes from around the same time on the same network have no issue, as do other shows both on and off that network. It's really just these couple of files (that both seem to play fine and I can see them go to break).

Comskip on TVE recordings are hit or miss. It's due to the way they insert ad segments and mess up the timestamps of the recording.