Comskip randomly not detecting commercials
Added by Sterling Rorden over 1 year ago
I'm running TVH 4.3 backend on a Ugoox X3 Cube running CoreELEC 19.5. Comskip Ver 0.82.009 is packaged with the CoreELEC TVH server add-on. My tuner is a SiliconDust HDHomerun Quatro running the latest firmware.
Comskip randomly will not detect commercials on shows. On one show it will work perfectly. On the next episode of the same series no commercials will be detected. Or the next show on the same channel will have no commercials detected. I don’t think I’ve had a series or station that never had the problem, nor a series or station that always has the problem.
The media sources are US OTA ATSC broadcasts from ABC, NBC, CBS, etc. The problem happens on all networks. And the streams play fine when I watch them.
.edl and .txt files are being created but they have no frames listed when the commercials aren’t being skipped.
I get the following error multiple times in the Comskip log file when the commercials aren’t detected:
Panic: Audio buffer overflow, resetting audio buffer
I posted the problem on the Comskip forum and was told:
“The reason for the “panic” message is an incompatible audio coding in the transmission format chosen by the broadcaster
This can not be solved with ini file settings.”
Someone on the CoreELEC forum requested I post a recording that Comskip has problems with:
https://drive.google.com/drive/folders/1H8IKLCbucndr_QBoGsXorCq8CCWBUX3l?usp=share_link
He stated:
"I don’t think the issue is random there is something about the file that is causing an issue with arm32 comskip. I tried the the current version and it fails the same way. If you remux it with ffmpeg -i filename.ts -codec copy newfile.ts the second audio channel is removed."
and:
"I believe the issue with your file has PMT data for all streams on the mux not just the one you are recording. Maybe you can configure TVHeadend to rewrite the file?
Srv Id Service Name Access Bitrate |
0x0001 KCRA-TV ...................................... C 5,255,053 b/s |
0x0002 Me-TV ........................................ C Unknown |
0x0003 KCRA-3 ....................................... C Unknown |
0x0004 KQCA ......................................... C Unknown |
0x0005 H and I ...................................... C Unknown |
0x0006 KCRA-4 ....................................... C Unknown |
Cleaning out the bad PMT values generates good comskip files"
Is there a way to do as he suggested in Tvheadend so that the file only has the PMT data for the show being recorded? Or any other suggestions on what the problem might be?
Thanks
Replies (3)
RE: Comskip randomly not detecting commercials - Added by Dave Pickles over 1 year ago
It is possible to strip data from unwanted streams using the Rewrite options in Configuration -> Stream -> Stream Profiles -> Pass. Then select "Pass" in Configuration -> Recording -> (your profile) -> Stream Profile. However I don't know if this will work with ATSC.
RE: Comskip randomly not detecting commercials - Added by Sterling Rorden over 1 year ago
It appears that those are my default settings. Is there anything I should try unchecking under the rewrite options?
Screenshot (60).png (154 KB) Screenshot (60).png | |||
Screenshot (59).png (150 KB) Screenshot (59).png |
RE: Comskip randomly not detecting commercials - Added by Sterling Rorden over 1 year ago
So I did some research and supposedly Kodi only supports the htsp stream profile so I was wondering if that could be my problem. I'm assuming "pass" means passthrough so it isn't reencoding. However, when I go to Configuration -> Recording -> (default profile) -> Stream Profile pass is selected. If I change stream profile to htsp and select Save the htsp stream profile doesn't stick and it reverts back to pass. However any other stream profile will stick. I tried cloning the default recording profile and htsp still doesn't stick.
Am I doing something wrong? Are there some other settings that are preventing me from selecting the htsp stream profile?