INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Why compress files?  (Read 4035 times)

jazzrome

  • Recent member
  • *
  • Posts: 27
Why compress files?
« on: September 13, 2014, 12:49:24 pm »

Looking at all the compress types and my question why compress audio files that have to be uncompressed on the fly to play. I can see in the past with the cost of hard drives but hard drive are dirt cheep now is there a real reason to compress the files now. I do not see a way to make a direct one to one copy of a CD unless I am burning it to a other CD and keep the meta data.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42373
  • Shoes gone again!
Re: Why compress files
« Reply #1 on: September 13, 2014, 01:24:08 pm »

Lossless compression offers data integrity checking and tagging.  Not to mention it saves half the space.
Logged
Matt Ashland, JRiver Media Center

BernhardS

  • World Citizen
  • ***
  • Posts: 213
Re: Why compress files
« Reply #2 on: September 13, 2014, 01:25:49 pm »

I think ripping with uncompressed wave encoder should be a one to one copy?
Logged
I will explain that whenever I want a thing, and Mrs. McWilliams wants another thing, and we decide upon the thing that Mrs. McWilliams wants—as we always do—she calls that a compromise

THE McWILLIAMSES AND THE BURGLAR ALARM  (Mark Twain)

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Why compress files
« Reply #3 on: September 13, 2014, 01:26:33 pm »

Lossless compression offers data integrity checking and tagging.  Not to mention it saves half the space.

+1

No downside, all upside.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

fauxfreshness

  • Recent member
  • *
  • Posts: 30
Re: Why compress files
« Reply #4 on: September 14, 2014, 09:01:43 am »

Looking at all the compress types and my question why compress audio files that have to be uncompressed on the fly to play. I can see in the past with the cost of hard drives but hard drive are dirt cheep now is there a real reason to compress the files now. I do not see a way to make a direct one to one copy of a CD unless I am burning it to a other CD and keep the meta data.

A couple things on this.  First, the CPU time and RAM used to decompress files on the fly can be countered by all the I/O required to play the continuous 1.4 Mbps stereo stream of 16-bit/44.1 kHz in WAV or AIFF.  Second, WAV tagging support is terrible at best across different applications and devices (I tag a lot for samples and DJ stuff) so you end up with AIFF which may not even have direct support on portable devices you would want to use.  Now, I use AIFF because of DJ/mixing and audio production applications, and it was how I ended up with the JRiver application to begin with a week or two ago.  LOL  But because of how stupid Android can get with AIFF files (no native support, but there are applications that will support it and chew up even more CPU time in the process) I decided to read a bit on FLAC.  I went with that since it is natively supported, and it's supposed to reconstruct the compressed data into the original source.  I also figured there's more chance of that getting support in high end car stereos I'm more likely to get, and it works fine at all the sample rates and bit depths I'm concerned with for now.  I still use AIFF, but that's just going to stay in a different location on my main system so I can drag and drop those files (while retaining the tagging) without going to Audacity or something and having tags get mangled or dropped.  I imagine a lot of these applications will support FLAC soon enough anyway...
Logged

Peter Engrav

  • Regular Member
  • Recent member
  • *
  • Posts: 35
  • nothing more to say...
Re: Why compress files
« Reply #5 on: September 14, 2014, 11:19:48 am »

