The adaptive transmission bit rate. Part 2

The adaptive transmission bit rate. Part 2

Adaptive Bitrate

Current usage
Post-production buildings, content delivery networks, and studios use adaptive bitrate technology to provide consumers with higher-quality video using less manpower and fewer resources.

Adaptive Bitrate

Creating multiple video outputs, especially for adaptive bit rate streaming, adds a lot of value to consumers. Whether the technology works as designed, it must be completely unknown to the end user or consumer. Therefore, even though adaptive bit rate technology has been actively used by media companies for many years, and it has essentially become common practice for today’s high-end providers, mainstream consumers are relatively ignorant. of your need.

Adaptive Bleed Bitrate Benefits
Adaptive streaming bitrate provides streaming media consumers with the best possible experience as the media server automatically adjusts to any changes in the network and the playback conditions of each user.

The media and entertainment industry also benefits from adaptive streaming bitrate. As the video space grows, content marketing networks and video providers can provide customers with a superior viewing experience. Adaptive bit rate technology requires additional coding, but it simplifies the overall workflow and produces better results.

Scalable CDN is used to deliver streaming media to an Internet audience. The CDN receives the stream from one source on its origin server and then copies it to many or all of its edge cache servers. The end user requests a transmission and is redirected to the “closest” end server. This can be verified using libdash and the Distributed DASH (D-DASH) dataset, which has multiple mirrors in Europe, Asia, and the US Using HTTP-based adaptive streaming allows Edge Server to run server software Simple HTTP that is cheap or free to license, reducing software licensing costs compared to expensive media server licenses (such as Adobe Flash Media Streaming Server).

History
Adaptive Bitrate was created by the DVD Forum at the WG1 Special Current Group in October 2002. The group was co-chaired by Toshiba and Phoenix Technologies, a group of experts in collaboration with Microsoft, Apple Computer, DTS Inc., Warner Brothers, 20th Century Fox, Digital Deluxe, Disney, Macromedia and Akamai … The technology was originally called DVDoverIP and was a composite effort from the DVD ENAV book. The concept came from storing DVD TS Sector MPEG-1 and MPEG-2 in small 2KB files to be served using an HTTP server for the player. MPEG-1 segments provided a lower bit rate stream, while MPEG-2 provided a higher bit rate. The original XML schema provided a simple playlist of bit rates, languages, and URL servers. The first working prototype was presented at the Phoenix Technologies DVD Forum at the Harman Kardon laboratory in Willingen, Germany.

Implementation
Traffic Networks introduced adaptive bit rate streaming and it is now being developed and used by Adobe Systems, Apple, Microsoft, and Octoshape. In September 2010, Traffic Networks received a patent for its adaptive bit rate transmission.

The adaptive transmission bit rate.

The adaptive transmission bit rate.

Adaptive bitrate

Adaptive streaming bitrate is a technique used in streaming multimedia over computer networks.

Adaptive bitrate

While much of video is in the past, current technologies are used by current protocols such as RTP with RTSP, today’s adaptive technologies are almost exclusively based on HTTP and designed to work efficiently over large, distributed HTTP networks. like the internet.

It works by detecting user bandwidth and CPU capacity in real time and adjusting the quality of the video stream accordingly. This requires the use of an encoder that can encode single source video at multiple bit rates. The player client switches between streaming different encodings based on available resources. “The result: very little buffering, fast startup times, and a good experience for both high- and low-level communications.”

More specifically, and as implementations are in use today, adaptive streaming bitrate is a method of streaming video over HTTP where the original content is encoded at multiple bit rates, then each of the different bit rates. Bit rate transmissions are segmented into small parts of several seconds. Today’s customer is aware of streams available at different bit rates and stream segments by explicit file. Starting, the client requests segments of the lowest bit rate stream. If the client finds that the download speed is higher than the bit rate of the downloaded segment, then it will ask for the next higher bit rate segments. Later, if the client finds that the download speed of the segment is lower than the bit rate of the segment and therefore the network bandwidth has deteriorated, then it will request a lower segment of the bit rate .

Bit Rate – Fixed Quality

Bit Rate – Fixed Quality

Bitrate

A VBR encoder repaired by quantizer or fix quality.

bit rate

