harmony 鸿蒙OH_AVRecorder_Profile

  • 2025-06-12
  • 浏览 (4)

OH_AVRecorder_Profile

Overview

The OH_AVRecorder_Profile 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

|Name|Description| |–|–| |int32_t audioBitrate|Audio bit rate.| |int32_t audioChannels|Number of channels.| |OH_AVRecorder_CodecMimeType audioCodec|Audio encoding format.| |int32_t audioSampleRate|Audio sampling rate.| |OH_AVRecorder_ContainerFormatType fileFormat|Output file format.| |int32_t videoBitrate|Video bit rate.| |OH_AVRecorder_CodecMimeType videoCodec|Video encoding format.| |int32_t videoFrameWidth|Video width.| |int32_t videoFrameHeight|Video height.| |int32_t videoFrameRate|Video frame rate.| |bool isHdr|Whether to record HDR videos.| |bool enableTemporalScale|Whether to enable temporal scaling encoding mode.|

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Media Kit

harmony 鸿蒙AVImageGenerator

harmony 鸿蒙AVMetadataExtractor

harmony 鸿蒙AVPlayer

harmony 鸿蒙AVPlayerCallback

harmony 鸿蒙AVRecorder

harmony 鸿蒙AVScreenCapture

harmony 鸿蒙OH_AVRecorder_Config

harmony 鸿蒙OH_AVRecorder_EncoderInfo

harmony 鸿蒙OH_AVRecorder_Location

0  赞