LiveTranscoding
- Electron
更新时间不可用
旁路推流的转码属性。
export class LiveTranscoding {
width?: number;
height?: number;
videoBitrate?: number;
videoFramerate?: number;
lowLatency?: boolean;
videoGop?: number;
videoCodecProfile?: VideoCodecProfileType;
backgroundColor?: number;
videoCodecType?: VideoCodecTypeForStream;
userCount?: number;
transcodingUsers?: TranscodingUser[];
transcodingExtraInfo?: string;
metadata?: string;
watermark?: RtcImage[];
watermarkCount?: number;
backgroundImage?: RtcImage[];
backgroundImageCount?: number;
audioSampleRate?: AudioSampleRateType;
audioBitrate?: number;
audioChannels?: number;
audioCodecProfile?: AudioCodecProfileType;
advancedFeatures?: LiveStreamAdvancedFeature[];
advancedFeatureCount?: number;
}属性
| 参数名 | 描述 |
|---|---|
width | |
height | |
videoBitrate | 视频编码码率,单位为 Kbps。该参数无需设置,保留默认值 |
videoFramerate | |
lowLatency | |
videoGop | |
videoCodecProfile | |
videoCodecType | 用于旁路直播的输出视频的编解码类型。详见 VideoCodecTypeForStream。 |
transcodingUsers | 用于管理参与旁路直播的视频转码合图的用户。最多支持 17 人同时参与转码合图。详见 TranscodingUser。 |
transcodingExtraInfo | 预留参数:用户自定义的发送到旁路推流客户端的信息,用于填充 H264/H265 视频中 SEI 帧内容。长度限制:4096 字节。关于 SEI 的详细信息,详见 SEI 帧相关问题。 |
backgroundColor | |
userCount | |
metadata | |
watermark | 直播视频上的水印。图片格式需为 PNG。详见 RtcImage。
你可以添加一个水印,或使用数组的方式添加多个水印。该参数与 |
backgroundImage | 直播视频上的背景图。图片格式需为 PNG。详见 RtcImage。
你可以添加一张背景图,或使用数组的方式添加多张背景图。该参数与 |
audioSampleRate | 用于旁路推流的输出媒体流的音频采样率 (Hz),详见 AudioSampleRateType。 |
audioBitrate | |
audioChannels | |
audioCodecProfile | 用于旁路直播输出音频的编码规格。详见 AudioCodecProfileType。 |
watermarkCount | |
backgroundImageCount | |
advancedFeatures | 转码推流的高级功能。详见 LiveStreamAdvancedFeature。 |
advancedFeatureCount |