harmony 鸿蒙OH_AVRecorder_Profile
OH_AVRecorder_Profile
概述
定义音视频录制的详细参数。
通过参数设置可以选择只录制音频或只录制视频:
- 当 audioBitrate 或 audioChannels 为 0 时,不录制音频。
- 当 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 鸿蒙Interface (AVImageGenerator)
harmony 鸿蒙Interface (AVMetadataExtractor)
harmony 鸿蒙Interface (AVPlayer)
harmony 鸿蒙Interface (AVRecorder)
harmony 鸿蒙Interface (AVScreenCaptureRecorder)
harmony 鸿蒙Interface (AVTranscoder)
harmony 鸿蒙废弃的Interface (AudioPlayer, deprecated)
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