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
ObvB
Posts: 6
Joined: Mon May 29, 2017 8:45 pm

Add time of first keyframe

Post by ObvB » Tue Jan 23, 2018 7:55 pm

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

I use ffmpeg to seek to an exact time (https://trac.ffmpeg.org/wiki/Seeking), 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.

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

Re: Add time of first keyframe

Post by erik » Wed Feb 07, 2018 7:25 am

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