Mixed-stream transcoding configuration.
More...
#include "AlivcLivePushDef.h"
|
int | audioBitrate |
| Specify the target audio bitrate (kbps) for cloud transcoding Value range: [8, 500], default: 64, unit: kbps.
|
|
int | audioChannels |
| Specify the number of audio channels for cloud transcoding Default: 1, for mono.
|
|
int | audioSampleRate |
| Specify the target audio sample rate for cloud transcoding Audio sample rate, default value: 48000, supported settings: 8000, 16000, 32000, 44100, 48000, unit: Hz.
|
|
int | backgroundColor |
| The background color of the mixed stream.
|
|
AlivcLiveTranscodingCropMode | cropMode |
| The video cropping mode of the mixed stream.
|
|
NSArray< AlivcLiveMixStream * > * | mixStreams |
|
int | videoBitrate |
| Specify the target video bitrate (kbps) for cloud transcoding(kbps) Value range:[1, 10000],default:0 If the videoBitrate value is not set, the SDK will internally use the AlivcLivePushConfig->targetVideoBitrate value of the current push stream.
|
|
int | videoFramerate |
| Specify Specify the target video frame rate (FPS) for cloud transcoding Value range:[1, 60],default:0 If the value of videoFramerate is not set, the SDK will internally use the AlivcLivePushConfig->fps value of the current push stream.
|
|
int | videoGOP |
| Specify Specify the target video frame rate (FPS) for cloud transcoding Value range:[1, 60],default:0 If the value of videoFramerate is not set, the SDK will internally use the AlivcLivePushConfig->fps value of the current push stream.
|
|
int | videoHeigth |
| Specifies the target resolution (height) for cloud transcoding Value range: [0, 1920],default:0 If the value of videoHeigth is not set, the SDK will internally use the video height of the current push resolution.
|
|
int | videoWidth |
| Specify the target resolution (width) of cloud mixed-stream transcoding Value range: [0, 1920],default:0 If the value of videoWidth is not set, the SDK will internally use the video width of the current push resolution.
|
|
Mixed-stream transcoding configuration.
◆ audioBitrate
Specify the target audio bitrate (kbps) for cloud transcoding Value range: [8, 500], default: 64, unit: kbps.
If two channels are set up, it is recommended that the audioBitrate is set to 128, otherwise the sound quality may be damaged
◆ audioChannels
Specify the number of audio channels for cloud transcoding Default: 1, for mono.
There are only two numbers that can be set: 1-mono, 2-stereo. If two channels are set up, it is recommended that the audioBitrate is set to 128, otherwise the sound quality may be damaged
◆ audioSampleRate
Specify the target audio sample rate for cloud transcoding Audio sample rate, default value: 48000, supported settings: 8000, 16000, 32000, 44100, 48000, unit: Hz.
◆ backgroundColor
The background color of the mixed stream.
The default value is black. The format is hexadecimal. default:0x000000
◆ cropMode
- (AlivcLiveTranscodingCropMode) cropMode |
|
readwritenonatomicassign |
The video cropping mode of the mixed stream.
default:AlivcLiveTranscodingCropModeCrop
◆ mixStreams
◆ videoBitrate
Specify the target video bitrate (kbps) for cloud transcoding(kbps) Value range:[1, 10000],default:0 If the videoBitrate value is not set, the SDK will internally use the AlivcLivePushConfig->targetVideoBitrate value of the current push stream.
◆ videoFramerate
Specify Specify the target video frame rate (FPS) for cloud transcoding Value range:[1, 60],default:0 If the value of videoFramerate is not set, the SDK will internally use the AlivcLivePushConfig->fps value of the current push stream.
◆ videoGOP
Specify Specify the target video frame rate (FPS) for cloud transcoding Value range:[1, 60],default:0 If the value of videoFramerate is not set, the SDK will internally use the AlivcLivePushConfig->fps value of the current push stream.
If you want the target video key frame interval to be 2s and the videoFramerate to be 20, then the value that videoGOP needs to pass in is 2*20=40
◆ videoHeigth
Specifies the target resolution (height) for cloud transcoding Value range: [0, 1920],default:0 If the value of videoHeigth is not set, the SDK will internally use the video height of the current push resolution.
◆ videoWidth
Specify the target resolution (width) of cloud mixed-stream transcoding Value range: [0, 1920],default:0 If the value of videoWidth is not set, the SDK will internally use the video width of the current push resolution.
The documentation for this class was generated from the following file: