+ Reply to Thread
Page 1 of 19 12311 ... LastLast
Results 1 to 10 of 182

Thread: File-based audio playback - compressed vs. uncompressed

  1. #1
    Join Date: Apr 2011

    Location: Kingston, Surrey, UK

    Posts: 774
    I'm Alex.

    Default File-based audio playback - compressed vs. uncompressed

    Hi,

    Following on from the debate in another thread, I thought that it would be best to start a new thread on what is obviously an area in dispute.

    As more and more of us move to file-based playback solutions, I think that it would be useful to explore the anxiety about storage of audio files using FLAC containers (as opposed to WAV/AIFF files). For the record, all of my CD rips exist as FLAC files, encoded directly via dbPowerAmp. I have done some a/b testing between WAVs and FLACs without being able to hear a difference, and have compared WAV and FLAC streaming to the SB Touch without really being able to notice a consistent difference.

    My take on this issue is this:

    1) Some people claim that FLAC files sound different to the source WAV file
    2) Some futher claims that converting from WAV to FLAC and back to WAV again affects the sound, despite the files having identical checksums (i.e. every bit in them is the same). I cannot see how this could be possible.
    3) If there are audible differences, they are implementation issues with the playback software / audio driver stack / hardware, not the file format or data. If this is so we need to identify and fix the implementation issue not work around the problem (if it really exists).

    As choosing a storage format for your audio library is going to be pretty fraught if you believe that subtle degradation is going on at the data level, I think that this should be exploded once and for all and then we can all relax and get on with enjoying the music again.

    My view is that while the file is residing on a computer, i.e. not being played out, it is simply data, and can be packed or unpacked without changing at all. There is nothing special about audio data on a hard disk compared to any other type of data, and were this not so I wouldn't be able to be posting this now as data corruption would prevent my computer and the internet from working.

    Your uncompressed audio files are, in fact, already compressed by the hard drive controller before being stored as magnetic domains on the disk surface by run length limiting, and we seem to accept that there are no issues arising from that process.

    I read an interesting post by David Snyder on computeraudiophile.com, which I have reproduced below. I think it sums up the position well.


    Hello,

    At the heart of this debate over how the handling of digital music files (adding/altering metadata, transfer through email, and conversion among lossless formats, etc.) may have a residual impact on their sound lies each person's definitions for "data" and "music", and if there is a distinction, at what point the transformation occurs.

    If one believes that a WAV, AIFF or FLAC file fundamentally is music, then audiophile notions of how that music should handled can come into play. Music is intricate, fragile, and must be handled carefully to preserve as much detail from the original recording as possible. Transfer over wireless networks should be avoided. Before downloading from an on-line music store, be sure to use a high quality Ethernet cable of no more than 5m in length, directly connected between your PC and DSL router or cable modem for shortest signal path. Intel network cards are better at preserving mocrodynamics, but Broadcom NICs tend to deliver digital downloads with a larger soundstage. Save your downloads directly to a firewire or internal SATA hard drive (avoid USB and SSD because of higher noise levels). Downloads done late at night tend to have better sonic purity than downloads in the middle of the day due to less traffic on the network. Make sure that both your computer and your router are connected to a good power conditioner during the download and any subsequent transfer. Do not convert your downloads to other data formats...there's no such thing as lossless conversion or especially lossless compression! Do not attempt to add or correct the metadata since doing so can have a subtle but irreversible impact to the sound quality of your digital music files.

    Contrary to the view above, I personally believe that a WAV, AIFF, or FLAC digital music file is just data. It's not music or sound any more than a spreadsheet, expense report, or last year's tax return. All data files are nothing more more than sequences of bits: 1s and 0s. The contents of these data files only have meaning within the context of application software that can read and interpret them. While the physical properties of storage media and signal transfer can have an impact on the integrity of data, modern computer systems and data networks have mature and highly reliable ways of detecting errors and correcting them with bit-perfect accuracy within multiple technology or protocol layers below the application. In the rare event that an error can not be handled transparently, there are facilities to notify the application and user of the failure so that corruption does not occur unnoticed. While it's possible that low level corruption can escape detection, this is so rare that most computer audio systems will not be affected by it during their years of useful service.

    Since a digital music file is no different from any other data file on your computer, the same handling rules apply. You can make a copy of a copy of a copy of a copy of...a copy of a file one hundred times and the one hundredth copy of the file will be bit-for-bit identical to the original. There's no generation loss. It doesn't matter if you transfer/store files using wireless or wired networks, USB or firewire storage, SATA or SAS disks, CIFS or NFS network shares, Mac or PC hardware. The mechanisms for protecting data file integrity work the same regardless of the file extension, type or contents. If you find this not to be the case with your particular computer system, you should find out why and have it repaired.

    So, at what point does data become music? In a computer audio playback system, at what point in the playback chain does audiophile handling of the music come into play and actually matter? These are important questions. I believe that this transformation occurs when time is applied to the amplitude values in our data files. It's time, after all that makes sound (and therefore, music) possible.

    All of the bits in a music data file are frozen in time; they exist in whatever state they are in all at once and unchanging (unless something goes horribly wrong with the hardware). When those bits are interpreted as amplitude values and those values are associated with a uniform series of clock pulses in real time, at that instant the data begins its journey through our playback systems. It's at that instant (and not before) that handling of these delicate signals can have an impact on the sound that eventually reaches our ears.

    While the signal is still in its digital form, jitter, or tiny variations in the timing of the clock pulses can have a significant impact on sound. Computer audiophiles use high end USB to S/PDIF converters with ultra high quality clocks, DACs with buffering and re-sampling, audiophile USB and S/PDIF cables, and all sorts of other techniques to minimize jitter before the amplitude and timing information reach the DAC chips. Once the signal leaves the DAC, at least the same level of care is taken to preserve the music in its analog electrical form until it reaches our loudspeakers. At that point, the signal becomes acoustic energy and so acoustic treatment and design become important.

    At all steps in the signal path past the point at which time is applied to to the data, audio engineering approaches to signal transmission and handling come into play. Prior to that point, computer science and best practices that apply to data integrity are all that one must concern themselves with in the world of computer audio.

    I went over a lot of details here which I hopefully got right. I'm confident that any mistakes will be corrected by folks on this forum in short order and for everyone's benefit, including mine! My purpose in all of this (including the tedious exercise, which I hope you took part in as well) has been to hopefully dispel the notion that modern computer systems are incapable of reliably handing music data files without introducing minute levels of corruption or degradation. If it were true (or commonly accepted as true), this notion would be damaging to the growth of the computer audio industry. Audiophiles who do not currently purchase high resolution digital files or USB DACs may not be willing to even give them a try if they believe that computers can't be trusted to handle these files without loosing bits here and there. Thankfully, computers seem handle data just fine, so let's give the all clear get back to listening and enjoying music.

    -- David

    Let the debate begin.

    Regards,
    Alex
    Technics SL1210| Jelco SA-750| Benz Micro ACE SM MC| Squeezebox Touch/MCRU linear PSU | Cambridge Audio 851C | High Resolution Music Streamer II+ / Linestreamer+ | Raspberry Pi 2/IQ-Audio DAC+ / Max2Play | Conrad-Johnson ET3 Control Amplifier| Conrad-Johnson LP125sa KT120 Power Amplifier| Avalon NP Evo 2.0 Speakers| Cardas Audio Quadlink-5C Speaker Cables and Interconnects| Finite Elemente Pagode Signature E-14 equipment support

  2. #2
    Join Date: Feb 2008

    Location: http://www.homehifi.co.uk

    Posts: 6,289

    Default

    Quote Originally Posted by AlexM View Post

    My take on this issue is this:

    1) Some people claim that FLAC files sound different to the source WAV file
    I have to take issue with you on your "take".
    What you should be writing is how you see it from your perspective. So your sentence should in reality be:

    1. Some people claim that there is no sound difference between FLAC and the source WAV file.

    By penning it down the way you did, you are automatically giving the impression that your point of view is correct, and the opposing views are claims that should be debunked. Now, obviously that is what is in dispute.

    What we do know is that the theory behind FLAC states that there are no losses, whilst the experience of many do not support the theory.

  3. #3
    Join Date: Aug 2011

    Location: Bacau, Romania

    Posts: 1,215
    I'm Bob.

    Default

    Quote Originally Posted by AlexM View Post
    While the signal is still in its digital form, jitter, or tiny variations in the timing of the clock pulses can have a significant impact on sound. Computer audiophiles use high end USB to S/PDIF converters with ultra high quality clocks, DACs with buffering and re-sampling, audiophile USB and S/PDIF cables, and all sorts of other techniques to minimize jitter before the amplitude and timing information reach the DAC chips. Once the signal leaves the DAC, at least the same level of care is taken to preserve the music in its analog electrical form until it reaches our loudspeakers. At that point, the signal becomes acoustic energy and so acoustic treatment and design become important.

    At all steps in the signal path past the point at which time is applied to to the data, audio engineering approaches to signal transmission and handling come into play. Prior to that point, computer science and best practices that apply to data integrity are all that one must concern themselves with in the world of computer audio.
    Thank you for taking the initiative Alex, hopefully this will confine the debate rather than continue random asides, and facilitate reasonable and productive discussion.
    OK, perhaps a little too optimistic....
    Ah, I see, perhaps not...

    Whereas I agree with the article which is logically examined, I have trouble with where precisely timing comes into the process?

  4. #4
    Join Date: Apr 2011

    Location: Kingston, Surrey, UK

    Posts: 774
    I'm Alex.

    Default

    Quote Originally Posted by StanleyB View Post
    I have to take issue with you on your "take".
    What you should be writing is how you see it from your perspective. So your sentence should in reality be:

    1. Some people claim that there is no sound difference between FLAC and the source WAV file.

    By penning it down the way you did, you are automatically giving the impression that your point of view is correct, and the opposing views are claims that should be debunked. Now, obviously that is what is in dispute.

    What we do know is that the theory behind FLAC states that there are no losses, whilst the experience of many do not support the theory.
    Stan,

    OK, yes I take your point. I have my view, but I have no real issue with putting this either way as I am actually open to the possibility that they are audibly different.

    The question is why (if this is so)?. I contend that it isn't because data is lost during compression into or out of FLAC containers. I think we need some other hypothesis to move this forward.

    Regards,
    Alex
    Technics SL1210| Jelco SA-750| Benz Micro ACE SM MC| Squeezebox Touch/MCRU linear PSU | Cambridge Audio 851C | High Resolution Music Streamer II+ / Linestreamer+ | Raspberry Pi 2/IQ-Audio DAC+ / Max2Play | Conrad-Johnson ET3 Control Amplifier| Conrad-Johnson LP125sa KT120 Power Amplifier| Avalon NP Evo 2.0 Speakers| Cardas Audio Quadlink-5C Speaker Cables and Interconnects| Finite Elemente Pagode Signature E-14 equipment support

  5. #5
    Join Date: Aug 2010

    Location: Montseny National Park, Catalonia

    Posts: 3,254
    I'm John.

    Default

    You lot make I larf.
    The very notion that your going to "explode" any audio myth on an internet forum is as delusional as many of the claims made by the hard core subjectivists.

    I'll let you lot exercise your keyboard warrior skills and go do something more useful and more entertaining.
    Single spur balanced Mains. Self built music server with 3 seperate linear PSU, Intel i5, 16 GB RAM no hard drive (various Linux OS). Benchmark Dac2 HGC, single ended XLR interconnects/Belkin cable. Exposure 21RC Pre, Super 18 Power (recap & modified). Modded World Audio HD83 HP amp. Hand built Monitors with external crossovers , Volt 250 bass & ABR, Scanspeak 13M8621 Mid & Scanspeak D2905/9300 Hi. HD595 & Beyer 880 (600 ohm) cans.

    The whole problem with the world is that fools and fanatics are always so certain of themselves, and wiser people so full of doubts.
    -Bertrand Russel

    John.

  6. #6
    Join Date: Aug 2011

    Location: Bacau, Romania

    Posts: 1,215
    I'm Bob.

    Default

    Quote Originally Posted by StanleyB View Post
    That's a bit rich from you to say the least .
    Opinions and experiences are two different things. I speak from personal experience with regards to FLAC, and so do many others. Those that offer the opinion that there is no data lost in FLAC are not speaking from experience, but have the foundation of their argument embedded in what they have read somewhere on the net or a magazine.
    Having seen the issue over FLAC v WAV playing surface on a few occasions on the forum, I did wonder whether the effects would be noticed, so tried a few experiments using WAV and FLAC conversions, and could find no noticeable effects.
    With the possibility that this was due to my kit being of inadequate reolution, I went so far as to enlist the aid of a local lad (Music Professional) whose equipment is exemplary, and the same tests run. Same result, no difference.
    For several hours, we tried, converting other albums and tracks, changing DACs, and even setting up his laptop to see if it was machine related, all to no avail.

    From those experiments, my experience gave rise to my opinion that I was searching for something that I could not find.

    My conclusion had to be that the player itself could be the only cause for the difference noted elsewhere, where decompaction of the FLAC took place.

  7. #7
    Join Date: Mar 2008

    Location: Galashiels

    Posts: 14,031
    I'm inthescottishmafia.

    Default

    Did you try FLAC's of the same track with different compression levels?

  8. #8
    Join Date: Aug 2011

    Location: Bacau, Romania

    Posts: 1,215
    I'm Bob.

    Default

    Quote Originally Posted by StanleyB View Post
    Get a better system .
    As above, you will note I took the precaution of not relying on my own fallabilities..

  9. #9
    Join Date: Aug 2011

    Location: Bacau, Romania

    Posts: 1,215
    I'm Bob.

    Default

    Quote Originally Posted by Ali Tait View Post
    Did you try FLAC's of the same track with different compression levels?
    No Ali, I cannot in all honesty say what that level that was otherr than I THINK it was a default.

    Same album used, then a few others converted on the second test, mainly as these were intimately known by their owner.
    Last edited by bobbasrah; 30-01-2012 at 11:44. Reason: Album reference

  10. #10
    Join Date: Feb 2008

    Location: http://www.homehifi.co.uk

    Posts: 6,289

    Default

    Quote Originally Posted by bobbasrah View Post

    From those experiments, my experience gave rise to my opinion that I was searching for something that I could not find.

    My conclusion had to be that the player itself could be the only cause for the difference noted elsewhere, where decompaction of the FLAC took place.
    Since the decoding takes place in your computer, have you considered that to be the source of the problem?

+ Reply to Thread
Page 1 of 19 12311 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •