Audio compression


Free Download Mp4Gain
picture

Audio compression

Audio compression
Audio compression

Well, in fact, the bit rate should be said to be another dimension, it is a compression of audio files.

Audio compression
Audio compression

Nowadays, most of the audio formats that we use regularly are based on the original “WAV” file of the audio CD (44.1khz sampling rate, 16bit sampling precision, 2ch). The original recorded sound data is stored in an array, which is in PCM format, while WAV format is an encoding format developed by Microsoft, and its function is to play the PCM format data through encoding.

Since the data in WAV basically completely restores the PCM data, MP3, AAC and other lossless encoding formats are basically recompressed based on the WAV files. Therefore, we can simply think that WAV is the original audio format and other audio formats are compressed formats.

When it comes to compression, storage and transmission are inseparable. The purpose of compression is to improve storage and transmission. Therefore, before we talk about compression, we need to understand the basic units of computers.

We all know that the computer is a binary number system, and the files stored by the computer are made up of two numbers, 0 and 1. Therefore, the computer’s transmission is based on each number, and each number is called 1 ” bit”. For example, for an audio piece, its basic data is “0,1,1,1,0,1, 1 ,0″, and when transmitting, these numbers are transmitted one by one. The sampling precision mentioned above is this unit.

The storage unit of the computer is ” byte (Byte)”. In the computer, 1 byte consists of 8 bits, that is, 8b(bit)=1B(Byte). In computer parlance, data storage is expressed in decimal and data transmission is expressed in binary, so 1KB=1024B=1024×8b. This is also part of the reason why the hard drive capacity we see does not match the actual capacity.

Go back and talk about audio compression, the bitrate of the audio is actually the compression ratio. So the bitrate really just defines the size of the file, but because under normal conditions the larger the file, the less data you lose, so the sound quality is relatively higher. However, the bit rate itself does not directly affect the quality of the file. For example, if we take a 128kb file as the source file, even if it is converted to a 320kb file, the sound quality will not be better than 128kb. .

So what exactly do the numbers and letters in the bitrate mean? First look at the full name of 128k “128kbps”, let’s try to break it down: 128 is a number, k is a thousand symbol, b is a unit, s is a second, and ps is actually “/s”. Thus, 128kbps is 128kb/s. That’s 128kb per second.

Note that the b here is a lowercase b, or bit. Knowing this, we can calculate the approximate storage space that a 128kb file occupies: 128*1000=128000b/s÷8=16000B/s÷1024=15.625KB/s*60=937.5KB/min÷1024=0.9155 MB/ min. So 128Kb audio file size is about 0.92M or 916Kb per minute, so 128Kb mp3 is about 1M in size. You can test and check it locally.

Before talking about lossy and lossless, there are two words to explain to you, that is, we will see CBR and VBR when compressing MP3. And CBR is constant bit rate, constant bit rate; VBR is variable bit rate, dynamic bit rate. In theory, VBR’s way is to automatically correct some bitrates according to the specific frequency of the sound in the source audio file, to achieve a smaller file with the same bitrate effect.

Let’s talk about lossy and lossless. In a nutshell, lossy compression is about achieving compression by removing some less important data from existing data; lossless compression is about achieving compression by optimizing the layout. Since these compression methods involve deeper technical knowledge, we won’t say more, and we can probably look at it this way: lossy compression is like removing some unimportant particles in an article to achieve the purpose, after decompression, it is you deleted the content cannot be recovered; Lossless is achieved through typesetting. After decompression, complete WAV data can be obtained, just like our commonly used winzip and WinRAR.


Free Download Mp4Gain
picture


Mp4Gain Main Window
picture


Mp4Gain Features
picture


Free Download Mp4Gain
picture

What is the difference between 128k and 320k music?

What is the difference between 128k and 320k music?

Audio Bitrate
Audio Bitrate

【Preface】

Audio Bitrate
Audio Bitrate

Some time ago, a colleague came across a very troubled client. The mess was said to have been caused by the client asking him to provide song files larger than 100MB-200MB in size. And my colleagues don’t know much about audio formats, so they started endlessly fumbling about FLAC, WAV and audio size. In the end, the colleague did not clearly explain to the customer what was going on.

