History and characteristics of the MPEG standards. Part 5


Free Download Mp4Gain
picture

History and characteristics of the MPEG standards. Part 5

mpeg

ABR: mechanism

Mpeg

Suppose user specified ABR mode and a certain bitrate B (user can specify absolutely any bitrate from 32 to 320, even not from standard bitrate grid, for example you can specify 129 as the rate Average Bit Rate). The encoder accepts a piece of audio (frame) to be encoded. In the same way, as in CBR, it determines its complexity (we will talk about this later). If the passage is complex, then the encoder also takes more bits for it, but not from the repository (as in CBR), but simply increasing the bitrate by the required number of steps (the selected bitrate must be included in the standard grid), thus creating a “virtual repository” (you can increase the bitrate here, this is not CBR). What does “virtual reservoir” mean? It’s simple: we assume that the user-specified bit rate B is not sufficient for the encoder, standard N bit rate, where: N> = K (we call this choice of bit rate “virtual deposit”). Then there is a K-bit encoding of the taken piece of audio. However, N> = K, that is, we use fewer bits than there are in the taken frame, so won’t we throw away these extra bits? It is these extra bits that we write to the actual deposit. Since ABR has the ability to use a “virtual reservoir”, it makes no sense to build a standard reservoir, so when the next piece of audio arrives, the bits from the reservoir will be used to encode it first, and then the encoder will decide what rate bit is needed next. In other words, if in CBR the encoder always tries to accumulate as many bits in the reservoir as possible, then in ABR the encoder, on the contrary, tries to get rid of the bits in the reservoir,

Simple passages are encoded with fewer bits, they take about 95% of the specified bit rate B, but now the rest is not deposited into the repository, the encoder just takes a frame with a lower bit rate. The resulting difference (the remaining bits) is written to the standard repository (don’t discard the remaining bits …). Example. Let’s say a “simple” passage has arrived. Then the encoder takes all the bits (if any) in the repository (present), then looks for the standard bitrate closest to which the total number of bits obtained for this frame (all the bits in the repository + rate of bits taken) is 95% of the user-specified bitrate B performs the encoding and the extra bits (if any) are stored back in the repository.

APR: Summary

So using a tank in ABR is different from CBR. In CBR, the bit rate cannot be changed, and the repository is specially saved by storing there the bits that were left (were saved) from the frame encoding at an initially fixed bit rate determined during a single pass; if bits are required for encoding and the repository is empty, then it is empty, nothing can be done about it, and encoding is simply done at the specified bit rate to the detriment of quality. In ABR, the bit rate is variable and the standard deposit is not really necessary, however, since the increase (decrease) of the bit rate necessarily occurs up to a certain table values ​​that can turn out to be higher than the number. of bits required by the encoder, then the extra bits, of course, are not discarded, but are stored in the repository. In other words, in CBR the accumulation of the standard pool is the main task, while in ABR there is an unlimited “virtual pool” and the standard is used only to store additional bits formed as a result of the difference between the table values. Bitrate and actually required bitrate.

Vbr

VBR: variable bit rate. The user indicates the desired quality. Lame, based on his psychoacoustic model, assigns to each frame exactly the number of bits necessary to achieve a certain quality. In the output stream, the frames have respectively different bit rates (which always fit into the standard bit rate table). Warehouse usage in VBR is absolutely identical to ABR, only unused frame queues go there.

Methods for estimating signal complexity

So the main difference between CBR, ABR and VBR, as you probably already understood from the above, is the use of different methods to calculate the number of bits needed to encode each frame.


Free Download Mp4Gain
picture


Mp4Gain Main Window
picture


Mp4Gain Features
picture


Free Download Mp4Gain
picture

History and characteristics of the MPEG standards. Part 4

History and characteristics of the MPEG standards. Part 4

MPEG Standards

What are the differences between CBR, VBR and ABR modes? (applied to the Lame encoder)

mpeg

Before starting the conversation, let’s clarify two details:

1. MP3 encoding occurs block by block: the encoded file is divided into frames (frames) with the same interval, each frame is encoded and written to the output stream; therefore, the output stream also has a frame structure.

2. Frames cannot be encoded at any bit rate, but only at one of the standard MPEG1 Layer III bit rates listed in the table: 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320. The standard does not provide encoding at any intermediate bit rate (“free format”).

Introduction

People using VBR in Lame generally argue this with the phrase, “I want to get constant quality, not constant bitrate. In fact, in music there are simple passages, for which 128 Kbps is enough (for example, pauses between songs), and there are also complex passages, in which a person with good hearing, a good audio card and other audio equipment. audio will hear compression. defects even at 320 Kbps / sec. In fact, such an argument is not entirely valid.

CBR

Even in CBR mode, the mp3 encoder can reallocate bits over time, emphasizing more or fewer bits during complex or simple passages, thus improving the overall sound quality. This bit reassignment is done through the so-called bit deposit: during the encoding of simple passages, the encoder spends not the entire user-specified bit rate on them, but only about 90%, about 10% is Store in bin to code difficult spots (bin is empty initially). When encoding complex passages, the encoder will use all 100% of the specified bit rate and add extra bits from the bucket (if any, that is, if the bucket is not empty). Unfortunately, according to the standard, the size of the tank is limited. This means that if a single signal lasts long enough, the tank builds its volume up to certain maximum allowed limits, and then the encoding continues using all 100% bit rate. And the opposite situation: if a complex signal lasts long enough, all the saved bits are taken from the repository (gradually) and then encoding is done using now all 100% of the bit rate.

ABR: Explanation

One could say that the reservoir does a good job with its main function – accumulating “extra” bits during simple passages and issuing them as additional bits when encoding complex passages, if not for one “but”: it has a finite and, moreover, Very limited in size, which means that it can only be stored up to certain limits and consequently can also be removed until the tank is empty. It is to eliminate this major drawback of the tank that the ABR was developed.

The main difference between ABR and CBR is that in CBR all frames must be the same size (that is, the bit rate for all frames must be the same), but in ABR this limitation is removed, respectively, there is an opportunity to use an almost infinite tank instead of the standard, very limited in size. “virtual” reservoir. Does it look like this.

History and characteristics of the MPEG standards. Part 3

History and characteristics of the MPEG standards. Part 3

MPEG

3) The MPEG-4 standard is a special article. MPEG-4 is not just an algorithm for compressing, storing and transmitting video or audio information. MPEG-4 is a new way of presenting information, it is an object-oriented representation of multimedia data. The standard operates with objects, organizes hierarchies, classes, etc. from them, he builds scenes and controls their transfer.

MPEG

 

The objects can be ordinary audio or video streams, as well as synthesized audio and graphics data (voice, text, effects, sounds …). These scenes are described in a special language. We will not dwell on this standard in detail; this is a topic for a separate extensive discussion. It can only be said that as a means of audio compression in MPEG-4, a set of various audio coding standards is used: the MPEG-2 AAC algorithm, the TwinVQ algorithm, as well as HVXC (Excitation Coding) voice coding algorithms. harmonic vector) – for 2-4 Kbps bit rates and CELP (Code Excited Linear Predictive) – for 4-24 Kbps bit rates. In addition, MPEG-4 has many scalability mechanisms.

4) The MPEG-7 standard, the development of which has not yet been completed, is fundamentally different from all other MPEG standards. The standard is not being developed to establish a framework for transferring data or writing and describing data of any particular kind. The standard is intended to be descriptive, intended to regulate the characteristics of any type of data, even analog. The use of MPEG-7 is intended to be closely related to MPEG-4. MPEG-7 is scheduled for release in 2001.

For the convenience of handling compressed streams, all MPEG algorithms are designed in such a way that they allow decompression (retrieval) and playback of a stream simultaneously with its reception (download) – stream decompression “on the fly” (stream playback) . This opportunity is widely used on the Internet, where the speed of information transfer is limited, and with the use of these algorithms, it is possible to process the information at the moment it is received without waiting for the end of the transfer.

What are CBR and VBR?

As you know, the result of encoding a signal using an algorithm such as MPEG-1 Layer III (MP3) (or some other algorithms) is a bit stream with a frame (block) structure. This is due to the fact that the source stream is not encoded in its entirety, but in parts. That is, in fact, the original stream is divided into blocks of a certain fixed length, then each block (frame) is encoded individually, and the result (encoded information block) is sent to the resulting stream (either a file or a stream of data).

CBR (constant bit rate) is a method of encoding the original audio stream, in which all its blocks (frames) are encoded with the same parameters (with the same bit rate). In other words, the bitrate over the entire length (all frames) of the resulting stream is constant.

VBR (Variable Bit Rate) is a method of encoding the original audio stream, in which each separate block (frame) is encoded with its own bit rate. The choice of the optimal bit rate to encode a given frame is made by the encoder itself by analyzing the “signal complexity” in each individual frame.

History and characteristics of the MPEG standards. Part 2

History and characteristics of the MPEG standards. Part 2

MPEG Standards

2) The MPEG-2 standard was developed especially to encode TV signals from television broadcasts, therefore, we would not have stopped considering MPEG-2 if in April 1997 this set had not received a “continuation” in the form of MPEG- 2 AAC (MPEG-2 Advanced Audio Coding – Advanced Audio Coding) algorithm.

MPEG Video Standards - The Road From 1 to 21

 

The MPEG-2 AAC standard is a collaborative effort between the Fraunhofer Institute, Sony, NEC, and Dolby. MPEG-2 AAC is a receiver for MPEG-1 technology. There are several types of this algorithm: Homeboy AAC, AT&T a2b AAC, Liquifier AAC, Astrid / Quartex AAC, and Mayah AAC. The highest sound quality compared to MPEG-1 Layer III is provided by the two penultimate implementations. All previous versions of the AAC algorithm are not compatible with each other.

As with the standard MPEG-1 audio coding suite, the AAC algorithm is based on the analysis of psychoacoustic signals. At the same time, the AAC algorithm has many additions to its mechanism, aimed at improving the quality of the output audio signal. In particular, a different type of transformation is used, noise processing is improved, the filter bank is changed, and the way the output bit stream is recorded is improved. Furthermore, AAC allows you to store the so-called encoded audio signal in the encoded audio signal. “Watermarks”: copyright information. This information is embedded in the bit stream during encoding in such a way that it is impossible to destroy it without destroying the integrity of the audio data. This technology (under the Multimedia Protection Protocol) allows you to control the distribution of audio data (which, by the way, is an obstacle to the distribution of the algorithm itself and the files created with it). It should be noted that the AAC algorithm is not backward compatible (NBC – not backward compatible) with MPEG-1 levels, even though it is a continuation (refinement) of MPEG-1 Layer I, II, III.

MPEG-2 AAC provides three different encoding profiles: Main, LC (Low Complexity), and SSR (Scalable Sample Rate). Depending on the profile used during encoding, the encoding time and the quality of the resulting digital stream change. The main main profile provides the highest sound quality (at the slowest compression rate). This is due to the fact that the main profile includes all the mechanisms for analyzing and processing the input stream. The LC profile is simplified, which affects the sound quality of the resulting stream, greatly affects the compression rate, and more importantly, the decompression. The SSR profile is also a simplified version of the main profile.

Speaking of sound quality, we can say that the 96 Kbps AAC (main) transmission provides the same sound quality as the 128 Kbps MPEG-1 Layer III transmission. With 128 Kbps AAC compression, the sound quality is notably superior. to MPEG-1 Layer III 128 Kbps.

History and characteristics of the MPEG standards

History and characteristics of the MPEG standards.

Mpeg

MPEG stands for Moving Picture Coding Experts Group, literally Moving Picture Coding Experts Group. MPEG dates back to January 1988. More precisely, the MPEG group was created by the International Organization for Standardization (ISO) and the International Electrotechnical Commission (IEC).

MPEG

The group was formed to create standards for encoding moving images and audio information. Starting from the first meeting in May 1988, the group began to grow and became a community of high-level professionals. Typically, an MPEG meeting is attended by about 350 professionals from more than 200 companies. Meetings are held about three times a year. Most MPEG members are individual specialists employed in various scientific and academic institutions. This is from the field of history. Now about practice. To date, MPEG has developed the following standards and algorithms:

MPEG-1 (November 1992): a standard for encoding, storing, and decoding moving images and audio information;
MPEG-2 (November 1994): coding standard for digital television;
MPEG-4 – standard for multimedia applications: version 1 (October 1998) and version 2 (December 1999);
MPEG-7 is a universal standard for working with multimedia information, designed to process, filter and manage multimedia information.
In order.

1) Consider the MPEG-1 packet. This kit, according to ISO standards, includes three algorithms of various levels of complexity: Layer I, Layer II and Layer III. The general structure of the coding process is the same for all levels. Each level has its own bitstream recording format and its own decoding algorithm. MPEG algorithms are generally based on the studied properties of the perception of sound signals by the human hearing aid (ie the encoding is done using the so-called “psychoacoustic model”).

Briefly about the encoding algorithm. The input digital signal is first broken down into frequency components of the spectrum. This spectrum is then cleaned of obviously inaudible components – low-frequency noise and the highest harmonics – that is, it really gets filtered out. In the next stage, a much more complex psychoacoustic analysis of the audible frequency spectrum is performed. This is done, among other things, to identify and eliminate “masked” frequencies (frequencies that are not perceived by the hearing aid due to being dampened by other frequencies). After all these manipulations, more than half of the information is excluded from the digital audio signal. Then, depending on the level of complexity of the algorithm used, a predictability analysis of the signal can also be performed. Also, based on the combined stereo (joint stereo) fact. This means that the high and low frequencies are in fact separated and encoded in mono (the mids remain in stereo). Also, if, for example, “silence” appears on one of the channels, the “empty” space is filled with information that increases the quality of the other channel or simply does not fit before. To top it off, the ready-to-use bit stream is compressed using a simplified analog of the Huffman algorithm, which also significantly reduces the volume occupied by the stream.

The MPEG-1 kit is designed to encode digitized signals with a sampling frequency of 32, 44.1 and 48 kHz. As stated above, the MPEG-1 suite has three layers (Layer I, II and III). These levels differ in the compression ratio provided and the sound quality of the resulting transmissions. Layer I allows the storage of 44.1 kHz / 16-bit signals without significant loss of quality at a transmission rate of 384 kbps, which is 4 times gain in occupied space; Layer II provides the same quality at 194 kbps and Layer III at 128 (or 112). The Layer III gain is obvious, but the compression rate when used is the lowest (it should be noted that this limitation is no longer noticeable at modern processor speeds). In fact, Layer III allows you to compress information 10 to 12 times without any loss of quality.

Questions and answers about MP4

Questions and answers about MP4

Mp4

Movies recorded in the MPEG-4 format have already gained deserved popularity among a wide audience of PC users. These films usually fit on a CD and, in terms of image quality, they can compete successfully with video tapes. Not the last factor that determines the popularity of MPEG-4 discs is their price – 60-70 rubles. against 400-600 p. for the DVD. Therefore, MPEG-4 could well become a middle ground on the path of the massive transition of home users from analog VHS video recorders to the digital standard DVD.

MP4

In the Russian-language part of the Internet, you can find a large number of materials about the MPEG-4 standard, but most of them contain a description of the complexities of the process of compressing video in this format. This is, of course, a specific question that requires detailed research, but for users acting only as viewers, these articles often cannot answer the questions that arise when they want to watch movies. Another important source of information is conferences. In the “Processors”, “Video”, “Multimedia” sections, issues related to speed, quality, optimal settings and everything related to MPEG-4 are constantly raised, but the answers received often contradict each other. Someone claims that all his life he watched MPEG-4 without brakes on Pentium 200, others complain about the slideshow,

This article attempts to clarify frequently asked questions from people who have recently encountered this format, as well as to draw the attention of those who have never encountered MPEG-4 before. Hopefully, after reading this material, the reader who is not involved in video editing and compression will be able to safely say, “Now I know enough about this.”

What is MPEG?
MPEG is an abbreviation that stands for Moving Picture Experts Group (before writing a letter the first letter is not deciphered, so go to www.mpeg.org).

