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?
poisondeathray replied
To which my replay isDoes 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
http://forum.doom9.org/showthread.php?t=163553
It might be better if you posted in the "programming" section
i am just defining the max keyframe internal and yes it has to be below 40 as otherwise there is a delay for displaying the video by the hardware I am using.
		
			Closed Thread
			
		
		
		
			
	
	
				Results 1 to 3 of 3
			
		- 
	
 
- 
	There's no way to directly get the maximal gop size without scanning the whole file unless the file was encoded with x264 and the info is contained in the meta data. 
 So if your file was encoded with x264 you can normally get the gop size from the 'Encoding settings', if it wasn't encoded with x264, or the meta data regarding the 'Encoding settings' was removed you only option is to:
 1st scan the file go get the key-frame positions
 2nd calculate the maximum gop size from the key-frame positions.
 
 Should be easily possible to do it by using one of the methods mentioned in the doom9 thread.
 
 Cu Selur
 
- 
	Please do NOT cross post in several forums. COntinue in https://forum.videohelp.com/threads/353775-Find-keyint-of-an-h-264-video 
 
Similar Threads
- 
  Find keyint of an h.264 videoBy wotdefcuk in forum Video ConversionReplies: 1Last Post: 28th Feb 2013, 10:29
- 
  Extracting MMS Video Stream - Cannot find direct video linkBy childofsai in forum Video Streaming DownloadingReplies: 6Last Post: 21st Feb 2013, 18:18
- 
  Sound and video do not sync up when I convert avi to h.264 x 264.By toddlava1 in forum ffmpegX general discussionReplies: 1Last Post: 8th Mar 2012, 03:15
- 
  Empty audio files when converting MPEG2 with h.264 mencoder or h.264 x264By doctormelodious in forum ffmpegX general discussionReplies: 3Last Post: 4th Jul 2010, 09:12
- 
  Can't find a good program to convert .mov/.mp4/H.264/AVC watever video clipBy Nintendo Fan in forum Video ConversionReplies: 8Last Post: 21st Jan 2009, 19:28


 
		
		 View Profile
				View Profile
			 View Forum Posts
				View Forum Posts
			 Private Message
				Private Message
			 
 
			
			
 Visit Homepage
				Visit Homepage
			 
 
			
			 
			