After that, other things happened that made me feel that in the music industry there are too many practitioners around me who have an extremely poor understanding of music and even lack some basic knowledge related to music. I don’t even have the idea to understand, which makes me very sad. It seems that music has only one product attribute, and our practitioners only need to organize the shelves, encode various products, and recommend products to users with the big data of user purchase records, and they don’t need to worry about why the users users like this. Brands, what features these products have, and provide users with various services with cold data.

Therefore, I think it is necessary to write something. I don’t expect practitioners to become people who really love music. I just hope that even if you still think of “her” as a commodity, you can first figure out what you’re selling. and what is..

PS: The contents of the first lesson are multimedia files. Since the relevant content involves a lot of technical issues, it seems a bit boring, but if you read it carefully, you will see that it is actually very easy to understand, but these basic knowledge can be very helpful.Improve your skill well. Also expect more interesting content about records, musical styles, etc. which I will post soon.

Bit Rate, Sample Rate, Lossless, MP3, FLAC, APE, 320kb, 192kb, 128kb, 44.1khz, CBR, VBR. Does this bunch of various names make you both familiar and unknown?

The higher the bitrate, the better the sound quality. Lossless music is the highest sound quality, right? So, let’s start with the sound collection.

【Audio composition】

Nowadays, when we talk about audio, everything is digital audio. Digital audio consists of three parts: sample rate, sample precision, and number of sound channels.

Sample Rate: Both the sample rate, which refers to the number of samples per second when recording the sound, expressed in Hertz (Hz).

Sampling Precision: Refers to the dynamic range of the recorded sound, measured in bits (Bit).

Sound channel: the number of channels (1-8).

 

In simple terms, we can think of a sound wave as a curve. We know that the curve is made up of points, and the sampling rate is the number of points in the middle of the length per second (the horizontal axis in the figure above). Sampling precision is the number of points in the dynamic range (upper vertical axis). The finer the positioning of these two dimensions, the greater the true sound restoration and the better the sound quality. Of course, the larger the audio file will be.

What is the proper audio bitrate? Part 2

What is the proper audio bitrate? Part 2

audio bitrate
audio bitrate

What does audio bitrate mean?

audio bitrate
audio bitrate

 

Are higher audio bitrates better?

 

Encoding rate (Kbps) * total length of the song (seconds) / 8 = file size (KB), if divided by 1024, it is the size in MB.
mp3 is lossy compression, the smaller the file, the higher the loss. The relationship between bitrate and audio and video compression is simply that the higher the bitrate, the better the audio quality and video, but larger is the encoded file; yes The opposite is true for lower bitrates.
Bitrate refers to the sampling rate at which digital sound is converted from analog to digital format. The higher the sampling rate, the better the quality of the restored sound.
The bitrate value is compared to the actual audio:
16 Kbps = phone sound quality
24 Kbps = increase phone sound quality, short wave transmission, long wave transmission, European standard medium wave transmission
40 Kbps = American standard medium wave transmission 56 Kbps
= voice
64 Kbps = voice boost (best bit for mobile phone ringtones) = tape (best setting for mobile phone stereo MP3 player, best setting for low-end MP3 player
112 Kbps = FM stereo radio FM 128 Kbps ) 160 Kbps = Hi-fi HIFI (best setting for mid-range MP3 player to high-end MP3 players) 192 Kbps=CD (best setting for high-end MP3 player) high-end ) 256 Kbps= Studio Music Studio (for music enthusiasts) In fact, with the advancement of technology, bit rates are also getting higher and higher, MP3 has a maximum bit rate of 320 Kbps, but some formats can achieve higher bit rates and superior sound quality. For example, the emerging APE audio format can provide true audiophile-level lossless sound quality and smaller volume than WAV format, and its bit rate is typically 550kbps.

What is the proper audio bitrate?

What is the proper audio bitrate?

audio bitrate
audio bitrate

What does audio bitrate mean?

audio bitrate
audio bitrate

