AliyunVideoParam
@interface AliyunVideoParam : NSObject
* A class that defines video parameter settings.
-
* The frame rate.
Default is 25. Recommended values: [20, 60]
Declaration
Objective-C
@property (nonatomic) int fps;
-
* The GOP size.
gop > 1 Default is 75: 25(The default fps) * 3: 3 second
Declaration
Objective-C
@property (nonatomic) int gop;
-
* The bitrate.
Unit: bit/s Recommended values: 480P: 1,000,000-2,000,000 540P: 2,000,000-3,000,000 720P: 2,000,000-4,000,000 1080: 2,000,000-6,000,000 If specified, the bitrate parameter overrides the videoQuality parameter.
Declaration
Objective-C
@property (nonatomic) int bitrate;
-
* The video quality.
Declaration
Objective-C
@property (nonatomic) AliyunVideoQuality videoQuality;
-
* The crop mode.
Declaration
Objective-C
@property (nonatomic) AliyunScaleMode scaleMode;
-
* The encoder type.
Declaration
Objective-C
@property (nonatomic) AliyunVideoCodecType codecType;
-
* The Channel count of audio
Declaration
Objective-C
@property (nonatomic) AliyunAudioChannelType audioChannel;
-
* The SampleRate of audio
Declaration
Objective-C
@property (nonatomic) AliyunAudioSampleRate audioSampleRate;
-
* Creates an AliyunVideoParam object with default settings.
Declaration
Objective-C
+ (instancetype)defaultVideoParam;
Return Value
An AliyunVideoParam object.