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).