What is the proper audio bitrate? When recording gameplay videos and putting them on the Internet, the bit rate used to suppress the video depends on the end use. If you are going to share it on an online video site like Youku, the requirements for videos will vary from site to site. Youku’s requirements for video formats are as follows: Generally speaking, when uploading videos to online sites, it is recommended that the video be encoded in H264/X264, and the video bitrate should be 1600Kbps;
What is the proper audio bitrate?

 

When recording gameplay videos and putting them on the Internet, the bit rate used to suppress the video depends on the end use.

 

If you are going to share it on an online video site like Youku, the requirements for videos will vary from site to site. Youku’s requirements for video formats are as follows:

 

Generally speaking, when uploading to online video website, it is recommended that the video be encoded by H264/X264, the video bit rate should be 1600Kbps; audio must be AAC encoded and audio bitrate must be 128 Kbps.

 

If you plan to put it on the network drive and share it with friends, it is recommended to use a higher bit rate. For example, the video is encoded by H264/X264 and the video bit rate is 2400Kbps; the audio is AAC encoded and the audio bitrate is 128 Kbps.

What does audio bitrate mean?

 

The code rate is the number of data bits transmitted per unit of time during data transmission. Generally, the unit we use is kbps, that is, kilobits per second.
A common understanding is the sample rate. The higher the sample rate per time unit, the higher the precision, and the processed file will be closer to the original file, but the file size is proportional to the sample rate, so almost all encoding formats pay attention to This is how to use the lowest code rate to achieve the least distortion. The cbr (fixed code rate) and vbr (variable code rate) derived from this core are all items in this regard, but things are not absolute, In terms of audio, the higher the bit rate, the lower the compressed ratio, the smaller the sound quality loss and the closer it is to the sound quality of the audio source.
Basically, the sound quality of the two data 44.1 and 128 in the MP3 song attribute is very good.

What does the quality of the audio or video depend on?

What does the quality of the audio or video depend on?

Sample Rate
Sample Rate

What factors are crucial for a higher or lower quality in digital files?

Sample Rate
Sample Rate

Files like WAV are not compressed, but they take up a lot of space and contain a lot of inaudible and unnecessary information.

This forced them to look for ways to be able to compress this audio or video to save space and so that they were also lighter to watch or listen to live on sites like YouTube or Spotify, etc.

Let’s see what are the important parameters:

1.- Bit Rate

It is the bit transfer rate. Said in an easy to understand way, it is the amount of information that can be transmitted per second. It is obvious that the more information that can be transmitted, the greater the detail and therefore the greater the quality.

Sometimes the transfer rate is fixed (CBR) but it can also be variable. Where the bitrate chosen for each moment will depend on the amount of information needed.

An audio with a lot of silence and few sounds will need to transfer much less information per second than an audio full of sounds and nuances.

2.- Sampling rate

The amount of information per second that is sampled will mark the number of details that are captured and can be transmitted.

But obviously also the higher the sampling rate, the greater the information contained.

Therefore, we see as a very simplified summary that a higher quality requires greater detail and therefore better information stored and a higher speed of transmission of that information.

Therefore higher bitrate and higher samplerate will usually mean higher quality, and will also take up more space.

Which is better, MP3, FLAC or WAV? Part 2

Which is better, MP3, FLAC or WAV? Part 2

 

The right audio file format can do more with less

M4A

M4A is a format compatible with Apple products such as iPhone and iPod, and corresponds to MPEG-4 video files. M4A files have lossless compression and can be edited multiple times without quality loss. Compared to other audio file formats, M4A has similar quality but smaller file size.

CCA

Like MP3, Advanced Audio Coding (AAC) files are also lossy formats. However, AAC files are of much higher quality in their original state than all other audio file formats, and AAC files are generally similar in size to MP3, but slightly higher in quality.

In addition, AAC also offers variable bitrate or constant bitrate encoding, and AAC files are also open source, which means you don’t have to pay royalties to create and share them (unlike MP3 files). .

AAC files are usually used in iTunes, but can also be used in other player devices and game consoles.

undefined

OGA

