Example Usage:
sc = Flix2_AddCodec(&codec, flix, FE2_CODEC_VP6ALPHA); //Use 380kbit for the video .. if(sc == ON2_OK) sc = Flix2_CodecSetParam(codec, FE2_VP6A_BITRATE, 380.0); //..and 68kbit for the alpha channel if(sc == ON2_OK) sc = Flix2_CodecSetParam(codec, FE2_VP6A_ALPHA_BITRATE, 68.0);
As mentioned in the VP6 section Defaults dependent on bits per pixel some of the codec parameters are determined by the bits per pixel in the output. Currently the alpha channel parameters, e.g. FE2_VP6A_ALPHA_MIN_Q, match their VP6 equivalents.
#define FE2_CODEC_VP6ALPHA |
#define FE2_VP6A_2PASS_MAX_SECTION |
Alias for FE2_VP6_2PASS_MAX_SECTION.
VBR_2PASSControl maximum section datarate
This value is given as a percentage. The highest datarate, i.e., , that can be streamed, and also the highest datarate that the encoder will allow, no matter how difficult the section is.
Definition at line 202 of file vp6_alpha.h.
#define FE2_VP6A_2PASS_MIN_SECTION |
Alias for FE2_VP6_2PASS_MIN_SECTION.
VBR_2PASSControl minimum section datarate
This value is given as a percentage. The lowest datarate, i.e., , that the encoder will allow for any section, no matter how easy the section is. This value is used to prevent difficult sections from stealing too many bits from easy sections.
Definition at line 196 of file vp6_alpha.h.
#define FE2_VP6A_ALPHA_BITRATE |
Compressed bitrate of the alpha channel in kbit/s.
Definition at line 74 of file vp6_alpha.h.
#define FE2_VP6A_ALPHA_MAX_Q |
Maximum quantizer for the alpha channel.
Definition at line 154 of file vp6_alpha.h.
#define FE2_VP6A_ALPHA_MIN_Q |
Minimum quantizer for the alpha channel.
Definition at line 143 of file vp6_alpha.h.
#define FE2_VP6A_ALPHA_NOISE_REDUCTION |
Noise reduction for the alpha channel.
Definition at line 120 of file vp6_alpha.h.
#define FE2_VP6A_ALPHA_SHARPNESS |
Sharpness for the alpha channel.
Definition at line 109 of file vp6_alpha.h.
#define FE2_VP6A_BITRATE |
Alias for FE2_CODECPARAM_BITRATE.
Codec parameter for stream bitrate.
Compressed stream bitrate in kbits/sec.
Definition at line 69 of file vp6_alpha.h.
#define FE2_VP6A_CXMODE |
Alias for FE2_VP6_CXMODE.
VP6 compress mode.
Valid values are defined by FE2_CompressMode
Definition at line 98 of file vp6_alpha.h.
#define FE2_VP6A_KFFREQ |
Alias for FE2_VP6_KFFREQ.
Alias for FE2_VCODECPARAM_KFFREQ.
Video codec parameter for keyframe frequency.
Value is in video frames. The interpretation depends on the setting of FE2_VCODECPARAM_KFINTTYPE
Definition at line 86 of file vp6_alpha.h.
#define FE2_VP6A_KFINTTYPE |
Alias for FE2_VP6_KFINTTYPE.
Alias for FE2_VCODECPARAM_KFINTTYPE.
Video codec parameter for the keyframe interval type.
Valid values are defined by FE2_VideoKeyframeTypes.
Definition at line 80 of file vp6_alpha.h.
#define FE2_VP6A_MAX_Q |
Alias for FE2_VP6_MAX_Q.
Codec parameter for maximum quantizer.
Determines the quality of the output. A lower maximum number produces higher quality output.
Definition at line 149 of file vp6_alpha.h.
#define FE2_VP6A_MIN_Q |
Alias for FE2_VP6_MIN_Q.
Codec parameter for minimum quantizer.
Determines the quality of the output. A lower minimum number produces higher quality output.
Definition at line 138 of file vp6_alpha.h.
#define FE2_VP6A_NOISE_REDUCTION |
Alias for FE2_VP6_NOISE_REDUCTION.
Codec parameter for noise reduction.
Determines the level of noise filtering to apply in the preprocessor. 0 is no preprocessing, 6 is extreme preprocessing.
Definition at line 115 of file vp6_alpha.h.
#define FE2_VP6A_RC_MODE |
Alias for FE2_VCODECPARAM_RC_MODE.
Definition at line 92 of file vp6_alpha.h.
#define FE2_VP6A_SHARPNESS |
Alias for FE2_VP6_SHARPNESS.
Codec parameter for sharpness.
Controls the sharpness of the image in the output. This setting does not impact any other setting and is largely a matter of personal preference. A low sharpness setting will result in fewer visible artifacts but may blur the image somewhat; a high sharpness will result in a sharper image but may result in more visible artifacts.
Definition at line 104 of file vp6_alpha.h.
#define FE2_VP6A_STREAM_MAX_BUFFER |
Alias for FE2_VP6_STREAM_MAX_BUFFER.
The maximum size of the buffer, in seconds.
Definition at line 190 of file vp6_alpha.h.
#define FE2_VP6A_STREAM_OPTIMAL_BUFFER |
Alias for FE2_VP6_STREAM_OPTIMAL_BUFFER.
Buffer size that the encoder strives to reach or maintain in case of specific frame overshoots.
Definition at line 184 of file vp6_alpha.h.
#define FE2_VP6A_STREAM_PEAK_BITRATE |
Alias for FE2_VP6_STREAM_PEAK_BITRATE.
The maximum bitrate allowed in the stream.
This value is given as a percentage. The peak bitrate is calculated as follows:
Definition at line 172 of file vp6_alpha.h.
#define FE2_VP6A_STREAM_PREBUFFER |
Alias for FE2_VP6_STREAM_PREBUFFER.
Seconds of preload that are necessary before starting playback.
The buffer is used to maintain a consistent datarate and minimize playback interruption.
Definition at line 178 of file vp6_alpha.h.
#define FE2_VP6A_TEMPORAL_DOWN_WATERMARK |
Alias for FE2_VP6_TEMPORAL_DOWN_WATERMARK.
Codec parameter for temporal down watermark percentage.
Specifies the percentage of the datarate buffer remaining below which the encoder is allowed to start dropping frames. Only used if FE2_VP6_TEMPORAL_RESAMPLING is enabled.
Definition at line 166 of file vp6_alpha.h.
#define FE2_VP6A_TEMPORAL_RESAMPLING |
Alias for FE2_VP6_TEMPORAL_RESAMPLING.
Codec parameter for temporal resampling.
In particularly difficult regions, if enabled, the encoder will drop frames to achieve the target the data rate. The value of FE2_VP6_TEMPORAL_DOWN_WATERMARK determines the percentage of the datarate buffer below which the encoder is enabled to start dropping frames.
Definition at line 160 of file vp6_alpha.h.
#define FE2_VP6A_UNDERSHOOT_PCT |
Alias for FE2_VP6_UNDERSHOOT_PCT.
Codec parameter for undershoot percentage.
This value is given as a percentage. Creates output that targets a slightly lower datarate so there are bits available in the buffer to improve difficult sections.
Definition at line 132 of file vp6_alpha.h.