AlivcLivePusher_Interactive v6.17.0
Aliyun Live Pusher Interactive SDK API Reference Manual for iOS Platforms
Loading...
Searching...
No Matches
AlivcLiveTranscodingConfig Class Reference

Mixed-stream transcoding configuration. More...

#include "AlivcLivePushDef.h"

Inheritance diagram for AlivcLiveTranscodingConfig:

Properties

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.
 

Detailed Description

Mixed-stream transcoding configuration.

Property Documentation

◆ audioBitrate

- (int) audioBitrate
readwritenonatomicassign

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

- (int) audioChannels
readwritenonatomicassign

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

- (int) audioSampleRate
readwritenonatomicassign

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

- (int) backgroundColor
readwritenonatomicassign

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

- (NSArray<AlivcLiveMixStream *>*) mixStreams
readwritenonatomicstrong

◆ videoBitrate

- (int) videoBitrate
readwritenonatomicassign

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

- (int) videoFramerate
readwritenonatomicassign

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

- (int) videoGOP
readwritenonatomicassign

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

- (int) videoHeigth
readwritenonatomicassign

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

- (int) videoWidth
readwritenonatomicassign

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: