CBR vs. VBR: The Difference Between Constant Bitrate and Variable Bitrate

cbr vs vbr

There is a lot going on behind the scenes of live streaming. Many types of technology come together to deliver high-quality videos that capture events as they unfold in real-time. Encoders play a very important role in this process.

Broadcasters have a lot of choices when it comes to configuring their encoder settings. The settings they choose will determine the audio and video quality of their streams. There are two main types of encoding that broadcasters can choose from constant bitrate (CBR) and variable bitrate (VBR) encoding.  It is important to be able to compare VBR vs CBR.

In this post, we’re going to provide an in-depth comparison of CBR vs. VBR. We will also introduce a third option, which is constrained VBR. After we provide some background on each of these technologies, we will identify which is best in different streaming scenarios. To wrap things up, we will review some other related encoder settings. You will know what is CBR and VBR are.

Table of Contents

  • What is Bitrate?
  • What is Constant Bitrate (CBR) Encoding?
  • What is Variable Bitrate (VBR) Encoding?
  • CBR vs. VBR: A Quick Comparison
  • When to Use CBR vs. VBR
    • Bitrate for Live Stream Encoding
    • Bitrate for VOD Transcoding
  • Recommended Encoder Settings for Live Streaming
  • Final Thoughts

What is Bitrate?

video bitrate
Bitrate is an important aspect of online video streaming.

Bitrate measures the amount of data that is transferred over a period of time. In online video streaming, video bitrate is measured in kilobits per second, or kbps. Bitrate affects the quality of a video stream. Streaming with a higher bitrate helps you produce higher-quality streams.

When it comes to online video streaming, broadcasters often make their content available in multiple different bitrates each. This is referred to as . This allows viewers to access the bitrate that is appropriate for their internet speed which allows them to access the highest quality content with the least amount of lagging, skipping, and buffering.

Adaptive bitrate video players have been game-changing since they automatically deliver the rendition of the video with the appropriate bitrate in response to a real-time analysis of each viewer’s internet speed.

Bitrate is also something that is important in the the encoding process or transcoding stage of the streaming process since this too deals with the transfer of data.  As we mentioned, constant bitrate streaming (CBR) and variable bitrate streaming (VBR) are the two most popular types of encoding, which is why you often see VBR vs CBR comparisons.

What is Constant Bitrate (CBR)?

Constant bitrate, which is commonly abbreviated as “CBR,” refers to transmitting data at a constant rate. For encoding, this refers to an encoder outputting data at a constant rate. It is not responsive to the size or complexity of the files that it processes. The variables don’t matter with a constant bit rate; the output remains constant.

CBR is preferred in many streaming situations because it has been the standard in online video streaming for some time. Since it is so popular in the live streaming industry, constant bitrate is the most compatible option.

Since CBR uses a constant transmission, the bitrate is set at a single rate and measured as such. It’s recommended that you set your bitrate relatively high so that your encoder can handle more complex segments of data as it processes your video. CBR video encoding works best when you set it up right.

The consistency of CBR makes it well-suited for situations where video content must be encoded in real-time. CBR is not suited for storing data. For real-time live streaming, CBR is a great solution.

What is Variable Bitrate (VBR)?

Variable bitrate encoding, which is commonly abbreviated as “VBR,” refers to data being transmitted at a variable rate. With VBR encoding, segments of data are packaged by their complexity so that the transmission is optimized. Encoding in VBR makes it possible to process at a higher bitrate and transmit larger files.

In terms of encoding, data is output at a set rate per time segment, and variable bitrate is measured by taking the average bitrate of complex segments over the entire file.

The fluctuating aspect of this method of encoding makes VBR best suited for on-demand video transcoding. This is because it can take longer to process the data. VBR streaming works well with on-demand video, but not as well with live streams.

There are a few types of VBR that are slightly different from one another called average bitrate, quality variable bitrate, unconstrained variable bitrate, and constrained variable bitrate. Constrained variable bitrate is the most notable of these four.

It is also important to point out that VBR is not as widely supported as CBR.

Constrained VBR

Constrained variable bitrate, or constrained VBR, is another bitrate control technique or setting that is less commonly discussed but growing in popularity.

Constrained VBR is a type of VBR encoding that requires setting a maximum bitrate and a maximum buffer window. Constrained VBR uses two encoding passes to process data. With VBR 1 pass vs 2 pass, you end up with a higher-quality video.

CBR vs. VBR: A Quick Comparison

Here is a quick overview of constant bit rate vs variable bit rate, so you can see the top features and differences between these two encoding methods.

 

CBRVBR
  • Ideal for time-sensitive streaming
  • Produces consistent results (i.e. if you set it to 1500 kbps, your bitrate will remain at 1500 kbps)
  • Historically popular 
  • Widely compatible
  • Well-suited for multimedia encoding
  • Ideal setting for live stream encoding
  • Capable of producing higher-quality streams
  • Ideal for transcoding without time constraints
  • Does not negatively impact video quality
  • Not widely compatible
  • Best-suited for VOD transcoding

With constant bit rate vs variable bit rate video, CBR is best for live streaming encoding, and VBR is best for on-demand videos.