This is usually a single pass encoding. The user determines a given subjective quality value and the encoder allocates bits as necessary to achieve a given quality level. This ensures that the product flow is of constant quality at all times. The quality score usually has a bit rate range associated with it. The downside to this encoding method is that the average bit rate (and thus the file size) will not be known in advance, and reaching a certain average bit rate requires trial and error. In general, this is more of a concern for video than audio, as file sizes are much larger and encoding can take much longer.

Bit rate row
This VBR encoding method allows the user to specify a bitrate range: the minimum and / or maximum bitrate allowed. Some encoders extend this method with an average bit rate. The minimum and maximum bit rate allowed sets the limits over which the bit rate can change. The downside to this method is that the average bit rate (and thus the file size) will not be known beforehand. Bitrate range is also used in some fixed quality encoding methods, but generally without permission to change the particular bitrate.

Average bit rate
The average bit rate (ABR) that encoding can be used to ensure that the output stream achieves a predictable average bit rate over the long term. This is typically accomplished by multi-pass encoding, where one or more initial passes are used to collect data about the stream, and the final pass uses that data to achieve uniform quality at a specified average bit rate.

Alternatively, periodic averaging can be used, either by performing ABR on smaller chunks of output or responding to fluctuations in ABR, increasing or decreasing overall quality. They can achieve ABR in a single pass, but they do not produce the same degree of uniformity as a multi-pass ABR. Some encoders use “ABR encoding” and “multi-pass encoding” to refer to single and multi-stream ABR encoding, respectively.

Some encoders also allow the user to specify the maximum allowable bit rate or the maximum quality cost. This is sometimes called a variable constrained bit rate (CVBR) and is generally applied to ABR algorithms.

The downside of a single pass ABR encoding (with or without CVBR) is the opposite of a fixed VBR quantizer: the size of the output is known in advance, but the resulting quality is unknown, although it is even better than CBR. Specifying a higher average or maximum can simply make the file larger without noticeable quality effect, and an increased maximum bitrate can introduce stuttering when the file is filtered. However, reducing these criteria to too low a level will ultimately lead to rather drastic quality losses. The effect on video is usually squared because the textures are no longer fully detailed in their rendering.

Multi-pass ABR encoding is more similar to fixed VBR quantizer because higher average will increase quality.

There is no one ideal “one size fits all” setting for ABR in video encoding. For low resolution video (320 or 640 lines) encoded with MPEG-1 or MPEG-2, the average bit rate can be as low as 1,000 kbps and still achieve acceptable results. For high definition video like 1080, this average may need to be 6,000 kbps or more. The main factor in determining the minimum video bitrate is the efficiency with which the video can be encoded. Using more efficient video encodings like MPEG-4 will help promote a lower bit rate, while a significant amount of movement or white noise will require a higher bit rate to encode without visible artifacts. In the end, the user may have to use trial and error to reach the minimum file size for a given video stream, encode at a given bit rate, and then review the results.

File size
VBR encoding that uses a file size setting is typically multi-pass encoding. This allows the user to define a specific size for the final file. In the first pass, the encoder analyzes the input file and automatically calculates the possible bit rate range and / or the average bit rate. In the last pass, the encoder distributes the available bits throughout the video to achieve uniform quality.

Variable bit rate

Variable bit rate

VBR

Variable Bit Rate (VBR) is a term used in telecommunications and computing that refers to the bit rate used in encoding audio or video.

VBR

Unlike constant bit rate (CBR), VBR files change the amount of output per time slice. VBR allows you to allocate a higher bit rate (and therefore requires more storage space) to more complex segments of media files, while less space is allocated to less complex segments. The average of these rates can be calculated to generate the average bit rate for the file.

Opus, Vorbis, MP3, WMA and AAC audio files can optionally be encoded in VBR. Variable bit rate encoding is also commonly used in MPEG-2 video, MPEG-4 Part 2 video (Xvid, DivX, etc.), MPEG-4 Part 10 / H.264 video, Theora, Dirac, and other video formats. video compression. Additionally, floating rate encoding is inherent in lossless compression schemes like Apple’s FLAC and Lossless.

Advantages and disadvantages of VBR
The advantages of VBR are that it produces a better quality-to-space ratio than a CBR file of the same data. The available bits are used more flexibly to encode audio or video data with greater precision, with fewer bits used in less demanding passes and more bits used in difficult-to-encode passes.

The downsides are that encoding can take longer as the process is more complicated and some hardware may not be compatible with VBR files. VBR can also pose problems during transmission when the instantaneous bit rate exceeds the data rate of the communication path. These problems can be avoided by limiting the instantaneous bit rate during encoding or (at the expense of higher latency) by increasing the playback buffer.

Additionally, encryption of VBR encoded voice (or other signals, including video) provides only limited privacy, as bit rate patterns can show which language is spoken.

In the past, many hardware and software players could not correctly decode variable bit rate files, in part because the various VBR encoders used were not well developed. This led to the widespread use of CBR over VBR for the sake of compatibility. As of December 2006, devices that only support CBR encoded files are mostly obsolete as the vast majority of portable music devices and software today support encoded VBR files.

VBR support for AAC and MP3 files is found in most modern digital audio players, including those released by Apple, Microsoft, Creative Technology, and SanDisk. Early VBR algorithms sometimes introduced audible artifacts by encoding monotony or minimal tones (such as audiobooks and acoustic music). These displays often mimic the “digital chirp” during the quiet parts of a song, or when only speaking. As VBR improved the encoding algorithms, these problems were addressed in later generations of the VBR standard.

VBR encoding methods
Note that choosing the Variable Bit Rate (VBR) method only affects the encoding process. Decryption of the VBR stream is performed identically in all cases, regardless of how the encoder decides to allocate the bits.

Multi-pass encoding and single-pass encoding
VBR is created using so-called single-pass encoding or multi-pass encoding. Single pass encoding analyzes and encodes data on the fly and this is also used in constant bit rate encoding. Single pass encoding is used when encoding speed is more important, for example for real-time encoding. Single-pass VBR encoding generally controls a fixed quality setting or bitrate range (minimum and maximum allowable bitrate), or an average bitrate settling. Multi-pass encoding is used when encoding quality is most important. Multi-pass encoding cannot be used when real-time encoding, live coverage, or live streaming … Encoding a multi-pass takes much more time than encoding a single pass because each pass means one pass through the input data (usually the entire input file). Multi-pass encoding is only used for VBR encoding because CBR encoding does not offer the flexibility to change the bit rate. The most common multi-pass encoding is two-pass encoding. The first step of two-step coding analyzes the input data and stores the result.

Constant bit rate (CBR) vs variable bit rate (VBR), which one should you choose?

Constant bit rate (CBR) vs variable bit rate (VBR), which one should you choose?

CBR vs VBR

How do you save memory when encoding in VBR?

CBR & VBR

What type of encoding to choose: variable or constant?
If you want to rip music from CDs or other media where it is stored uncompressed in lossy formats like MP3, WMA, AAC, and others, you have to choose what bit rate you will do it with. Constant (CBR) or variable (VBR).

Constant Bit Rate (CBR) encoding method

CBR (Constant Bit Rate) – When encoding in CBR throughout the music file, the bit rate will remain unchanged and equal to the value you selected.
The most common values ​​are: 128, 192, 256, 320 kbps.

The advantage of CBR encoding is that the file will be processed faster, both when encoding and decoding. Also, absolutely any program or hardware that is capable of playing music from MP3, WMA, AAC formats can do it if it is encoded in CBR, which cannot be said for the variable bit rate. Older hardware or software is not always compatible with CBR music playback.

However, it should be noted that CBR encoded music eventually takes up more memory than the same VBR encoded music.

Very often, CBR encoding is used for those cases where it will be transmitted over the network or when it is known in advance that it will be played on older equipment.

A constant bit rate is important for the music that will be streamed over the network, as the data flow will be stable and if it is within the bandwidth of the network channel, the playback will be smooth, without jerks or interruptions. . But if you stream music compressed with a variable bit rate, difficulties can arise when a part of a song that is encoded with the maximum bit rate does not pass the channel bandwidth, causing gags during playback.
Back to content

Variable Bit Rate (VBR) encoding
VBR (Variable Bit Rate) – When encoded in VBR, it is not constant but constantly changes as it is played.

This encoding method allows you to increase the bit rate in difficult musical sections and decrease it in simpler musical sections, allowing the quality to remain roughly the same level, but at the same time saving memory space.

VBR is used successfully and is compatible with most formats and software.

VBR Supported Formats: MP3, WMA, OGG, AAC and others.

The main advantage of variable over constant bitrate is to save memory space for storing music.

