• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# OH_AVRecorder_EncoderInfo
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 encoder information.
12
13**Since**: 18
14
15**Related module**: [AVRecorder](capi-avrecorder.md)
16
17**Header file**: [avrecorder_base.h](capi-avrecorder-base-h.md)
18
19## Summary
20
21### Member Variables
22
23| Name| Description|
24| -- | -- |
25| [OH_AVRecorder_CodecMimeType](capi-avrecorder-base-h.md#oh_avrecorder_codecmimetype) mimeType | MIME type of the encoder.|
26| char* type | Pointer to the encoder type. The value **audio** means an audio encoder, and **video** means a video encoder.|
27| [OH_AVRecorder_Range](capi-avrecorder-oh-avrecorder-range.md) bitRate | Bit rate range of the encoder, with the minimum and maximum bit rates specified.|
28| [OH_AVRecorder_Range](capi-avrecorder-oh-avrecorder-range.md) frameRate | Video frame rate range, with the minimum and maximum frame rates specified. This parameter is available only for video encoders.|
29| [OH_AVRecorder_Range](capi-avrecorder-oh-avrecorder-range.md) width | Video frame width range, with the minimum and maximum widths specified. This parameter is available only for video encoders.|
30| [OH_AVRecorder_Range](capi-avrecorder-oh-avrecorder-range.md) height | Video frame height range, with the minimum and maximum heights specified. This parameter is available only for video encoders.|
31| [OH_AVRecorder_Range](capi-avrecorder-oh-avrecorder-range.md) channels | Audio channel count for the audio capturer, with the minimum and maximum numbers of audio channels specified. This parameter is available only for audio encoders.|
32| int32_t* sampleRate | Pointer to the list of audio sample rates, including all available audio sample rates. This parameter is available only for audio encoders.|
33| int32_t sampleRateLen | Length of the audio sample rate list.|
34