harmony 鸿蒙OH_AVRecorder_Profile

2025-06-16 浏览 (1)

OH_AVRecorder_Profile

概述

定义音视频录制的详细参数。

通过参数设置可以选择只录制音频或只录制视频:

  1. 当 audioBitrate 或 audioChannels 为 0 时,不录制音频。
  2. 当 videoFrameWidth 或 videoFrameHeight 为 0 时,不录制视频。

各参数的范围请参见AVRecorderProfile

起始版本: 18

相关模块: AVRecorder

所在头文件: avrecorder_base.h

汇总

成员变量

名称描述
int32_t audioBitrate音频比特率。
int32_t audioChannels音频通道数。
OH_AVRecorder_CodecMimeType audioCodec音频编码格式。
int32_t audioSampleRate音频采样率。
OH_AVRecorder_ContainerFormatType fileFormat输出文件格式。
int32_t videoBitrate视频比特率。
OH_AVRecorder_CodecMimeType videoCodec视频编码格式。
int32_t videoFrameWidth视频宽度。
int32_t videoFrameHeight视频高度。
int32_t videoFrameRate视频帧率。
bool isHdr是否录制HDR视频。
bool enableTemporalScale是否启用时间缩放编码模式。

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Media Kit(媒体服务)

harmony 鸿蒙Interface (AVImageGenerator)

harmony 鸿蒙Interface (AVMetadataExtractor)

harmony 鸿蒙Interface (AVPlayer)

harmony 鸿蒙Interface (AVRecorder)

harmony 鸿蒙Interface (AVScreenCaptureRecorder)

harmony 鸿蒙Interface (AVTranscoder)

harmony 鸿蒙废弃的Interface (AudioPlayer, deprecated)

harmony 鸿蒙废弃的Interface (AudioRecorder, deprecated)

harmony 鸿蒙Interface (MediaSource)

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