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

Please upload an affected recording Dropbox

The file is uploading. The first two recordings I tested did not exist. Probably restored an out of date backup. This one is on disk and did not work. I'm going to restart my server and try again.

I'm getting this error on redetect commercials:

2023/03/27 19:56:28.058869 [DVR] Running commercial detection on file 2101 (TV\Superman & Lois\Superman & Lois S03E02 Uncontrollable Forces 2023-03-21-2000.mpg)
2023/03/27 19:56:29.462276 [DVR] Commercial detection failed for TV\Superman & Lois\Superman & Lois S03E02 Uncontrollable Forces 2023-03-21-2000.mpg with signal: bus error

The upload finished

1 Like

Thanks. Bus error reproduced.

Thank you for the update. I'm making a test recording right now. Will see how that goes.

This is what I got when ffmpeg ran on my test:

2023/03/27 20:32:05.312028 [DVR] Running commercial detection on file 2102 (TV/MLB Baseball/MLB Baseball Tampa Bay Rays at New Yor 2023-03-27-2014.mpg)
2023/03/27 20:32:31.330845 [ENC] Starting encoder for MLB Baseball Tampa Bay Rays at New Yor 2023-03-27-2014.mpg in /media/DVR/Streaming/file2102-ip192.168.2.27-3451823710/encoder-0-1288291846 at 0 (0.000000) (encoder=libx264, resolution=384, deinterlacer=blend, bitrate=372, segment_size=0.01)
2023/03/27 20:32:31.336382 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 1, dts = 334514835), dropping it.
2023/03/27 20:32:31.336403 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 2, dts = 334517715), dropping it.
2023/03/27 20:32:31.337277 [HLS] ffmpeg: file2102-ip192.168.2.27:  Error while decoding stream #0:1: Invalid data found when processing input
2023/03/27 20:32:31.337290 [HLS] ffmpeg: file2102-ip192.168.2.27:  Error while decoding stream #0:2: Invalid data found when processing input
2023/03/27 20:32:31.563402 [ENC] Request for 0 is for different transcoding parameters: 5mbps
2023/03/27 20:32:31.569747 [ENC] Stopped encoder for MLB Baseball Tampa Bay Rays at New Yor 2023-03-27-2014.mpg in /media/DVR/Streaming/file2102-ip192.168.2.27-3451823710/encoder-0-1288291846 after encoding 0 to 1
2023/03/27 20:32:31.583399 [ENC] Starting encoder for MLB Baseball Tampa Bay Rays at New Yor 2023-03-27-2014.mpg in /media/DVR/Streaming/file2102-ip192.168.2.27-3451823710/encoder-0-3355669460 at 0 (0.000000) (encoder=libx264, resolution=720, deinterlacer=blend, bitrate=5488, segment_size=0.01)
2023/03/27 20:32:31.589799 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 1, dts = 334514835), dropping it.
2023/03/27 20:32:31.589812 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 2, dts = 334517715), dropping it.
2023/03/27 20:32:31.590644 [HLS] ffmpeg: file2102-ip192.168.2.27:  Error while decoding stream #0:1: Invalid data found when processing input
2023/03/27 20:32:31.590659 [HLS] ffmpeg: file2102-ip192.168.2.27:  Error while decoding stream #0:2: Invalid data found when processing input
2023/03/27 20:32:31.902351 [ENC] Request for 1 is for different transcoding parameters: 808kbps
2023/03/27 20:32:31.913064 [ENC] Stopped encoder for MLB Baseball Tampa Bay Rays at New Yor 2023-03-27-2014.mpg in /media/DVR/Streaming/file2102-ip192.168.2.27-3451823710/encoder-0-3355669460 after starting from 0 without encoding any segments
2023/03/27 20:32:31.926571 [ENC] Starting encoder for MLB Baseball Tampa Bay Rays at New Yor 2023-03-27-2014.mpg in /media/DVR/Streaming/file2102-ip192.168.2.27-3451823710/encoder-1-3654434002 at 1 (0.000000) (encoder=libx264, resolution=576, deinterlacer=blend, bitrate=808, segment_size=0.01)
2023/03/27 20:32:31.932194 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 1, dts = 334514835), dropping it.
2023/03/27 20:32:31.932212 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 2, dts = 334517715), dropping it.
2023/03/27 20:32:31.933078 [HLS] ffmpeg: file2102-ip192.168.2.27:  Error while decoding stream #0:1: Invalid data found when processing input
2023/03/27 20:32:31.933091 [HLS] ffmpeg: file2102-ip192.168.2.27:  Error while decoding stream #0:2: Invalid data found when processing input
2023/03/27 20:32:32.242685 [ENC] Request for 2 is for different transcoding parameters: 3mbps
2023/03/27 20:32:32.251932 [ENC] Stopped encoder for MLB Baseball Tampa Bay Rays at New Yor 2023-03-27-2014.mpg in /media/DVR/Streaming/file2102-ip192.168.2.27-3451823710/encoder-1-3654434002 after starting from 1 without encoding any segments
2023/03/27 20:32:32.265636 [ENC] Starting encoder for MLB Baseball Tampa Bay Rays at New Yor 2023-03-27-2014.mpg in /media/DVR/Streaming/file2102-ip192.168.2.27-3451823710/encoder-2-3968052442 at 2 (1.071555) (encoder=libx264, resolution=720, deinterlacer=blend, bitrate=3916, segment_size=0.01)
2023/03/27 20:32:32.271181 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 1, dts = 334514835), dropping it.
2023/03/27 20:32:32.271197 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 2, dts = 334517715), dropping it.
2023/03/27 20:32:32.271494 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 2, dts = 334517715), dropping it.
2023/03/27 20:32:32.272578 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 1, dts = 334514835), dropping it.
2023/03/27 20:32:32.272586 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 2, dts = 334517715), dropping it.
2023/03/27 20:32:32.274017 [HLS] ffmpeg: file2102-ip192.168.2.27:  Error while decoding stream #0:1: Invalid data found when processing input
2023/03/27 20:32:32.274034 [HLS] ffmpeg: file2102-ip192.168.2.27:  Error while decoding stream #0:2: Invalid data found when processing input
2023/03/27 20:32:32.684706 [ENC] Request for 3 is for different transcoding parameters: 5mbps
2023/03/27 20:32:32.697332 [ENC] Stopped encoder for MLB Baseball Tampa Bay Rays at New Yor 2023-03-27-2014.mpg in /media/DVR/Streaming/file2102-ip192.168.2.27-3451823710/encoder-2-3968052442 after starting from 2 without encoding any segments
2023/03/27 20:32:32.711684 [ENC] Starting encoder for MLB Baseball Tampa Bay Rays at New Yor 2023-03-27-2014.mpg in /media/DVR/Streaming/file2102-ip192.168.2.27-3451823710/encoder-3-4218698514 at 3 (2.072565) (encoder=libx264, resolution=720, deinterlacer=blend, bitrate=5488, segment_size=0.01)
2023/03/27 20:32:32.718196 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 1, dts = 334514835), dropping it.
2023/03/27 20:32:32.718213 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 2, dts = 334517715), dropping it.
2023/03/27 20:32:32.718553 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 2, dts = 334517715), dropping it.
2023/03/27 20:32:32.719667 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 1, dts = 334514835), dropping it.
2023/03/27 20:32:32.719682 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 2, dts = 334517715), dropping it.
2023/03/27 20:32:32.721302 [HLS] ffmpeg: file2102-ip192.168.2.27:  Error while decoding stream #0:2: Invalid data found when processing input
2023/03/27 20:32:32.721319 [HLS] ffmpeg: file2102-ip192.168.2.27:  Error while decoding stream #0:1: Invalid data found when processing input
2023/03/27 20:32:33.328804 [ENC] Request for 5 is for different transcoding parameters: 7mbps
2023/03/27 20:32:33.340239 [ENC] Stopped encoder for MLB Baseball Tampa Bay Rays at New Yor 2023-03-27-2014.mpg in /media/DVR/Streaming/file2102-ip192.168.2.27-3451823710/encoder-3-4218698514 after encoding 3 to 4
2023/03/27 20:32:33.353778 [ENC] Starting encoder for MLB Baseball Tampa Bay Rays at New Yor 2023-03-27-2014.mpg in /media/DVR/Streaming/file2102-ip192.168.2.27-3451823710/encoder-5-2198252003 at 5 (4.074563) (encoder=libx264, resolution=720, deinterlacer=blend, bitrate=7488, segment_size=0.01)
2023/03/27 20:32:33.359297 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 1, dts = 334514835), dropping it.
2023/03/27 20:32:33.359307 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 2, dts = 334517715), dropping it.
2023/03/27 20:32:33.359598 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 2, dts = 334517715), dropping it.
2023/03/27 20:32:33.360660 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 1, dts = 334514835), dropping it.
2023/03/27 20:32:33.360674 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 2, dts = 334517715), dropping it.
2023/03/27 20:32:33.362521 [HLS] ffmpeg: file2102-ip192.168.2.27:  Error while decoding stream #0:1: Invalid data found when processing input
2023/03/27 20:32:33.362532 [HLS] ffmpeg: file2102-ip192.168.2.27:  Error while decoding stream #0:2: Invalid data found when processing input
2023/03/27 20:32:33.973963 [ENC] Request for 7 is for different transcoding parameters: 9mbps
2023/03/27 20:32:33.988226 [ENC] Stopped encoder for MLB Baseball Tampa Bay Rays at New Yor 2023-03-27-2014.mpg in /media/DVR/Streaming/file2102-ip192.168.2.27-3451823710/encoder-5-2198252003 after encoding 5 to 6
2023/03/27 20:32:34.000332 [ENC] Starting encoder for MLB Baseball Tampa Bay Rays at New Yor 2023-03-27-2014.mpg in /media/DVR/Streaming/file2102-ip192.168.2.27-3451823710/encoder-7-3315253277 at 7 (6.076561) (encoder=libx264, resolution=720, deinterlacer=blend, bitrate=9488, segment_size=0.01)
2023/03/27 20:32:34.005981 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 1, dts = 334514835), dropping it.
2023/03/27 20:32:34.005999 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 2, dts = 334517715), dropping it.
2023/03/27 20:32:34.006317 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 2, dts = 334517715), dropping it.
2023/03/27 20:32:34.007408 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 1, dts = 334514835), dropping it.
2023/03/27 20:32:34.007417 [HLS] ffmpeg: file2102-ip192.168.2.27:  [mpegts @ 0x807639500] Packet corrupt (stream = 2, dts = 334517715), dropping it.
2023/03/27 20:32:34.009604 [HLS] ffmpeg: file2102-ip192.168.2.27:  Error while decoding stream #0:1: Invalid data found when processing input
2023/03/27 20:32:34.009623 [HLS] ffmpeg: file2102-ip192.168.2.27:  Error while decoding stream #0:2: Invalid data found when processing input
2023/03/27 20:32:41.342911 [ENC] Stopped encoder for MLB Baseball Tampa Bay Rays at New Yor 2023-03-27-2014.mpg in /media/DVR/Streaming/file2102-ip192.168.2.27-3451823710/encoder-7-3315253277 after encoding 7 to 62
2023/03/27 20:32:53.897732 [DVR] Commercial detection for MLB Baseball Tampa Bay Rays at New Yor 2023-03-27-2014.mpg finished with 2 markers in 48.585866096s (3 threads).

It worked. "finished with 2 markers in 48.585866096s (3 threads)."
The rest of the log lines are from someone watching the recording while comskip was detecting ads

Please try new prerelease

@Morris_Altman any luck?

Hi, I wish I could have tested sooner for you. Mixed results:

2023/03/28 11:59:05.574206 [DVR] Running commercial detection on file 2101 (TV\Superman & Lois\Superman & Lois S03E02 Uncontrollable Forces 2023-03-21-2000.mpg)
2023/03/28 11:59:07.288832 [DVR] Commercial detection failed for TV\Superman & Lois\Superman & Lois S03E02 Uncontrollable Forces 2023-03-21-2000.mpg with signal: bus error

That is the file I set you yesterday. I also ran on another one that was recorded after I sent that file and it worked:

2023/03/28 12:00:54.169083 [DVR] Running commercial detection on file 2106 (TV\Quantum Leap\Quantum Leap S01E17 The Friendly Skies 2023-03-27-2200.mpg)
2023/03/28 12:01:58.728537 [DVR] Commercial detection for TV\Quantum Leap\Quantum Leap S01E17 The Friendly Skies 2023-03-27-2200.mpg finished with 12 markers in 1m4.559714542s (2 threads).

The test I did with the short recording I did yesterday also worked. Today's test is with the latest release 2023.03.28.1508

I'm happy to see progress. I'm thinking of staying on the TrueNAS plug-in and see how things go. Is there something wrong with that Superman file?

Question: Under Basic Settings
Bonjour

It shows enabling
Enabling...

That seems wrong. It should show the IP it's broadcasting. How do I correct this?

The superman file is the one you tried and got the bus error. You stated you got that as well

Please submit diagnostics

Logs have been submitted as f14c849a-1aa9-44a2-861c-3e4894e1c034 .

The Bonjour issue was corrected by a restart.

comskip issue is fixed in next prerelease

Yes it's fixed :-}

Thank you

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.