Wednesday, January 28, 2009

Keyframe distance - the real meaning

This is also called Key Frame every x frames.


This sets the maximum # of frames between key frames. If this # of frames without a keyframe occurs, the compressor will insert a keyframe regardless of whether the scene has changed.


The larger this number, the smaller the resulting video file.

The smaller this number, the more control the user has over video playback - when seeking in web video, you might only be able to seek to a key frame.


I would recommend setting this to 5-10 seconds for reasonable file size of longer videos.

(for 30 frame/second video, set this to 150-300)

For 1-3 minute videos where you want users to be able to seek more accurately, set this to 2-5 seconds.


3 comments:

n8tang said...

Thanks, great idea for a blog. There's an art to compression.

Unknown said...

If you're exporting Mainconcept h.264 1920x1080 at 23.97, and you are exporting a sequence with a lot of scene changes rapidly, what key frame distance would you use?

Unknown said...
This comment has been removed by the author.