Page 1 of 1

Add time of first keyframe

Posted: Tue Jan 23, 2018 7:55 pm
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.

Re: Add time of first keyframe

Posted: Wed Feb 07, 2018 7:25 am
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