Quality-Based Encoding Modes for Streaming

This topic explains how to best use quality based encoding for streaming outputs.

Introduction

When encoding video outputs for streaming, we do not recommend using quality setting alone (this uses CRF mode of encoding). If you prefer to use quality-targeted mode then we strongly suggest using VBV settings to constrain the variation in bitrate to comply with streaming format specifications.

VBV Settings

Other Recommended Settings to Consider

Example

Here is an example for quality-targeted encoding with VBV restrictions.

{
    "type":"segmented",
    "width":640,
    "height":360,
    "quality":3,
    "video_codec_profile":"main",
    "video_reference_frames": 4,
    "video_bframes": 3,
    "decoder_bitrate_cap": 1440,
    "decoder_buffer_size": 1920,
    "keyframe_rate": 0.5,
    "max_frame_rate": 30,
    "audio_quality":5,
    "segment_seconds":10
}

Notes