In streaming media services, video transcoding is a common practice to alleviate bandwidth demands. Unfortunately, traditional methods employing a uniform rate factor (RF) across all videos often result in significant inefficiencies. Content-adaptive encoding (CAE) techniques address this by dynamically adjusting encoding parameters based on video content characteristics. However, existing CAE methods are often tightly coupled with specific encoding strategies, leading to inflexibility. In this paper, we propose a model that predicts both RF-quality and RF-bitrate curves, which can be utilized to derive a comprehensive bitrate-quality curve. This approach facilitates flexible adjustments to the encoding strategy without necessitating model retraining. The model leverages codec features, content features, and anchor features to predict the bitrate-quality curve accurately. Additionally, we introduce an anchor suspension method to enhance prediction accuracy. Experiments confirm that the actual quality metric (VMAF) of the compressed video stays within 1 of the target, achieving an accuracy of 99.14%. By incorporating our quality improvement strategy with the rate-quality curve prediction model, we conducted online A/B tests, obtaining both +0.107% improvements in video views and video completions and +0.064% app duration time. Our model has been deployed on the Xiaohongshu App.
翻译:在流媒体服务中,视频转码是缓解带宽需求的常见做法。然而,传统方法对所有视频采用统一码率因子(RF)往往导致显著的效率低下。内容自适应编码(CAE)技术通过基于视频内容特征动态调整编码参数来解决这一问题。但现有CAE方法通常与特定编码策略紧密耦合,导致灵活性不足。本文提出一种同时预测RF-质量与RF-码率曲线的模型,该模型可用于推导完整的码率-质量曲线。此方法便于灵活调整编码策略,且无需重新训练模型。该模型利用编解码器特征、内容特征和锚点特征来准确预测码率-质量曲线。此外,我们引入锚点悬挂方法以提升预测精度。实验证实压缩视频的实际质量指标(VMAF)与目标值偏差保持在1以内,准确率达到99.14%。通过将质量提升策略与率-质量曲线预测模型结合,我们进行了在线A/B测试,在视频播放量与视频完播率上均获得+0.107%的提升,应用使用时长增加+0.064%。该模型已部署于小红书应用。