It is a fairly large organization, consisting of developers of audio, video and computer equipment, as well as programmers and specialists involved in the development and implementation of standards for algorithms for compression, transmission, storage and reproduction of audio and video data.

Among the developments of this group in the field of digital video recording, the most famous are:

MPEG-1 standard. It was released in 1992. Users most often associate it with movies on VideoCD. The typical consumer video format for MPEG-1 in the PAL standard is 352 * 288 pixels, 25 frames per second. The audio part is stereo audio with a sampling frequency of 44.1 kHz, compressed in MPEG-1 Layer II. A feature film recorded in this format occupies two CDs in the VideoCD standard. The picture quality of VideoCDs is on par with a consumer VHS videotape.

MPEG-2 standard. Released in 1995. Users come across this video compression format primarily when purchasing DVD with movies. The typical frame size for a PAL / SECAM video DVD movie is 720 * 576 at 25 frames per second, or 640 * 480 at 30 frames per second in the NTSC standard. Compared to MPEG-1, the audio part adds support for multi-channel sound (Dolby Digital 5.1, DTS, etc.). Increasing the bit rate and using an improved video compression algorithm have given DVD movies much better picture quality than VideoCD. MPEG-2 is also used today in digital satellite television. Home DVD players in our country are gaining popularity. The relatively high price of DVD movies plays a big role in this.

MPEG-4 standard. Its development began in the first half of the 90s of the last century. In December 1999, a launch of this format was presented, which received the official status of the ISO / IEC standard. MPEG-4 was conceived as a way to transfer data from transmission media, mainly video, over low-bandwidth channels. The standard unexpectedly gained popularity among low-budget users: the use of more complex compression algorithms made it possible to put one-and-a-half-hour to two-hour feature films in acceptable quality on a single CD. With the same bit rate and certain encoding conditions, the image quality of a movie in MPEG-4 can be comparable or even better than when using MPEG-1 or MPEG-2. However, the use of new compression algorithms also significantly increased the requirements for the computational resources necessary for decompressing high-quality images from this format.

Mpeg-4, start the countdown in Europe

Countdown to a double shutdown, which will force millions of Europeans to change their television or mount a special decoder. In fact, the first (small) television revolution is eight months away: as of January 1, digital terrestrial broadcasts will use only Mpeg-4 encoding, abandoning the now-old Mpeg-2.

 MPEG-2  MPEG-4

As of July 2022 the second (major) revolution: all transmissions will go in Dvb-t2 (the second digital terrestrial transmission standard), with Hevc encoding (which allows greater compression than simple Mpeg-4 and therefore more channels and / or better quality). A double revolution made necessary by the arrival of 5G, which from 2022 will also use the 700 Mhz frequencies that televisions now use.

video quality

It is good to arrive prepared for these dates, taking into account everything that is at stake. On the one hand, the risk not only of not being able to see terrestrial digital but also of not being able to enjoy the advantages of Hevc, soon adopted by other platforms (such as Netflix, which has already announced it).

On the other hand, the possibility of being able to have state incentives for switching to a suitable television or decoder: 25 euros per hour provided only for a small audience of users (over 75, exempt from the Rai rate and with a maximum income of 8 thousand euros per year), but in the future perhaps extendable by means of new decrees to a greater number of users. The earliest deadline: January 2020 Mpeg-4 Mpeg-4 is the normal encoding that we are used to having on internet videos since the early days of broadband, while Mpeg-2 dates back to the days of DVD. AND

He first manages to bring more content in the same space (disk or radio) and therefore even thanks to this step it will be possible to start releasing some frequencies for 5G of the 700 MHz band. The good news is that for more than one Europeans of the decade have MPEG-4, but according to Mise’s estimates there are around 10 million still stationary on MPEG-2.

Please note that the change in frequencies will be gradual, from January 2020 to December 2021, in the various regions of Italy (according to a roadmap defined by the Government). Two years in which it could also happen that, apart from the Mpeg-4 issue, due to this move it will be necessary to intervene in the condominium system for a readjustment. To understand if our TV (now prehistoric) fits into these, simply connect to the HD channels of digital terrestrial (from 501 onwards): if an error message appears and we cannot see the signal, it means that we do not have the MPEG-4.

