MediaRecorder.SetVideoEncodingQuality(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the video encoding quality for recording.
[Android.Runtime.Register("setVideoEncodingQuality", "(I)V", "GetSetVideoEncodingQuality_IHandler", ApiSince=37)]
public virtual void SetVideoEncodingQuality(int quality);
[<Android.Runtime.Register("setVideoEncodingQuality", "(I)V", "GetSetVideoEncodingQuality_IHandler", ApiSince=37)>]
abstract member SetVideoEncodingQuality : int -> unit
override this.SetVideoEncodingQuality : int -> unit
Parameters
- quality
- Int32
the video encoding quality. Range of possible values can be obtained for a
specific encoder by querying MediaCodecInfo.EncoderCapabilities#getQualityRange. Quality is implementation-specific. As
a general rule, a higher quality setting results in a better image quality and a lower
compression ratio.
- Attributes
Remarks
Sets the video encoding quality for recording. Call this method before prepare(). prepare() may perform additional checks on the parameter to make sure the specified quality value is applicable. The parameter will only be applied if MediaCodecInfo.EncoderCapabilities.BITRATE_MODE_CQ mode is supported for the selected encoder. Applications should not set both encoding quality and encoding bitrate, because in this case behavior is undefined.
Android reference for android.media.MediaRecorder.setVideoEncodingQuality.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.