Like AAC, OGA files are open source and use lossy compression. They use a variable bit rate to reduce file size without reducing the overall sound quality. In practice, OGA files tend to be of higher quality than MP3s, but many programs don’t support OGA.

FLAC

Like M4A, FLAC is a lossless format, but unlike M4A, FLAC is an open source encoding and has a more efficient compression algorithm that reduces the file to 50% to 70% of its original size. This format is popular with audiophiles as a way to collect music in its highest quality form. Because it is open source, it is compatible with many devices and programs.

PCM, WAV and AIFF

PCM (Pulse-Code Modulation) is an uncompressed audio file format commonly used on CDs and DVDs. This format uses a “sample rate” and a “bit depth”, where the sample rate represents the sample rate of the original audio file and the bit depth represents how many bits are used to define each sample.

WAV (Waveform Audio File Format) is generally used as a format for storing PCM audio files, which makes it more suitable for Windows computers.

AIFF (Audio Interchange File Format, Audio Interchange File Format) like WAV is commonly used to store audio files in PCM format (except Mac).

How to choose the correct audio file format

Choosing the right format completely depends on the audio file you intend to use, you should choose a format that expresses the sound quality of the desired audio file, unnecessary high quality audio files can be difficult to move, share, convert and manage . Consider the following two cases:

If you plan to edit audio files (such as podcasts), use uncompressed formats (including PCM, WAV, and AIFF) so that the quality of the audio files is maintained each time you edit and save the file. Once completed, it can be generated in a compressed format that is easy to share.
If you are an audiophile and want to listen to your music in high fidelity, choose a lossless compressed file format, including FLAC, WMA, M4A. It uses less storage space than uncompressed formats, but still retains the original full file quality.
If you don’t care about the quality of audio files, want to share files on the Internet, or need to save hard disk space, choose a format that uses lossy audio file compression, including MP3, OGA, AAC. Fortunately, lossy compression has gotten so good in recent years that most people can’t tell the difference between lossy and lossless compression.
In conclusion

In summary, the most popular types of audio files are:

MP3
M4A
CAA
OGA
FLAC
WAV
PCM
AIFF
In some cases it is better to use one file format than the other, in which case you should convert between the two file formats. To programmatically convert between audio or video file types, you can use Filestack’s Audio Transcoding API or Video Transcoding API. The Filestack API also supports splitting audio files from video files, cropping or resizing video files, video file thumbnails, and more.

Which is better, MP3, FLAC or WAV?

Which is better, MP3, FLAC or WAV?

MP3, FLAC or WAV
MP3, FLAC or WAV

 

The right audio file format can do more with less

MP3, FLAC or WAV
MP3, FLAC or WAV

Starting with MP3, M4A, and AAC, etc., when you process audio or video in your program, you will find many audio file formats. In this article, we’ll take an in-depth look at the different types of formats and when to use them in an audio or video file.

 

First, let’s answer some frequently asked questions:

What is the best audio format for sound quality?

Lossless formats like FLAC, WAV and AIFF are the best formats for audio files, these types of audio files are considered “high resolution” because the quality is better than a CD, but these files take up a lot of space.

Which audio file format is best to use on the web?

From a browser compatibility point of view, MP3 and MP4 are the most suitable formats to use on web pages. Modern browsers, including IE9, support this format, and some also support other formats, such as OGG, WebM, AAC, and WAV.

What are the most popular audio formats?

MP3 files are the most widely used format, and the popularity of MP3 in recent decades has led to the rise of many MP3-compatible players on the market, which continues to this day. MP3 offers a variety of different bit rates to balance quality and file size, and efficient size makes it a standard format for exchanging audio files over the Internet.

How to convert audio files from one format to another?

To convert formats manually, use a program like VLC Media Player to convert between popular audio file formats.

To programmatically convert files, Filestack provides an audio file transcoding API that makes converting audio files easy and convenient.

audio file format

MP3

MP3 is the most common audio file format and has lossy compression, which means that its quality will decrease with further editing. But compared to other audio file formats, the file size of MP3 is still relatively large.