When encoding in VBR, more complex and resource-intensive algorithms are used, so playback requires more computing power from the device. For this reason, some older computers may not play music from VBR.
Back to content

How do you save memory when encoding in VBR?
Compression algorithms analyze not only the sound itself, but also its complexity, breaking it down into elementary components. Therefore, complex areas of music, where many instruments play at the same time, or the sound of an instrument often changes its pitch and volume, are encoded with the highest quality. But if simple seconds appear in the music, or if there is silence at all, these pieces are encoded at a much lower bitrate.

Due to this approach, memory savings are achieved.

But you should always remember that the main disadvantage of VBR is the inability to play music on old hardware or old software.
Back to content

What type of encoding to choose: variable or constant?
If you are absolutely sure that your encoded music will play on modern hardware, I recommend using a variable bit rate.

If your music will be played on a wide range of computers, it is best to play it safely and encode it at a constant bit rate.

All phones, players and computers that have been released in the last 10 years should support VBR playback without any problem, so in the vast majority of cases I recommend using VBR.

In this way, the music will take up less memory, but at the same time it will retain high quality.

It is especially important to use VBR if the music will be stored on portable devices such as mp3 players or phones. Although a large amount of memory has been incorporated lately, it is desirable to use it sparingly.

Difference between vbr and cbr

Difference between vbr and cbr

CBR and VBR

Bitrate (English): means the value (number) of bits that are used to record or transmit multimedia material that lasts one second. When multimedia content (audio and video) is fixed in MP3 format, it is compressed block by block using certain procedures (algorithms). And these algorithms are divided into types based on the bit rate (its value). Each of these blocks (frames) is assigned from thirty-two to three hundred and twenty bits.

VBR vs MBR vs CBR

Coding
The VBR, CBR and ABR algorithms used to encode in MP3 format do not provide complete quality preservation, it is lost. However, this can only be felt when viewing (playing) only on high-quality equipment.

For the non-professional look, material recorded with VBR, CBR, and ABR mechanisms will be of fairly high quality.

Let’s analyze the differences in the VBR, CBR and ABR algorithms to know which of them is correct to use for recording and later storage or transfer of files. Which is better for quality or for other tasks.

Constant bit rate
As the name implies (constant – constant, English), in this version of the algorithm, a constant number of bits per second of material is assigned. All blocks are equal to each other.

By using CBR it is possible to know in advance the size of the source file or the width of the sequence. This is important for transmitting information over channels with limited width.
Constant Bitrate Algorithm

Applying such encoding is not ideal:

When recording empty segments, the consumption of the selected bits remains the same;
when recording complex fragments, for which, in principle, it would be worth allocating more space, the bit rate, again, remains set.
The quality disadvantages of recording “difficult” sections are solved by increasing the bit rate, for example to a maximum of 320 kbps, but this increases the width of the transmission stream or the size of the file.

Variable bit rate
It is easy to guess that this type of method (VBR) is a variable (variable).

For such encoding, it is characteristic that the bit rate in this case changes during the encoding process by the codec program. And the bit rate in this case depends on the saturation of the audio or video material.

That is, when choosing VBR encoding, the program will select a lower bit rate to record an empty image and a higher bit rate to record saturated images or images that change quickly.
Variable bit rate algorithm

The negative aspect of this algorithm is the difficulty of anticipating the next changes. Increasing the recording bit rate will occur with a delay.

Furthermore, snippets that sound quiet are perceived during VBR encoding as unimportant snippets, and are assigned a minimum bit rate on this basis.

Therefore, CBR with a maximum of 320 kbps will provide better quality.

It is true that now VBR 2 Pass encoding has appeared.

Its essence is that the program first analyzes the multimedia stream (for the first time) and then makes a record, compressing it based on the data obtained during the primary scan. This results in the best quality and, in this sense, this encoding is better.

Average bit rate

Average is translated from English as average. This is a type of ABR, which is somehow a cross between VBR and CBR.

By choosing ABR mode, the user sets part of its value in kilobits per second. The codec can change it one way or the other, sticking to the set average value.

Average Bitrate Algorithm

The ABR method compares favorably with others in the allocated number of bits per second. You can choose absolutely any numeric parameter from 8 to 320. Whereas CBR encoding can only use sixteen times the value.

It follows from the above that if the size of the resulting file is important to the result, then for the highest quality it is better to take a close look at the ABR or CBR encoding.