I found that Comskip has a problem with ATSC 3.0 - 1080p/720p (HEVC). As there are no stations broadcasting any higher than 1080/720p in my area I can’t verify if my workaround works with 4k (I think it should because of the scaling), perhaps someone else can confirm.
The problem: Comskip appears to process these recordings fine but it always states “Commercials were not found.” and he edl file is 0bytes.
I‘ve found the following command lines to work successfully,
Windows:
Linux:ffmpeg -hide_banner -v error -i BBhevc.ts -vf scale=480:-1 -c:v mpeg4 -f matroska pipe: | comskip -q --ini=C:\Bin\comskip\comskip.ini --output-filename=BBhevc pipe: .
I tried other ffmpeg setting but they either result the wrong output in the .edl or random broken pipes. The biggest downside to this is the time penalty ~4x in windows and whopping ~16x on linux (PI 4b, it takes about the same amount of time for Comskip to run as it does to watch it).ffmpeg -hide_banner -v error -i BBhevc.ts -vf scale=480:-1 -c:v mpeg4 -f matroska pipe: | comskip -q --ini=/usb/m/comskip.ini --output-filename=BBhevc pipe: .
Any hope this can be done better natively by Comskip?
I can supply a sample video link if Erik is interested.
Thanks,
TMC
Video info
Title 720p HEVC
Codec HEVC
Profile Main 10
Level 120
Resolution 1280x720
Aspect Ratio 16:9
Interlaced No
Framerate 59.94
Bitrate 1,922 kbps
Bit Depth 10 bit
Pixel Format yuv420p10le
Reference Frames 1