MP3 files can be encoded at a constant or variable bit rate. Constant bit rate ensures the same quality throughout the audio file, but results in a larger file; Reduces quality when near silent, which reduces overall file size. Most smartphones and music players use the MP3 format.

How to normalize the volume of several mp3s?

How to normalize the volume of several mp3s?

Normalize Mp3
Normalize Mp3

How to get my mp3s to sound with a similar volume/loudness?

Normalize Mp3
Normalize Mp3

When the music was distributed on vinyl and recorded in an analog way, it was an exception that one audio sounded louder or quieter than the others.

On the other hand, since it took several seconds to change the disk, our mental reference to the volume of the previous disk had been erased, we were no longer so clear.

Today, with digitalized music and videos and with digital players that can play playlists, it is extremely noticeable if there is a change, jump, etc. in the volume or loudness level from one audio to another or from one video to another.

Mp4Gain is the professional mass solution that has been developed so far and it is very simple to use: just load the audios (of any popular format, not just mp3s) and the same with audios and press a button and soon we will have the problem of the resolved volume.

Explain why this happens in the digital age and did not happen in the analog one does not fall back on the myths of the supposed analog superiority.

Rather, today we have equipment to reproduce much higher quality that detects and makes it noticeable, since we have become accustomed to high fidelity, which perhaps in the analog era would have gone unnoticed.

We also find that now almost any audio or video file that reaches us has been manipulated in one way or another by an “intermediary”. That is, someone encoded or re-encoded that audio or mvideo, chose a bitrate, etc. and it is NOT reaching us, in that sense the original file. And this manipulation done by amateurs greatly influences the quality and loudness.

How many KB is the best sound quality for mp3? Part 3

How many KB is the best sound quality for mp3? Part 3

MP3 Quality
MP3 Quality

WMA is a digital music format promoted by Microsoft, under the premise of the same sound quality as mp3, the volume can be reduced by half, which almost doubles the capacity of the mp3 player.

MP3 Quality
MP3 Quality

You can easily transcribe CD to WMA through the media player that comes with Window. However, WMA has a disadvantage: Due to the music copyright issue, some WMA files cannot be simply copied to the mp3 player for playback. Of course, the higher the sound quality, the larger the file size. 320kb mp3 files are as large as 9m, and an mp3 with 128m of memory can only hold about 12 songs, which is highly impractical. The size is the ideal choice. Of course, if you have the money, it would be better to buy an mp3 hard drive, even if you put 320kb files on it, it will be easier to enjoy high quality music.
2. Quality of music playback files
The decoder chip is important, but in order to enjoy high-quality music, the factor that affects the sound source itself is very large. In turn, the quality of the audio source depends on the music file format and compression ratio. Nowadays, the most popular music formats are of course mp3 and wma, almost all mp3 players support these two formats. MP3 should be considered as the most lossy compressed digital audio format currently used by users. The mp3 files that we usually listen to have a bit compression rate of 128kbps, the compression rate is about 1:10, and the file size is usually only 4m. to a more balanced position. The compression rate of the songs we download from the Internet is usually relatively low, often only 96kbps or even less, and the effect is not very ideal. This is a practice where websites deliberately lower the compression rate due to download speed and copyright issues. To enjoy real sound quality, the best way is to find a better quality CD disc and compress it yourself. Generally speaking, the sound quality of mp3 files with a compression ratio of 192 kbps is relatively good. When played with a good mp3 player, the effect is very similar to md. If compressed to 320 kbps, the sound quality is very similar. to the CD player It’s hard to tell the difference. (Excluding those with golden ears, of course)
The most famous mp3 decoder is of course the free LAME mp3 encoding software, and most of the users have affirmed the sound quality of the mp3 encoded by it. The first MP3 encoding used a fixed code rate (CBR) method, and now it’s slowly starting to use a variable code rate (VBR) compression method. Good balance. It is worth noting that older mp3s are not compatible with VBR encoded mp3s.
WMA is a digital music format promoted by Microsoft, under the premise of the same sound quality as mp3, the volume can be reduced by half, which almost doubles the capacity of the mp3 player. You can easily transcribe CD to WMA through the media player that comes with Window. However, WMA has a disadvantage: Due to the music copyright issue, some WMA files cannot be simply copied to the mp3 player for playback. Of course, the higher the sound quality, the larger the file size. 320kb mp3 files are as large as 9m, and an mp3 with 128m of memory can only hold about 12 songs, which is highly impractical. The size is the ideal choice. Of course, if you have the money, it would be better to buy an mp3 hard drive, even if you put 320kb files on it, it will be easier to enjoy high quality music.

