AliyunVideoParam
@interface AliyunVideoParam : NSObject
视频参数设置类
-
帧率
默认25 建议20 - 60 不超过60
Declaration
Objective-C
@property (nonatomic) int fps;
-
关键帧间隔
gop > 1 默认值75: 25(默认fps) * 3: 3秒
Declaration
Objective-C
@property (nonatomic) int gop;
-
码率
单位bps 建议: 480P:1000000-2000000 540P:2000000-3000000 720P:2000000-4000000 1080:2000000-6000000 设置bitrate参数后,videoQuality设置无效
Declaration
Objective-C
@property (nonatomic) int bitrate;
-
视频质量
Declaration
Objective-C
@property (nonatomic) AliyunVideoQuality videoQuality;
-
裁剪或者填充模式
Declaration
Objective-C
@property (nonatomic) AliyunScaleMode scaleMode;
-
编码类型
Declaration
Objective-C
@property (nonatomic) AliyunVideoCodecType codecType;
-
音频声道数
Declaration
Objective-C
@property (nonatomic) AliyunAudioChannelType audioChannel;
-
音频采样率
Declaration
Objective-C
@property (nonatomic) AliyunAudioSampleRate audioSampleRate;
-
创建一个AliyunVideoParam对象,并设置为默认属性
Declaration
Objective-C
+ (instancetype)defaultVideoParam;
Return Value
AliyunVideoParam对象