They are high definition channels precisely because the best compression allows you to increase the amount of usable data for the same amount of space. Or to occupy less while maintaining the same amount of data (that is, the same number of channels with standard quality), which is precisely the advantage of being able to release frequencies of 700 MHz for 5G. It is enough to take a very cheap “zapper” decoder to adapt TV to MPEG-4, but perhaps it could be an opportunity for a more substantial upgrade, which looks to the future.

Second deadline: July 2022 After just over two years, in fact, we will already need support for DVBT-2 and Hevc codecs, which make signal transmission and compression even more efficient. Which means the possibility both of saving other frequencies and, above all, of changing many of the current channels to 4K. Since January 2017, all televisions integrate the two technologies by law. If we have a TV released before this date, it will be good to do an internet search to read if its specs include Dvbt-2 and Hevc.

However, if not, it may be helpful to wait a little longer before switching to a new model. Until July 2020 we do not need those two technologies for digital terrestrial; If we still do not perceive our TV as obsolete, for our uses, we must wait. If nothing else, in this way we can save money by buying a television that by then will not be so recent but will already be equipped with DVBT-2 and Hevc. It is also possible that the Government will slightly expand the audience of the beneficiaries of the television bonus . if we find, on a deadline, with several families that are not yet equipped with compatible devices. One reason to accelerate the switch to Hevc could be the adoption of Netflix. That thanks to the new codec it will be possible to give 4K even to those who have a line that is not really ultra-broadband and offer 8K content to a wider audience of people.

What is the difference between MP3 and Mp4?

MP3 and MP4, what are the differences?

Many wonder if MP4 is in all respects an “improved version” of MP3. The answer to this question is definitely “NO”, as these are two different types of file data.

mp3

In fact, MP3s refer only to the audio encoding aspect, while MP4s also store images, videos, text and subtitles, so in this case we are talking about a real digital container of different types of information.

Mp4

To better understand what the differences are between the two formats, let’s take a closer look at both.

MP3, history and functions

Designed by the Moving Picture group of experts and introduced to the world in the early 1990s, MP3, short for MPEG-1 Audio Layer 3, is an audio format that has revolutionized the concept of music and its portability.

Its operation is based on a specific lossy compression algorithm that allows to significantly reduce the volume of data useful for playing an audio track, called Lossy (translated: Loss).

Despite this compression, the end result remains faithful to the original recording for the vast majority of users.
In practice, any frequency considered imperceptible to the human ear is considered “removable”.

What does all this imply? Simple! The resulting MP3 file will be extremely smaller than the starting track, therefore, at a volume that previously could only hold 20 music files, hundreds of MP3 tracks can be stored.

MP4, history and features

The release of MP4, or MPEG4 Part 14, dates back to the early 2000s, precisely to 2002, and is used for digital video and audio broadcasts, images, and subtitles.

It is defined as a multimedia container in standard format or part of MPEG4 and does not have a standard information encoding method.

MP4 technology is based on the Apple QuickTime MOV format with, in addition, support for different MPEGs and higher quality audio expressed in AAC (Advanced Audio Coding) format.

From all this it can be understood that MP4 can be audio, video or audio + video files at the same time, also considering the possible presence of images or subtitles.

This is, for example, the most widely used format in the ever-evolving world of digital television and mobile video telephony.

Remember that the two extensions MP4 and M4A indicate the same type of file, what changes is only the extension and, in most cases, you can rename a specific file so that it is suitable for reading by the program.

Bottom line: when to use MP3 and MP4?

Finally, when should you choose an MP3 or MP4 format?

In the event that your file is exclusively an audio track, to be listened to while you are running and to be played through a small portable device, it is good to convert your songs to MP3 format.

This will take up less space on your device, preserve good audio quality, and can store many more songs in the player’s memory.

If, on the other hand, the files you are interested in are videos, perhaps accompanied by audio, images and subtitles, and they will be played on a device with a screen, the format I recommend is undoubtedly MP4.