Commercial skipping is failing on TrueNAS Core with "signal: abort trap"

I don't use that feature

I need you to try it and if the images are broken or not so we know if the issue is replicating across freebsd installs.

I enabled "Automatically generate commercial editor thumbnails". Then ran redetect commercials and it died immediately as it has been doing.

2023/03/22 20:34:43.432201 [DVR] Running commercial detection on file 2100 (TV\Quantum Leap\Quantum Leap S01E16 Ben Interrupted 2023-03-20-2200.mpg)
2023/03/22 20:34:44.972648 [DVR] Commercial detection failed for TV\Quantum Leap\Quantum Leap S01E16 Ben Interrupted 2023-03-20-2200.mpg with signal: abort trap

Please find a recording, click the gear icon, select Edit Commercials and see if the images appear or not.

EDIT: Seems like you'll need to try it on an older recording where the commercials were detected

I don't have older recordings with the images generated. There for I see no images.

So the log shows this?

Correct

I just looked at the log again and now it has the same thing that Terry has described:

2023/03/22 21:20:32.820778 [DVR] Commercial detection failed for TV\Quantum Leap\Quantum Leap S01E16 Ben Interrupted 2023-03-20-2200.mpg with signal: abort trap
2023/03/22 21:22:44.151198 [ERR] Failed to generate preview @ 7.88: signal: abort trap
2023/03/22 21:22:44.152463 [ERR] Failed to generate preview @ 11.65: signal: abort trap
2023/03/22 21:22:44.156037 [ERR] Failed to generate preview @ 12.77: signal: abort trap
2023/03/22 21:22:44.161536 [ERR] Failed to generate preview @ 5.25: signal: abort trap
2023/03/22 21:22:44.165200 [ERR] Failed to generate preview @ 2.63: signal: abort trap
2023/03/22 21:22:44.195806 [ERR] Failed to generate preview @ 13.88: signal: abort trap
2023/03/22 21:22:44.216725 [ERR] Failed to generate preview @ 97.2: signal: abort trap
2023/03/22 21:22:44.221798 [ERR] Failed to generate preview @ 16.21: signal: abort trap
2023/03/22 21:22:44.235351 [ERR] Failed to generate preview @ 311.64: signal: abort trap
2023/03/22 21:22:44.244574 [ERR] Failed to generate preview @ 294.97: signal: abort trap
2023/03/22 21:22:44.262847 [ERR] Failed to generate preview @ 200.57: signal: abort trap
2023/03/22 21:22:44.308525 [ERR] Failed to generate preview @ 320.79: signal: abort trap
2023/03/22 21:22:44.314721 [ERR] Failed to generate preview @ 17.39: signal: abort trap

and it repeats many more times. At least this is consistent. I bet if he turns off "Automatically generate commercial editor thumbnails" we will only get the one line.

Observation: There are quite a few people that run the Channels plug-in (jail) on TrueNAS yet only TerryD and I are experiencing this issue. Both our systems use AMD CPUs. Could we be dealing with an incompatibility or possibly a missing compile or link option?

Have you checked the FreeBSD or Comskip forums? Do remember that while Channels may contribute to Ffmpeg and Comskip, but they are not the primary developers of those third-party projects.

We have reproduced the issue and are investigating a fix. This issue is isolated to prerelease and related to our recent upgrade to freebsd 13 for our build infrastructure.

Thank you for the update.

@TerryD Please try v2023.03.27.2013 and lmk if it helps with your issue

looks like some progress but still getting errors:

2023/03/27 13:46:37.998880 [ERR] Failed to generate preview @ 6330.21: exit status 1
2023/03/27 13:46:37.999394 [HLS] ffmpeg: ----0-0--0-0---false-false-0-0: ld-elf.so.1: Shared object "libstdc++.so.6" not found, required by "ffmpeg"
2023/03/27 13:46:38.006936 [ERR] Failed to generate preview @ 6335.43: exit status 1
2023/03/27 13:46:38.007567 [HLS] ffmpeg: ----0-0--0-0---false-false-0-0: ld-elf.so.1: Shared object "libstdc++.so.6" not found, required by "ffmpeg"
2023/03/27 13:46:38.013924 [ERR] Failed to generate preview @ 6343.37: exit status 1
2023/03/27 13:46:38.014447 [HLS] ffmpeg: ----0-0--0-0---false-false-0-0: ld-elf.so.1: Shared object "libstdc++.so.6" not found, required by "ffmpeg"
2023/03/27 13:46:38.019005 [ERR] Failed to generate preview @ 6348.67: exit status 1
2023/03/27 13:46:38.019453 [HLS] ffmpeg: ----0-0--0-0---false-false-0-0: ld-elf.so.1: Shared object "libstdc++.so.6" not found, required by "ffmpeg"
2023/03/27 13:46:38.019571 [ERR] Failed to generate preview @ 6353.96: exit status 1

FYI, I turned off "Automatically generate commercial editor thumbnails"
Just to see how it would work and unfortunately got:
2023/03/27 18:16:05.911104 [DVR] Running commercial detection on file 2100 (TV\Quantum Leap\Quantum Leap S01E16 Ben Interrupted 2023-03-20-2200.mpg)
2023/03/27 18:16:12.142729 [DVR] Commercial detection failed for TV\Quantum Leap\Quantum Leap S01E16 Ben Interrupted 2023-03-20-2200.mpg with exit status 255

Please try v2023.03.27.2220

1 Like

Works for me, no more broken images or errors in the logs.

Many Thanks.

1 Like

I'm still getting:
2023/03/27 19:30:25.862669 [DVR] Running commercial detection on file 2100 (TV\Quantum Leap\Quantum Leap S01E16 Ben Interrupted 2023-03-20-2200.mpg)
2023/03/27 19:30:32.066013 [DVR] Commercial detection failed for TV\Quantum Leap\Quantum Leap S01E16 Ben Interrupted 2023-03-20-2200.mpg with exit status 255

This is without the "Automatically generate commercial editor thumbnails" option

Wish I had better news

Correction, "Automatically generate commercial editor thumbnails" is checked. I'm going to uncheck it and try again.

Unfortunately, either way, it is failing for me:
2023/03/27 19:39:36.745953 [DVR] Running commercial detection on file 2100 (TV\Quantum Leap\Quantum Leap S01E16 Ben Interrupted 2023-03-20-2200.mpg)
2023/03/27 19:39:42.853384 [DVR] Commercial detection failed for TV\Quantum Leap\Quantum Leap S01E16 Ben Interrupted 2023-03-20-2200.mpg with exit status 255

I've verified that I'm running 2023.03.27.2220

I'm doing a redetect commercials. Am I forgetting something I need to do?