How many KB is the best sound quality for mp3? Part 2

How many KB is the best sound quality for mp3? Part 2

Mp3 Quality
Mp3 Quality

The most widely used decoder chip on the market today is, of course, the well-known STMP3410 from Sigmatel.

Mp3 Quality
Mp3 Quality

Whenever you disassemble your mp3, you will find that your mp3 uses STMP3410 decoder chip. The decoder chip is highly integrated and has concentrated functions. It is easy for manufacturers to develop or add new features such as letter display and electronic dictionary. The relative cost is relatively low. It ranges from high-end brands like Samsung, MSC, and Giving to some misc and even names All brands that cannot be called are used, the sound quality is quite satisfactory, the low frequency is a bit weak, the voices and the musical instruments are not bad. Of course, the sound quality performance of mp3 using STMP3410 decoder chip is not the same and sometimes even very different. The reason lies in the internal circuit design of the mp3, the soldering process, the material of the circuit board, and the difference between various manufacturers, especially There is a big difference between the big manufacturers and some non-brand manufacturers. These are also the key factors that affect the work of the decoding chip and the sound quality output. Take two high-end machines that also use the STMP3410 chip and compare the unbranded machines to understand. Therefore, due to many factors within the mp3, the price of the mp3 that also uses the STMP3410 chip varies.
What’s more, there are some unscrupulous manufacturers on the market who use discarded or recycled second-hand FLASH chips, along with inferior circuit design, quickly made an mp3 and sold it to the market. Usually the price of this kind of mp3 is very low, and the 128m memory is sometimes cheaper than the same capacity U disk, and the sound quality can be described as rubbish. Come to think of it, we all know that manufacturers have to survive on such a small profit, unless there is something in the mp3, who will make it for free? So when you come across this kind of mp3, you should pay more attention, no matter how good the sound quality is, it can’t be better. Other decoder chips such as Sigmatel’s STMP1342, Telechip’s TCC730, Samsung’s S3C2410, etc. will not be discussed in detail due to their similar performance.
With the deepening of the market, some powerful manufacturers are also constantly exploring to dedicate the best sound quality to consumers. JNC’s new SSF-800 machine uses the SIGMATEL3420 chip, and the sound quality is very impressive. The next new mp3 just released by iriver uses the most powerful SIGMATEL3520, which is worth waiting for. The good news is that the Meizu me released by the national brand Meizu also uses the SIGMATEL3520 decoder chip, which is the first time for a national brand. It appears that the national brand is slowly creeping into the ranks of premium sound effects as well.
Second, the quality of music playback files The
decoding chip is important, but in order to enjoy high-quality music, the factor that affects the sound source itself is very large. In turn, the quality of the audio source depends on the music file format and compression ratio. Nowadays, the most popular music formats are of course mp3 and wma, almost all mp3 players support these two formats. MP3 should be considered as the most lossy compressed digital audio format currently used by users. The mp3 files that we usually listen to have a bit compression rate of 128kbps, the compression rate is about 1:10, and the file size is usually only 4m. to a more balanced position. The compression rate of the songs we download from the Internet is usually relatively low, often only 96kbps or even less, and the effect is not very ideal. This is a practice where websites deliberately lower the compression rate due to download speed and copyright issues. To enjoy real sound quality, the best way is to find a better quality CD disc and compress it yourself. Generally speaking, the sound quality of mp3 files with a compression ratio of 192 kbps is relatively good. When played with a good mp3 player, the effect is very similar to md. If compressed to 320 kbps, the sound quality is very similar. to the CD player It’s hard to tell the difference. (Of course, those with golden ears are excluded)