• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# OH_AVRecorder_Profile
2<!--Kit: Media Kit-->
3<!--Subsystem: Multimedia-->
4<!--Owner: @shiwei75-->
5<!--Designer: @HmQQQ-->
6<!--Tester: @xdlinc-->
7<!--Adviser: @zengyawen-->
8
9## Overview
10
11The struct describes the parameters used for audio and video recording.
12
13You can choose to record only audio or only video by setting the parameters.
14
151. When **audioBitrate** or **audioChannels** is set to **0**, audio recording is disabled.
162. When **videoFrameWidth** or **videoFrameHeight** is set to **0**, video recording is disabled.
17
18For details about the value range of each parameter, see [AVRecorderProfile](arkts-apis-media-i.md#avrecorderprofile9).
19
20**Since**: 18
21
22**Related module**: [AVRecorder](capi-avrecorder.md)
23
24**Header file**: [avrecorder_base.h](capi-avrecorder-base-h.md)
25
26## Summary
27
28### Member Variables
29
30| Name| Description|
31| -- | -- |
32| int32_t audioBitrate | Audio bit rate.|
33| int32_t audioChannels | Number of channels.|
34| [OH_AVRecorder_CodecMimeType](capi-avrecorder-base-h.md#oh_avrecorder_codecmimetype) audioCodec | Audio encoding format.|
35| int32_t audioSampleRate | Audio sample rate.|
36| [OH_AVRecorder_ContainerFormatType](capi-avrecorder-base-h.md#oh_avrecorder_containerformattype) fileFormat | Output file format.|
37| int32_t videoBitrate | Video bit rate.|
38| [OH_AVRecorder_CodecMimeType](capi-avrecorder-base-h.md#oh_avrecorder_codecmimetype) videoCodec | Video encoding format.|
39| int32_t videoFrameWidth | Video width.|
40| int32_t videoFrameHeight | Video height.|
41| int32_t videoFrameRate | Video frame rate.|
42| bool isHdr | Whether to record HDR videos.|
43| bool enableTemporalScale | Whether to enable temporal scaling encoding mode.|
44