Add time of first keyframe
Posted: 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.
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.