Video_options_setmaximumbitrate, Video_options, Setmaximumbitrate() – Google Flix Engine Linux Reference Manual User Manual
Page 270

264
Flix Engine Linux Module Documentation
5.56.2.17
on2sc video_options_SetKeyframeIntervalType (FLIX2HANDLE flix, const
FE2_VideoKeyframeTypes keyframeIntervalType)
Set the keyframe interval type.
Two keyframe modes are supported,
(the default) and
These specify that the keyframe interval set using
video_options_SetKeyframeInterval()
is either the max-
imum interval between keyframes or a fixed interval, respectively. In general, the compression codec does
the best job of deciding when keyframes should be used, so setting the maximum interval is usually more
appropriate.
Parameters:
← flix Handle to the Flix Engine returned from
or
← keyframeIntervalType Keyframe interval type (one of
Return values:
The keyframe interval was successfully set in the engine.
The value is out of range.
The underlying communication layer failed.
Note:
The default value is
Use the
along with the
parameter. This func-
tion will be removed in a future release. See also:
5.56.2.18
on2sc video_options_SetMaximumBitrate (FLIX2HANDLE flix, const int32_t
lMaximumBitrate)
Set the maximum bitrate target.
Sets the bitrate the compressor will target when encoding the video.
Parameters:
← flix Handle to the Flix Engine returned from
or
← lMaximumBitrate Bitrate target (in Kbps)
Return values:
The target bitrate was successfully set in the engine.
The value is out of range.
The underlying communication layer failed.
Note:
This bitrate should be a reasonable number with respect to the other video parameters. To determine
if a particular value is reasonable or not, first calculate the number of bits per pixel it represents, given
the bitrate in Kbps, framerate in frames per second, and width and height in pixels, using this equation:
bpp =
bitrate ∗ 1024
width ∗ height ∗ f ramerate
Generated on Tue Jul 20 17:39:03 2010 for Flix Engine Linux by Doxygen