I am trying to decide programmatically if the video needs to be transcoded or not and one of the requirements is that the keyint needs to be 40 as the video is meant to be for a specific hardware. I am using mediainfo to get most of the video and audio parameters. I could not find a way to know what that keyint size of the video is. I tried Format_Settings_GOP but that field is empty depending on the encoding application for the video. Is there a way to find keyint from mediainfo or ffmpeg?
+ Reply to Thread
Results 1 to 2 of 2
Thread: Find keyint of an h.264 video
Does the max keyframe interval have to be 40 or less (variable), or does an IDR frame have to be exactly spaced every 40 frames ?
You can generate a text file with frame types (e.g. using ffmpeg or selur's framecounter), but you would still to write a parsing utility to determine the maximum IDR interval
There are a bunch of different methods here to generate frame type list
It might be better if you posted in the "programming" section