Encoding vs. Transcoding

Encoding vs. Transcoding
Encoding and transcoding are very similar but not exactly the same.

Before we dive into the use cases of VBR and CBR, it is important to acknowledge the similarities and differences between encoding and transcoding.

Encoding refers to converting a still video file or audio file from one format to another. In the context of live streaming, this refers to converting the RAW video files that are captured by the camera into a digital format that is able to be streamed over the internet. This is important because RAW video files are too bulky to be streamed.

Encoding is made possible with dedicated encoding hardware or software.

Transcoding refers to compressing video files to create copies of media files in different sizes. These copies by file size are called “renditions.” Transcoding is generally used for on-demand video streaming. Many online video platforms, including Dacast, are equipped with cloud transcoding tools that transcode video files as they are uploaded to the platform.

When to Use CBR vs. VBR

CBR encoding and VBR encoding are both important in video and audio encoding. Neither is better than the other since they both serve unique purposes due to their individual strengths and weaknesses.

Let’s break down the use cases for these two encoding processes.

Live Stream Encoding

CBR is the best setting for live stream encoding. The consistency of CBR makes it more reliable for time-sensitive data transport. This is ideal for live streaming since most live videos are broadcasted at a single bitrate.

Since constant bitrate processes data at a consistent rate, there is no concern about the bitrate exceeding internet speeds. However, the reliability of output data from this encoding method leads to sacrificing quality in some situations.

It is possible to use VBR for live stream encoding, however, it is rarely recommended unless it is using a one-pass setup.

VOD Transcoding

Constrained VBR is the optimal setting for on-demand video transcoding because it is capable of handling larger files while still maintaining some sense of consistency with audio formats. Overall, VBR produces better sound quality than streams, and on-demand video transcoding provides the flexibility to use VBR, so it’s a no-brainer.

Variable video bitrate produces higher-quality streams. Since there is less time sensitivity in transcoding on-demand video files, you don’t have to worry about the bitrate exceeding internet speed which gives you the flexibility to lean into the benefits of VBR.

Audio-Only Streaming

Just like video content, audio-only streaming should use CBR for live audio broadcasts and VBR for on-demand audio streaming.

However, some audio-specific encoders will not give you the option to choose. In that case, you must go with whatever option is available to you. Audio files are much less bulky than video files, so either option should be fine. If possible though, go with CBR audio for live broadcasts. VBR sound quality is great for on-demand audio streaming.

Recommended Encoder Settings for Live Streaming with Dacast

live streaming software
There are several different encoder settings recommended for streaming on Dacast. 

Dacast recommends using CBR for live broadcasting on our streaming platform. That’s because the constant bitrate is more reliable for encoding video content in real-time.

There are some other encoder settings that we require for our live streaming software. Straying from this configuration may cause issues in your stream.

Here are our required settings:

VIDEO CODECH.264 (x264 may work)
FRAME RATE25 or 30
KEYFRAME INTERVAL2 secs (or 2x frame rate)
SCANNINGProgressive
RATE CONTROLConstant (CBR)
AUDIO CODECAAC-LC
AUDIO BITRATE128 kbps
AUDIO CHANNELS2 (Stereo)
AUDIO SAMPLE RATE48 kHz (48,000 Hz)

Please note that these settings are specifically for live streaming. Please check out our transcoding walkthrough for more relevant information on configuring your transcoding settings on Dacast.

Resolution & Bitrate Settings

In addition to the live streaming encoder settings we mentioned above, broadcasters must choose resolution and bitrate settings to achieve their desired stream quality.

There are different bitrate and resolution combinations required to create streams in ultra-low definition, low definition, standard definition, high definition, and full high definition.

Here is a breakdown of the resolution and bitrate settings for achieving each video quality:

 ULDLDSDHDFHD
NameUltra-Low DefinitionLow DefinitionStandard DefinitionHigh DefinitionFull High Definition
Video Bitrate (kbps)350350 – 800800 – 12001200 – 19001900 – 4500
Resolution Width (px)42664085412801920
Resolution Height (px)2403604807201080
H.264 ProfileMainMainHighHighHigh

Final Thoughts

CBR and VBR play different roles in online video streaming. It is important to use the appropriate option for your specific streaming needs. In the debate between CBR vs VBR for your video, it depends on your type of content.

The bottom line is that CBR is more consistent and reliable for time-sensitive encoding, and VBR produces higher-quality results. CBR is the best option for live streaming, whereas constrained VBR is the best option for on-demand video upload.

Now that you have a better idea of how CBR and other VBR files compare, it is time to put this knowledge to work. If you are new to live streaming, we recommend taking advantage of Dacast’s 14-day free trial. You can use OBS Studio, which is a free, open-source encoding software, to familiarize yourself with the technological functions we’ve described in this post.

All you have to do to access your free trial and start streaming is create a Dacast account, and you’ll be up and running in no time. No credit card or binding contracts are required.

GET STARTED FOR FREE

Join our LinkedIn group for exclusive offers, regular live streaming tips, and access to a community of live media professionals.

Emily Krings

Emily is a strategic content writer and story teller. She specializes in helping businesses create blog content that connects with their audience.