openharmony 鸿蒙 capi-avrecorder-oh-avrecorder-profile

2026-08-25 浏览 (1)

OH_AVRecorder_Profile

typedef struct OH_AVRecorder_Profile {...} OH_AVRecorder_Profile

Overview

The struct describes the parameters used for audio and video recording.

You can choose to record only audio or only video by setting the parameters.

  1. When audioBitrate or audioChannels is set to 0, audio recording is disabled.
  2. 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

NameDescription
int32_t audioBitrateAudio bit rate.
int32_t audioChannelsNumber of channels.
OH_AVRecorder_CodecMimeType audioCodecAudio encoding format.
int32_t audioSampleRateAudio sample rate.
OH_AVRecorder_ContainerFormatType fileFormatOutput file format.
int32_t videoBitrateVideo bit rate.
OH_AVRecorder_CodecMimeType videoCodecVideo encoding format.
int32_t videoFrameWidthVideo width.
int32_t videoFrameHeightVideo height.
int32_t videoFrameRateVideo frame rate.
bool isHdrWhether HDR videos are recorded.
true if recorded, false otherwise.
The default value is false.
bool enableTemporalScaleWhether 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.

你可能感兴趣的鸿蒙文章

openharmony 鸿蒙 capi-avrecorder-oh-avrecorder-range

openharmony 鸿蒙 errorcode-media

openharmony 鸿蒙 capi-avplayer

openharmony 鸿蒙 capi-avplayer-base-h

openharmony 鸿蒙 capi-avimage-generator-h

openharmony 鸿蒙 capi-avscreencapture-oh-rect

openharmony 鸿蒙 capi-videoprocessing-videoprocessing-callback

openharmony 鸿蒙 capi-avsinkbase

openharmony 鸿蒙 capi-avmetadataextractor

openharmony 鸿蒙 capi-avscreencapture-oh-multidisplaycapability

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/1hWsSpG2