I'm another big fan of lossless compression. I use FLAC with the following command line: --best --verify --replay-gain --padding=8188 --totally-silent. It's true that hard disk space seems to get cheaper and cheaper but IO (especially when it's wireless or internet) can still be dear. I've a feeling that if my Sonos players were throwing around 2x the data (I'm hand-waving and assuming that I get 50% compression) they do today I'd be getting a decent amount of glitching. And when I started trying copy music and books on tape over the internet to the PC in my parent's basement (my kids are (foolishly, on my part) addicted to listening to books while going to sleep) (or for that matter paying attention to how long Carbonite was taking to back everything up) I very much wished that some miracle could compress (losslessly) even further.
Logged

Vincent Kars

  • Citizen of the Universe
  • *****
  • Posts: 1154
Re: Why compress files
« Reply #6 on: September 14, 2014, 02:59:26 pm »

I can see in the past with the cost of hard drives but hard drive are dirt cheep now is there a real reason to compress the files now.

Even if we apply a factor of 3 (files, backup 1, backup 2) the cost of storage remains low.
I do think this a valid argument

I do not see a way to make a direct one to one copy of a CD unless I am burning it to a other CD and keep the meta data.

This one I don't understand.
A CD contains 2 channel audio with a 16 bit word and a 44.1 kHz sample rate.
If you rip it to WAV, FLAC or any other lossless format you have 2 ch 16/44.1 kHz audio.

As others pointed out, tagging WAV is a problem.
The WAV tagging standard is missing a couple of crucial tags like Album and Cover Art.
A lot of media players don't support this standard or only partial.
The moment you switch to another application, you might hit problems.

As our PCs most of the time don't have ECC memory, you might have some data rot.
FLAC at least allows you to verify (should be an option in JRiver :) )
Logged

astromo

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 2251
Re: Why compress files
« Reply #7 on: September 14, 2014, 04:15:09 pm »

This sort of thing comes up on a regular basis.

Some useful resources to provide thought food:
http://www.computeraudiophile.com/blogs/mitchco/flac-vs-wav-vs-mp3-vs-m4a-experiment-94/
http://www.computeraudiophile.com/blogs/mitchco/flac-vs-wav-part-2-final-results-155/
http://wiki.hydrogenaud.io/index.php?title=Lossless_comparison
http://www.audiograaf.nl/downloads.html

I opt for max compression (via FLAC but there are plenty of other workable compression formats) and set MC to play audio from memory.

In short, Matt and glynor's comment work for me:
Lossless compression offers data integrity checking and tagging.  Not to mention it saves half the space.
+1

No downside, all upside.
Logged
MC33, Win10 x64, HD-Plex H5 Gen2 Case, HD-Plex 400W Hi-Fi DC-ATX / AC-DC PSU, Gigabyte Z370 ULTRA Gaming 2.0 MoBo, Intel Core i7 8700 CPU, 4x8GB GSkill DDR4 RAM, Schiit Modi Multibit DAC, Freya Pre, Nelson Pass Aleph J DIY Clone, Ascension Timberwolf 8893BSRTL Speakers, BJC 5T00UP cables, DVB-T Tuner HDHR5-4DT

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72438
  • Where did I put my teeth?
Re: Why compress files
« Reply #8 on: September 15, 2014, 02:06:05 pm »

I've removed some off topic speculation about licensing and split a thread on OS support for FLAC.
Logged

jazzrome

  • Recent member
  • *
  • Posts: 27
Re: Why compress files?
« Reply #9 on: September 19, 2014, 03:40:41 pm »

Sorry Jim I got on my soapbox and got off topic. But to get back on track has anyone used lossless FLAC if so does MC support the files.
Logged

Hendrik

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10933
Re: Why compress files?
« Reply #10 on: September 19, 2014, 04:00:23 pm »

FLAC is perfectly supported in MC.
Logged
~ nevcairiel
~ Author of LAV Filters

jctcom

  • Citizen of the Universe
  • *****
  • Posts: 690
  • Rush - Styx - Yes - Porcupine Tree - Staple Food!
Re: Why compress files?
« Reply #11 on: September 20, 2014, 12:56:26 am »

I use about every type of FLAC (Stereo, 5.1, 24Bit, 48 / 96 / 192KHz, and all combinations thereof) with great success!.

Still have some pesky MP3's around that I just haven't had the chance to re-rip.  But my library for anything important is long since FLAC.

Carl.
Logged
Carl's Music: https://cloud.clz.com/jctcom/music
Carl's Movies: https://cloud.clz.com/jctcom/movies

Some of Carl's Equipment:  Yamaha RX-A2A, i7-11700K, 128GB, PCIe X4 2TB M.2 SSD, GTX-970, SMSL DL200

Vocalpoint

  • Citizen of the Universe
  • *****
  • Posts: 2007
Re: Why compress files?
« Reply #12 on: September 22, 2014, 09:50:45 am »

Sorry Jim I got on my soapbox and got off topic. But to get back on track has anyone used lossless FLAC if so does MC support the files.

100% FLAC here...6500 albums and counting. Would not have it any other way.

Cheers,

VP
Logged
Pages: [1]   Go Up