{"id":2361,"date":"2020-10-31T23:58:53","date_gmt":"2020-10-31T23:58:53","guid":{"rendered":"http:\/\/mp4gain.com\/mp4gain\/?p=2361"},"modified":"2020-10-31T23:58:53","modified_gmt":"2020-10-31T23:58:53","slug":"audio-compression","status":"publish","type":"post","link":"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/","title":{"rendered":"Audio compression"},"content":{"rendered":"<p><strong>Audio compression<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/basicwavez.com\/wp-content\/uploads\/2019\/03\/guide-to-compression-in-audio.jpg\" alt=\"Audio Compression\" width=\"1440\" height=\"810\" \/><\/p>\n<p>Well-established data compression methods such as RLE, statistical and dictionary methods can be used to compress lossless audio files, but the result is highly dependent on the specific audio data. Some sounds will compress well with RLE, but poorly with statistical algorithms. Statistical compression is more suitable for other sounds, but with a dictionary approach, on the contrary, expansion can occur. Here is a brief overview of the effectiveness of these three methods for compressing audio files.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/lh3.googleusercontent.com\/proxy\/yIQ7GZjbaQYi9Ywo5Eudglqk7uZ8cICsmMXtcqY1LsVljsSiHjSnCILbP1V5QfnjVZOrf5GFUlVuSqV-dKq41rKdWcspRZD5DsW0ZnyHArlXneJ5ASmY7Kkf25nUsucklLiHCMX7\" alt=\"Audio Compression\" width=\"512\" height=\"384\" \/><\/p>\n<p>RLE works well with sounds that contain long series of repeating sound chunks &#8211; samples. With 8-bit sampling, this can happen quite often. Remember that the voltage difference between two 8-bit samples n and n &#8211; 1 is approximately 4 mV. A few seconds of homogeneous music, in which the sound wave changes by less than 4 mV, will generate a sequence of thousands of identical samples. With 16-bit sampling, obviously long repeats are less common and therefore the RLE algorithm will be less efficient.<\/p>\n<p>Statistical methods assign variable length codes to audio samples according to their frequency. With 8-bit sampling, there are only 256 different samples, so the samples can be distributed evenly in a large audio file. A file of this type cannot be compressed well with the Huffman method. With 16-bit sampling, more than 65,000 sound bites are allowed. In this case, some samples may be more common and others less common. With a strong probability skew, good results can be achieved with the help of arithmetic coding.<\/p>\n<p>Dictionary-based methods assume that some phrases will appear frequently throughout the file. This occurs in a text file in which individual words or sequences of them are repeated many times. However, the sound is an analog signal and the values \u200b\u200bof the specific generated samples are highly dependent on the operation of the ADC. For example, with 8-bit sampling, an 8 mV waveform becomes a numeric sample of 2, but a nearby wave of, say 7.6 mV or 8.5 mV, can be converted to a different number. For this reason, voice snippets that contain overlapping phrases and sound the same to us may differ slightly when digitized. Then they will enter the dictionary in the form of different phrases, which will not give the expected compression. Therefore, dictionary methods are not very suitable for audio compression.<\/p>\n<p>You can achieve better results in lossy audio compression by developing compression techniques that take into account the perception of sound. They remove the part of the data that remains inaudible to the audience. It is like compressing images, discarding information invisible to the eye. In both cases, we assume that the original information (image or sound) is analog, that is, part of the information has already been lost during quantization and digitization. Allowing a little more loss with care will not affect the quality of the uncompressed sound reproduction, which will not differ much from the original. We will briefly describe two approaches called silence suppression and compaction.<\/p>\n<p>The idea behind silence suppression is to treat small samples as if they were not there (i.e. they are zero). Such a zeroing will generate a series of zeros, so the method of suppressing pauses is, in fact, a variant of RLE adapted to audio compression. This method is based on the peculiarity of sound perception, which consists of the tolerance of the human ear to rule out barely audible sounds. Audio files containing long stretches of quiet sound will be better compressed using the silence suppression method than files full of loud sounds. This method requires the participation of the user, who will control the parameters that establish the loudness threshold for the samples. This requires two more parameters, which are not necessarily controlled by the user. One parameter is used to determine the shortest sequences of silent samples, usually 2 or 3. And the second sets the smallest number of consecutive strong samples, when silence or pause occurs. For example, 15 silent samples can be followed by 2 strong and then 13 silent,<\/p>\n<p>Consolidation is based on the property that the ear better distinguishes changes in the amplitude of soft sounds than loud sounds. A typical ADC for computer sound cards uses a linear conversion to convert the voltage into a numerical form. If the amplitude a became n, then the amplitude 2 a will become 2 n.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Audio compression Well-established data compression methods such as RLE, statistical and dictionary methods can be used to compress lossless audio files, but the result is highly dependent on the specific audio data. Some sounds will compress well with RLE, but poorly with statistical algorithms. Statistical compression is more suitable for other sounds, but with a &hellip; <a href=\"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Audio compression&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[27929,49821,49820,27883,33416,27878,27886,27876,27877,27879,27874,24681,27897,27895,49823,49824,49822],"class_list":["post-2361","post","type-post","status-publish","format-standard","hentry","category-audio-video","tag-audio-compression-is-usually","tag-camtasia-audio-compression","tag-explain-audio-compression","tag-how-audio-compression-works","tag-how-audio-compressors-work","tag-how-does-audio-compression-work","tag-how-to-use-audio-compression","tag-what-does-audio-compression-do","tag-what-does-audio-compression-do-in-camtasia","tag-what-does-audio-compression-mean","tag-what-is-audio-compression","tag-what-is-mpeg-1-audio-compression-standard","tag-what-is-the-best-audio-compression-format","tag-when-to-use-audio-compression","tag-windows-audio-compression","tag-windows-audio-compression-manager","tag-winrar-audio-compression"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Audio compression - mp4gain.com<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Audio compression - mp4gain.com\" \/>\n<meta property=\"og:description\" content=\"Audio compression Well-established data compression methods such as RLE, statistical and dictionary methods can be used to compress lossless audio files, but the result is highly dependent on the specific audio data. Some sounds will compress well with RLE, but poorly with statistical algorithms. Statistical compression is more suitable for other sounds, but with a &hellip; Continue reading &quot;Audio compression&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/\" \/>\n<meta property=\"og:site_name\" content=\"mp4gain.com\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/mp4gain\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-31T23:58:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/basicwavez.com\/wp-content\/uploads\/2019\/03\/guide-to-compression-in-audio.jpg\" \/>\n<meta name=\"author\" content=\"R. Arias\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@mp4gain\" \/>\n<meta name=\"twitter:site\" content=\"@mp4gain\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"R. Arias\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/\"},\"author\":{\"name\":\"R. Arias\",\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/#\/schema\/person\/36ffddda9988e565bd4a9013324ce2cc\"},\"headline\":\"Audio compression\",\"datePublished\":\"2020-10-31T23:58:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/\"},\"wordCount\":712,\"image\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/basicwavez.com\/wp-content\/uploads\/2019\/03\/guide-to-compression-in-audio.jpg\",\"keywords\":[\"audio compression is usually\",\"camtasia audio compression\",\"explain audio compression\",\"how audio compression works\",\"how audio compressors work\",\"how does audio compression work\",\"how to use audio compression\",\"what does audio compression do\",\"what does audio compression do in camtasia\",\"what does audio compression mean\",\"what is audio compression\",\"what is mpeg-1 audio compression standard\",\"what is the best audio compression format\",\"when to use audio compression\",\"windows audio compression\",\"windows audio compression manager\",\"winrar audio compression\"],\"articleSection\":[\"Audio and video\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/\",\"url\":\"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/\",\"name\":\"Audio compression - mp4gain.com\",\"isPartOf\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/basicwavez.com\/wp-content\/uploads\/2019\/03\/guide-to-compression-in-audio.jpg\",\"datePublished\":\"2020-10-31T23:58:53+00:00\",\"author\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/#\/schema\/person\/36ffddda9988e565bd4a9013324ce2cc\"},\"breadcrumb\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/#primaryimage\",\"url\":\"https:\/\/basicwavez.com\/wp-content\/uploads\/2019\/03\/guide-to-compression-in-audio.jpg\",\"contentUrl\":\"https:\/\/basicwavez.com\/wp-content\/uploads\/2019\/03\/guide-to-compression-in-audio.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mp4gain.com\/mp4gain\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Audio compression\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/#website\",\"url\":\"https:\/\/mp4gain.com\/mp4gain\/\",\"name\":\"mp4gain.com\",\"description\":\"Mp4 Gain Official Website\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/mp4gain.com\/mp4gain\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/#\/schema\/person\/36ffddda9988e565bd4a9013324ce2cc\",\"name\":\"R. Arias\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/secure.gravatar.com\/avatar\/8ca03263e87418cfde07c571c83fa172297ce230085e4f181b9e5f9af745d6be?s=96&d=blank&r=g\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8ca03263e87418cfde07c571c83fa172297ce230085e4f181b9e5f9af745d6be?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/8ca03263e87418cfde07c571c83fa172297ce230085e4f181b9e5f9af745d6be?s=96&d=blank&r=g\",\"caption\":\"R. Arias\"},\"description\":\"R. Arias is the author of this article and has extensive experience for more than 30 years as a recording engineer and audio specialist, as well as more than 20 years of experience creating algorithms related to audio and video. Linkedin\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/ricardoariaszorrilla\/\"],\"url\":\"https:\/\/mp4gain.com\/mp4gain\/author\/mp4gain\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Audio compression - mp4gain.com","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/","og_locale":"en_US","og_type":"article","og_title":"Audio compression - mp4gain.com","og_description":"Audio compression Well-established data compression methods such as RLE, statistical and dictionary methods can be used to compress lossless audio files, but the result is highly dependent on the specific audio data. Some sounds will compress well with RLE, but poorly with statistical algorithms. Statistical compression is more suitable for other sounds, but with a &hellip; Continue reading \"Audio compression\"","og_url":"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/","og_site_name":"mp4gain.com","article_publisher":"https:\/\/www.facebook.com\/mp4gain","article_published_time":"2020-10-31T23:58:53+00:00","og_image":[{"url":"https:\/\/basicwavez.com\/wp-content\/uploads\/2019\/03\/guide-to-compression-in-audio.jpg","type":"","width":"","height":""}],"author":"R. Arias","twitter_card":"summary_large_image","twitter_creator":"@mp4gain","twitter_site":"@mp4gain","twitter_misc":{"Written by":"R. Arias","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/#article","isPartOf":{"@id":"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/"},"author":{"name":"R. Arias","@id":"https:\/\/mp4gain.com\/mp4gain\/#\/schema\/person\/36ffddda9988e565bd4a9013324ce2cc"},"headline":"Audio compression","datePublished":"2020-10-31T23:58:53+00:00","mainEntityOfPage":{"@id":"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/"},"wordCount":712,"image":{"@id":"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/#primaryimage"},"thumbnailUrl":"https:\/\/basicwavez.com\/wp-content\/uploads\/2019\/03\/guide-to-compression-in-audio.jpg","keywords":["audio compression is usually","camtasia audio compression","explain audio compression","how audio compression works","how audio compressors work","how does audio compression work","how to use audio compression","what does audio compression do","what does audio compression do in camtasia","what does audio compression mean","what is audio compression","what is mpeg-1 audio compression standard","what is the best audio compression format","when to use audio compression","windows audio compression","windows audio compression manager","winrar audio compression"],"articleSection":["Audio and video"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/","url":"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/","name":"Audio compression - mp4gain.com","isPartOf":{"@id":"https:\/\/mp4gain.com\/mp4gain\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/#primaryimage"},"image":{"@id":"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/#primaryimage"},"thumbnailUrl":"https:\/\/basicwavez.com\/wp-content\/uploads\/2019\/03\/guide-to-compression-in-audio.jpg","datePublished":"2020-10-31T23:58:53+00:00","author":{"@id":"https:\/\/mp4gain.com\/mp4gain\/#\/schema\/person\/36ffddda9988e565bd4a9013324ce2cc"},"breadcrumb":{"@id":"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mp4gain.com\/mp4gain\/audio-compression\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/#primaryimage","url":"https:\/\/basicwavez.com\/wp-content\/uploads\/2019\/03\/guide-to-compression-in-audio.jpg","contentUrl":"https:\/\/basicwavez.com\/wp-content\/uploads\/2019\/03\/guide-to-compression-in-audio.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/mp4gain.com\/mp4gain\/audio-compression\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mp4gain.com\/mp4gain\/"},{"@type":"ListItem","position":2,"name":"Audio compression"}]},{"@type":"WebSite","@id":"https:\/\/mp4gain.com\/mp4gain\/#website","url":"https:\/\/mp4gain.com\/mp4gain\/","name":"mp4gain.com","description":"Mp4 Gain Official Website","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mp4gain.com\/mp4gain\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/mp4gain.com\/mp4gain\/#\/schema\/person\/36ffddda9988e565bd4a9013324ce2cc","name":"R. Arias","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/8ca03263e87418cfde07c571c83fa172297ce230085e4f181b9e5f9af745d6be?s=96&d=blank&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/8ca03263e87418cfde07c571c83fa172297ce230085e4f181b9e5f9af745d6be?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8ca03263e87418cfde07c571c83fa172297ce230085e4f181b9e5f9af745d6be?s=96&d=blank&r=g","caption":"R. Arias"},"description":"R. Arias is the author of this article and has extensive experience for more than 30 years as a recording engineer and audio specialist, as well as more than 20 years of experience creating algorithms related to audio and video. Linkedin","sameAs":["https:\/\/www.linkedin.com\/in\/ricardoariaszorrilla\/"],"url":"https:\/\/mp4gain.com\/mp4gain\/author\/mp4gain\/"}]}},"_links":{"self":[{"href":"https:\/\/mp4gain.com\/mp4gain\/wp-json\/wp\/v2\/posts\/2361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mp4gain.com\/mp4gain\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mp4gain.com\/mp4gain\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mp4gain.com\/mp4gain\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mp4gain.com\/mp4gain\/wp-json\/wp\/v2\/comments?post=2361"}],"version-history":[{"count":0,"href":"https:\/\/mp4gain.com\/mp4gain\/wp-json\/wp\/v2\/posts\/2361\/revisions"}],"wp:attachment":[{"href":"https:\/\/mp4gain.com\/mp4gain\/wp-json\/wp\/v2\/media?parent=2361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mp4gain.com\/mp4gain\/wp-json\/wp\/v2\/categories?post=2361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mp4gain.com\/mp4gain\/wp-json\/wp\/v2\/tags?post=2361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}