OH_AVRecorder_Profile
typedef struct OH_AVRecorder_Profile {...} OH_AVRecorder_Profile
Overview
Defines a struct for the parameters used for audio and video recording.
You can choose to record only audio or only video by setting the parameters.
- When audioBitrate or audioChannels is set to 0, audio recording is disabled.
- When videoFrameWidth or videoFrameHeight is set to 0, video recording is disabled.
For details about the value range of each parameter, see AVRecorderProfile.
Since: 18
Related module: AVRecorder
Header file: avrecorder_base.h
Summary
Member Variables
| Name | Description |
|---|---|
| int32_t audioBitrate | Audio bitrate. The unit is bit/s. |
| int32_t audioChannels | Number of channels. |
| OH_AVRecorder_CodecMimeType audioCodec | Audio encoding format. |
| int32_t audioSampleRate | Audio sampling rate. The unit is Hz. |
| OH_AVRecorder_ContainerFormatType fileFormat | Output file format. |
| int32_t videoBitrate | Video bitrate. The unit is bit/s. |
| OH_AVRecorder_CodecMimeType videoCodec | Video encoding format. |
| int32_t videoFrameWidth | Video width. The unit is px. |
| int32_t videoFrameHeight | Video height. The unit is px. |
| int32_t videoFrameRate | Video frame rate. The unit is frames per second (FPS). |
| bool isHdr | Whether HDR videos are recorded. true if recorded, false otherwise. The default value is false. |
| bool enableTemporalScale | Whether temporal scalable encoding is enabled. When this parameter is set to true, some frames in the encoded output stream can be skipped to optimize encoding efficiency. When it is set to false, all frames in the encoded output stream must be encoded without skipping. For details, see Temporally Scalable Video Coding The default value is false. |