How does changing the
Key Frame Distance control (as seen below) work in terms of quality and speed?
How does changing the
This is an answer I found on the adobe forums after googling it:
The keyframe distance is the maximum number of frames before the encoder inserts an i-frame, which is the highest-quality frame of an MPEG stream (ie, it has all the information for a single frame of video inside of it rather than relying on the frames around it to reconstruct). In between the i-frames are b-frames and p-frames, which are "difference" frames that reconstruct that frame of video by looking at the nearest i-frame and applying all the "difference" frames from that point forward (or backwards). The collection of an i-frame and all its connected p-frame and b-frames is called a GOP, or "Group of Pictures". So in essence the "keyframe distance" value determines the length of each GOP.
Note that Premiere automatically inserts a new i-frame for scene changes, irrespective of the keyframe distance value. This is to assure video quality at the start of a new scene since there wont be enough in common from previous b-frame and p-frames.
Generally speaking, the more i-frames you have, the higher the image quality of video, but also the larger the size of the video. So the value you choose for keyframe distance is a balance between the file size you want the video to fit in vs quality. If you're not concerned with file size or the file size generated is within reason then you can just leave it to its default value. Otherwise you can tweak it as part of the process to get the file size down to where you want it to be (in combination with the other encoder parameters such as bitrate).
This is the equivalent to Sony Vegas macroblocks. If you set it to 1, every frame will be built entirely, but if set to the the default 4 every frame will be divided by four. This is designed for the compression ratio - if you're using it - Depending on the profile, if using High for example, uses the h264 maximum compression rate that is 8. In other words, a video of 640x360 at 60 fps is 13824000 bits per second: in baseline profile must be constant br at 1 macroblock. This is the fastest rendering for any video editing program, because these are uncompressed values. If you wish to add compression in render, use High profile, and divide the bit rate by 8. If using variable bit rate, set the half of it to average and the divided by 8 total in the maximum bit rate and use 8 macroblocks. If using premiere, set the entire 1728 br and key frame distance to 8 too. But in every case, when using in render compression, picture quality is not guaranteed. If in doubt, always use uncompressed values.