Add time of first keyframe

Here you can ask your questions on how to use Comskip for the detection of commercials. Also questions on how to remove commercials are welcome
Post Reply
Posts: 6
Joined: Mon May 29, 2017 8:45 pm

Add time of first keyframe

Post by ObvB »

I'm using comskip as the source times for editing MPEG2 files generated by TVheadend.

I use ffmpeg to seek to an exact time (, but the times in the .edl file are off by the time of the first keyframe.

I can use ffprobe, or other tools, to find the time of the first keyframe, then add this time to all of the times in the .edl, and ffmpeg then cuts perfectly.

Is there an option that I have missed to do this for me? Is it an option that could be added? If the answer to both is "no", I can continue to work around it, but its a bit of a PITA.

Site Admin
Posts: 3338
Joined: Sun Aug 21, 2005 3:49 pm

Re: Add time of first keyframe

Post by erik »

Comskip uses an extensive robustness mechanism to protect against recordings with bad timelines.
The downside of this is what you observe, an I have no quick solution

Post Reply