Commercial Detection Fail

Hi Guys…Starting last night none of my shows were able to mark the commercials for any of my recordings. I checked the log and I see where the detection started but immediately failed with error “commercial detection failed with exit status 7”. I included a snippet from the log below.

2017/02/08 20:31:01 [DVR] Processing file-183: TV/Modern Family/2017-02-08-2000 Modern Family 2017-02-08 S08E12 Do You Believe in Magic.mpg
2017/02/08 20:31:02 [DVR] Running commercial detection on file 183 (TV/Modern Family/2017-02-08-2000 Modern Family 2017-02-08 S08E12 Do You Believe in Magic.mpg)
2017/02/08 20:31:11 [DVR] Commercial detection failed with exit status 7

What kind of system is the DVR installed on?

Visit http://127.0.0.1:8089/dvr/files/183/comskip.log and paste the last 5-10 lines of output here. (Replace the ip with the ip of your DVR if needed).

I’m using a WD PR2100 NAS. The last 10 lines are:

321:
-                                    --                                -
322:
323:
324:
325:
Logo found at frame 3009              logoMinx=533
logomaxx=627   logominY=236    logoMaxY=325
Invalid argument - could not create file
mnt/USB/USB1_c1/Channels
DVR/Logs/comskip/183/video.logo.t

Strange. Can you SSH in and run this command:

ls -alh /mnt/USB/USB1_c1/Channels\ DVR/Logs/comskip/183/

Sure thing…I ran the command and here is what was returned. Also, I recorded a few shows last night and two of them marked the commercial and two didn’t.

-rwxrwxrwx    1 root     root         158 Feb  8 20:31 comskip.ini
-rwxrwxrwx    1 root     root       15.7K Feb  8 20:31 video.log
lr-xr-xr-x    1 root     root         254 Feb  8 20:31 video.mpg -> /mnt/USB/USB1_c1/Channels DVR/TV/Modern Family/2017-02-08-2000 Modern Family 20
-rwxrwxrwx    1 root     root           0 Feb  8 20:31 video.txt

What about the output of “mount”

I’m sorry, I don’t know what that means. You need me to run another command? :grimacing:

Yes ssh in and type mount

this is what i get for “mount”:

%root% on / type unknown (rw)
proc on /proc type proc (rw)
/dev/ram0 on / type ext2 (rw)
sysfs on /sys type sysfs (defaults)
mdev on /dev type tmpfs (defaults)
proc on /proc type proc (0)
devpts on /dev/pts type devpts (noexec,nosuid,gid=5,mode=0620)
squash on /usr/local/tmp type ramfs (size=107m)
/dev/loop0 on /usr/local/modules type squashfs (rw,offset=2048)
/dev/mmcblk0p6 on /usr/local/tmp_wdnas_config type ext4 (rw,sync,noatime,nodiratime)
tmpfs on /mnt type tmpfs (size=1m,nr_inodes=0)
tmpfs on /var/log type tmpfs (size=40m,nr_inodes=0)
tmpfs on /tmp type tmpfs (size=100m,nr_inodes=20000)
/dev/sdb4 on /mnt/HD_b4 type ext4 (rw)
/dev/sda4 on /mnt/HD_a4 type ext4 (rw)
/dev/sdc1 on /mnt/USB/USB1_c1 type ufsd (rw,nls=utf8,fmask=0,dmask=0,force,user_xattr)
/dev/md1 on /mnt/HD/HD_a2 type ext4 (rw,noatime,nodiratime,barrier=0,usrquota,grpquota)
cgroup on /sys/fs/cgroup type tmpfs (rw,uid=0,gid=0,mode=0755)
root@MyCloudPR2100 root #

Thanks. It appears your external drive is formatted NTFS, and that’s causing some kind of issue. You said it works sometimes but fails others right?

Can you lookup the last few lines from another failure and paste them here too. Are all the failures you see labelled as “exit status 7”?

It has been pretty perfect detecting commercials until two nights ago. Yep, they have all been “exit status 7”. I will check the log for another failure and post.

Here are a few lines from another failure.

root@MyCloudPR2100 root # ls -alh /mnt/USB/USB1_c1/Channels\ DVR/Logs/comskip/18
7/
-rwxrwxrwx 1 root root 158 Feb 8 22:31 comskip.ini
-rwxrwxrwx 1 root root 7.8K Feb 8 22:31 video.log
lr-xr-xr-x 1 root root 198 Feb 8 22:31 video.mpg -> /mnt/USB/USB1_c1/Channels DVR/TV/Legion/2017-02-08-2101 Legion 2017-02-08 S01E0
-rwxrwxrwx 1 root root 0 Feb 8 22:31 video.txt

tail -n 10 /mnt/USB/USB1_c1/Channels\ DVR/Logs/comskip/187/video.log

Here you go:

339: | | | -
340: | |— – – - ------|
341: - - - -
342: ---- - - — -
343:
344:
345:
346:
Logo found at frame 3009 logoMinX=568 logoMaxX=612 logoMinY=315 logoMaxY=346
Invalid argument - could not create file /mnt/USB/USB1_c1/Channels DVR/Logs/comskip/187/video.logo.t

I have an update. I recorded five shows tonight. Three that were half hour and two that were an hour. All the half hours shows commercials were marked and the hour shows failed. I’m testing two more one hour recordings now to see if they will fail. Will report back.

@tmm1 What should external drives be formatted to work best with Channels? Using linux on WD PR2100.

Probably anything except FAT32. FAT32 has a 2gb per file limit that will be problematic for longer shows.

https://support.wdc.com/knowledgebase/answer.aspx?ID=15124

I would probably use NTFS.

Have you still been having issues with comskip failures?

I am, but it’s wasnt a big deal so I didn’t worry about mentioning it. Since it seem to be only affecting me due to my external drive’s formatting. That’s why I was wondering what was the best format.

It seems the NTFS driver on the WD NAS is throwing these strange errors, so probably exFAT would work better.