{"id":3698,"date":"2021-05-10T15:54:36","date_gmt":"2021-05-10T15:54:36","guid":{"rendered":"http:\/\/mp4gain.com\/mp4gain\/?p=3698"},"modified":"2021-05-10T15:54:36","modified_gmt":"2021-05-10T15:54:36","slug":"lossless-audio-compression-2","status":"publish","type":"post","link":"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/","title":{"rendered":"Lossless audio compression"},"content":{"rendered":"<p><strong>Lossless audio compression<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/routenote.com\/blog\/wp-content\/uploads\/2020\/09\/Lossless-and-Lossy-1280x720.jpg\" alt=\" lossless\" width=\"446\" height=\"251\" \/><\/p>\n<p>Sound is a simple wave and digitized sound is a digital representation of that wave.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" src=\"https:\/\/i.ytimg.com\/vi\/cBFdWwOsft4\/maxresdefault.jpg\" alt=\"LOSSLESS AUDIO COMPRESSION\" width=\"1280\" height=\"720\" \/><\/p>\n<p>This is accomplished by storing the level of the analog signal several times in one second. For example, on an ordinary CD, a signal is stored 44100 times per second. Since the CD works with stereo, we store the signal for the left and right speakers in parallel. 16-bit numbers are used for each measurement. So it&#8217;s easy to calculate that one second of polling takes 2 \u00d7 2 \u00d7 44100 = 176,400 bytes. Lossless audio compression is a set of transformations that efficiently compress the audio data with the possibility of its complete recovery. Like any lossless compression, audio data compression exploits some characteristic of the data. In this case, these are:<br \/>\nKnowing the limits of the samples: We know how many bits or bytes are allocated per sample sample and how many audio channels are in the sample.<br \/>\nLow derivative: In other words, the values \u200b\u200bof the adjacent samples differ little.<br \/>\nLow second derivative: the values \u200b\u200bof the three adjacent samples are close to a linear function.<br \/>\nCloseness of the left and right channels: The signal levels in the left and right speakers are usually close.<\/p>\n<p>Rice&#8217;s algorithm<br \/>\nThe idea behind audio compression is to represent the numbers corresponding to the stream as small as possible, removing any data correlation beforehand. You can then write the encoded data stream to disk. One of the most efficient ways is Rice encoding. Smaller numbers are preferred because their binary representation is shorter. For example, you need to encode the following row: Base in base 10:10, 14, 15, 46 OR the same row in binary form Base 2: 1010, 1110, 1111, 101110 Now if you want to represent this as a string, where 32 bits are reserved for each number for the range of all possible values, it will be ineffective, since 128 bits are needed. However, there is a more effective method. The best solution would be to simply write the binary numbers 1010, 1110, 1111, 101110 without commas, obtaining a series like 101011101111101110. The problem is that afterwards there is no way to know the limits of each number. As a general rule, the Rice algorithm is used as a solution to this problem. Rice encoding is a way of representing small numbers on a single line while still being able to distinguish them. Note: the smaller the numbers, the more efficient the algorithm will be, so you need to deal with this initially. At some stage in encoding, the data is represented as a number n. When encoded, it is added to the right of the string of already encoded numbers in such a way that the reverse process is possible. The basic idea is to represent the number n as n = q \u2217 2 k + r {\\ displaystyle n = q * 2 ^ {k} + r} so that 0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lossless audio compression Sound is a simple wave and digitized sound is a digital representation of that wave. This is accomplished by storing the level of the analog signal several times in one second. For example, on an ordinary CD, a signal is stored 44100 times per second. Since the CD works with stereo, we &hellip; <a href=\"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Lossless 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":[48176,27827,27828,27831,27829,31077,27834,27838,27839,27848,27826,27836,27844,41188,31078,27847,36910,27823,27824,45972,27820,31079,45973,27856,6822,31076,31075,31080,27738,45974,55193,45975,27846,27860,27861,27859,27862,27858,11659,27867],"class_list":["post-3698","post","type-post","status-publish","format-standard","hentry","category-audio-video","tag-can-airplay-stream-lossless-audio","tag-can-bluetooth-stream-lossless-audio","tag-can-iphone-play-lossless-audio","tag-can-you-record-lossless-audio","tag-can-you-stream-lossless-audio","tag-does-apple-music-have-lossless-audio","tag-does-lossless-audio-sound-better","tag-does-spotify-have-lossless-audio","tag-does-youtube-have-lossless-audio","tag-how-accurate-is-lossless-audio-checker","tag-how-big-are-lossless-audio-files","tag-how-does-lossless-audio-compression-work","tag-how-lossless-audio-works","tag-how-to-download-lossless-audio-from-youtube","tag-how-to-get-lossless-audio","tag-how-to-rip-lossless-audio-from-a-cd","tag-how-to-stream-lossless-audio","tag-is-lossless-audio-better","tag-is-lossless-audio-compression","tag-is-lossless-audio-good","tag-is-lossless-audio-worth-it","tag-is-spotify-lossless-audio","tag-is-vinyl-lossless-audio","tag-should-i-use-lossless-audio","tag-what-are-lossless-audio-formats","tag-what-does-lossless-audio","tag-what-does-lossless-audio-do","tag-what-is-lossless-audio-compression","tag-what-is-lossless-audio-format","tag-what-is-lossless-audio-on-iphone","tag-what-is-lossless-audio-streaming","tag-what-means-lossless-audio","tag-whats-lossless-audio","tag-where-to-buy-lossless-audio","tag-where-to-download-lossless-audio","tag-where-to-get-lossless-audio","tag-where-to-get-lossless-audio-files","tag-where-to-stream-lossless-audio","tag-which-lossless-audio-format-is-best","tag-who-streams-lossless-audio"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Lossless 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\/lossless-audio-compression-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Lossless audio compression - mp4gain.com\" \/>\n<meta property=\"og:description\" content=\"Lossless audio compression Sound is a simple wave and digitized sound is a digital representation of that wave. This is accomplished by storing the level of the analog signal several times in one second. For example, on an ordinary CD, a signal is stored 44100 times per second. Since the CD works with stereo, we &hellip; Continue reading &quot;Lossless audio compression&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/\" \/>\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=\"2021-05-10T15:54:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/routenote.com\/blog\/wp-content\/uploads\/2020\/09\/Lossless-and-Lossy-1280x720.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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/\"},\"author\":{\"name\":\"R. Arias\",\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/#\/schema\/person\/36ffddda9988e565bd4a9013324ce2cc\"},\"headline\":\"Lossless audio compression\",\"datePublished\":\"2021-05-10T15:54:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/\"},\"wordCount\":463,\"image\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/routenote.com\/blog\/wp-content\/uploads\/2020\/09\/Lossless-and-Lossy-1280x720.jpg\",\"keywords\":[\"can airplay stream lossless audio\",\"can bluetooth stream lossless audio\",\"can iphone play lossless audio\",\"can you record lossless audio\",\"can you stream lossless audio\",\"does apple music have lossless audio\",\"does lossless audio sound better\",\"does spotify have lossless audio\",\"does youtube have lossless audio\",\"how accurate is lossless audio checker\",\"how big are lossless audio files\",\"how does lossless audio compression work\",\"how lossless audio works\",\"how to download lossless audio from youtube\",\"how to get lossless audio\",\"how to rip lossless audio from a cd\",\"how to stream lossless audio\",\"is lossless audio better\",\"is lossless audio compression\",\"is lossless audio good\",\"is lossless audio worth it\",\"is spotify lossless audio\",\"is vinyl lossless audio\",\"should i use lossless audio\",\"what are lossless audio formats\",\"what does lossless audio\",\"what does lossless audio do\",\"what is lossless audio compression\",\"what is lossless audio format\",\"what is lossless audio on iphone\",\"what is lossless audio streaming\",\"what means lossless audio\",\"what's lossless audio\",\"where to buy lossless audio\",\"where to download lossless audio\",\"where to get lossless audio\",\"where to get lossless audio files\",\"where to stream lossless audio\",\"which lossless audio format is best\",\"who streams lossless audio\"],\"articleSection\":[\"Audio and video\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/\",\"url\":\"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/\",\"name\":\"Lossless audio compression - mp4gain.com\",\"isPartOf\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/routenote.com\/blog\/wp-content\/uploads\/2020\/09\/Lossless-and-Lossy-1280x720.jpg\",\"datePublished\":\"2021-05-10T15:54:36+00:00\",\"author\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/#\/schema\/person\/36ffddda9988e565bd4a9013324ce2cc\"},\"breadcrumb\":{\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/#primaryimage\",\"url\":\"https:\/\/routenote.com\/blog\/wp-content\/uploads\/2020\/09\/Lossless-and-Lossy-1280x720.jpg\",\"contentUrl\":\"https:\/\/routenote.com\/blog\/wp-content\/uploads\/2020\/09\/Lossless-and-Lossy-1280x720.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/mp4gain.com\/mp4gain\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Lossless 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":"Lossless 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\/lossless-audio-compression-2\/","og_locale":"en_US","og_type":"article","og_title":"Lossless audio compression - mp4gain.com","og_description":"Lossless audio compression Sound is a simple wave and digitized sound is a digital representation of that wave. This is accomplished by storing the level of the analog signal several times in one second. For example, on an ordinary CD, a signal is stored 44100 times per second. Since the CD works with stereo, we &hellip; Continue reading \"Lossless audio compression\"","og_url":"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/","og_site_name":"mp4gain.com","article_publisher":"https:\/\/www.facebook.com\/mp4gain","article_published_time":"2021-05-10T15:54:36+00:00","og_image":[{"url":"https:\/\/routenote.com\/blog\/wp-content\/uploads\/2020\/09\/Lossless-and-Lossy-1280x720.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":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/#article","isPartOf":{"@id":"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/"},"author":{"name":"R. Arias","@id":"https:\/\/mp4gain.com\/mp4gain\/#\/schema\/person\/36ffddda9988e565bd4a9013324ce2cc"},"headline":"Lossless audio compression","datePublished":"2021-05-10T15:54:36+00:00","mainEntityOfPage":{"@id":"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/"},"wordCount":463,"image":{"@id":"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/#primaryimage"},"thumbnailUrl":"https:\/\/routenote.com\/blog\/wp-content\/uploads\/2020\/09\/Lossless-and-Lossy-1280x720.jpg","keywords":["can airplay stream lossless audio","can bluetooth stream lossless audio","can iphone play lossless audio","can you record lossless audio","can you stream lossless audio","does apple music have lossless audio","does lossless audio sound better","does spotify have lossless audio","does youtube have lossless audio","how accurate is lossless audio checker","how big are lossless audio files","how does lossless audio compression work","how lossless audio works","how to download lossless audio from youtube","how to get lossless audio","how to rip lossless audio from a cd","how to stream lossless audio","is lossless audio better","is lossless audio compression","is lossless audio good","is lossless audio worth it","is spotify lossless audio","is vinyl lossless audio","should i use lossless audio","what are lossless audio formats","what does lossless audio","what does lossless audio do","what is lossless audio compression","what is lossless audio format","what is lossless audio on iphone","what is lossless audio streaming","what means lossless audio","what's lossless audio","where to buy lossless audio","where to download lossless audio","where to get lossless audio","where to get lossless audio files","where to stream lossless audio","which lossless audio format is best","who streams lossless audio"],"articleSection":["Audio and video"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/","url":"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/","name":"Lossless audio compression - mp4gain.com","isPartOf":{"@id":"https:\/\/mp4gain.com\/mp4gain\/#website"},"primaryImageOfPage":{"@id":"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/#primaryimage"},"image":{"@id":"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/#primaryimage"},"thumbnailUrl":"https:\/\/routenote.com\/blog\/wp-content\/uploads\/2020\/09\/Lossless-and-Lossy-1280x720.jpg","datePublished":"2021-05-10T15:54:36+00:00","author":{"@id":"https:\/\/mp4gain.com\/mp4gain\/#\/schema\/person\/36ffddda9988e565bd4a9013324ce2cc"},"breadcrumb":{"@id":"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/#primaryimage","url":"https:\/\/routenote.com\/blog\/wp-content\/uploads\/2020\/09\/Lossless-and-Lossy-1280x720.jpg","contentUrl":"https:\/\/routenote.com\/blog\/wp-content\/uploads\/2020\/09\/Lossless-and-Lossy-1280x720.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/mp4gain.com\/mp4gain\/lossless-audio-compression-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mp4gain.com\/mp4gain\/"},{"@type":"ListItem","position":2,"name":"Lossless 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\/3698","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=3698"}],"version-history":[{"count":0,"href":"https:\/\/mp4gain.com\/mp4gain\/wp-json\/wp\/v2\/posts\/3698\/revisions"}],"wp:attachment":[{"href":"https:\/\/mp4gain.com\/mp4gain\/wp-json\/wp\/v2\/media?parent=3698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mp4gain.com\/mp4gain\/wp-json\/wp\/v2\/categories?post=3698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mp4gain.com\/mp4gain\/wp-json\/wp\/v2\/tags?post=3698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}