I thought that an uncompressed FLAC file provides better sound quality than a compressed FLAC file. To Erik: How to grab the revision before this one https://git.xiph.org/?p=flac.git;a=commit;h=fc360735ce4d1aa88a94bfccdd3bea5bdd19a8d6? Regards, Maciej ----- Original Message ----- From: "Erik de Castro Lopo" <mle+la at mega-nerd.com> To: <flac-dev at xiph.org> Sent: Monday, December 02, 2013 9:52 AM Subject: [SPAM] Re: [flac-dev] Encode wav to uncompressed flac> Maciej M?czy?ski wrote: > >> File size is not important for me. I need audio data from wav file and >> metadata in one file. > > But FLAC is lossless! When you convert a WAV to FLAC, you get a file > where the decoded audio data is exactly the same as in the WAV file. > Why would you want a larger file that is exactly the same as the > compressed file? > > Anyway, like I hinted in my previous email, WAV files contain a single > contiguous block of audio data while FLAC contains multiple chunks of > audio data each with its own header. This is true even when the FLAC is > uncompressed. > >> How to encode a wav file to an uncompressed flac file? > > The flac command line parameters are here: > > > https://www.xiph.org/flac/documentation_tools_flac.html#encoding_options > > but I don't see a way if doing it with what's there. > > If you want to mess about with it you can check flac out of git and > grab the revision before this one: > > > https://git.xiph.org/?p=flac.git;a=commit;h=fc360735ce4d1aa88a94bfccdd3bea5bdd19a8d6 > > The versions before that commit do what you want. > > Erik > -- > ---------------------------------------------------------------------- > Erik de Castro Lopo > http://www.mega-nerd.com/ > _______________________________________________ > flac-dev mailing list > flac-dev at xiph.org > http://lists.xiph.org/mailman/listinfo/flac-dev >
Compressing any kind of data losslessly does not reduce its quality. This includes FLAC, zip files, or anything else. If you're really adamant about raw WAV files and metadata, foobar2000 has support for writing RIFF tags to a WAV file, allowing some tagging capability. On 12/2/2013 at 1:42 AM, "Maciej M?czy?ski" <maciejmacz at poczta.onet.pl> wrote:> >I thought that an uncompressed FLAC file provides better sound >quality than >a compressed FLAC file. > >To Erik: How to grab the revision before this one >https://git.xiph.org/?p=flac.git;a=commit;h=fc360735ce4d1aa88a94bfc >cdd3bea5bdd19a8d6? > >Regards, >Maciej > >----- Original Message ----- >From: "Erik de Castro Lopo" <mle+la at mega-nerd.com> >To: <flac-dev at xiph.org> >Sent: Monday, December 02, 2013 9:52 AM >Subject: [SPAM] Re: [flac-dev] Encode wav to uncompressed flac > > >> Maciej M?czy?ski wrote: >> >>> File size is not important for me. I need audio data from wav >file and >>> metadata in one file. >> >> But FLAC is lossless! When you convert a WAV to FLAC, you get a >file >> where the decoded audio data is exactly the same as in the WAV >file. >> Why would you want a larger file that is exactly the same as the >> compressed file? >> >> Anyway, like I hinted in my previous email, WAV files contain a >single >> contiguous block of audio data while FLAC contains multiple >chunks of >> audio data each with its own header. This is true even when the >FLAC is >> uncompressed. >> >>> How to encode a wav file to an uncompressed flac file? >> >> The flac command line parameters are here: >> >> >> >https://www.xiph.org/flac/documentation_tools_flac.html#encoding_op >tions >> >> but I don't see a way if doing it with what's there. >> >> If you want to mess about with it you can check flac out of git >and >> grab the revision before this one: >> >> >> >https://git.xiph.org/?p=flac.git;a=commit;h=fc360735ce4d1aa88a94bfc >cdd3bea5bdd19a8d6 >> >> The versions before that commit do what you want. >> >> Erik >> -- >> ----------------------------------------------------------------- >----- >> Erik de Castro Lopo >> http://www.mega-nerd.com/ >> _______________________________________________ >> flac-dev mailing list >> flac-dev at xiph.org >> http://lists.xiph.org/mailman/listinfo/flac-dev >> > >_______________________________________________ >flac-dev mailing list >flac-dev at xiph.org >http://lists.xiph.org/mailman/listinfo/flac-dev
There is no quality difference between FLAC variations - compressed or uncompressed (unless you force a 24-bit audio file into a 16-bit FLAC, but that may not even be possible). The only thing that varies with FLAC is the size of the file. There are many ways to store the same data, some more efficient than others. FLAC ensures that the exact same audio samples will reach your playback device, while merely using less disk space (or network bandwidth) to represent the same data. The whole point of FLAC is that it is lossless. WAV files allow metadata, too. BWF (Broadcast Wave File) requires even more metadata types than WAV. FLAC can preserve this metadata, but is perhaps not the most efficient way to store some metadata. What sorts of metadata do you need in the audio file? As for uncompressed, all audio file formats except RAW have some amount of overhead. With WAV, the overhead is somewhat fixed, although there can be any amount of extra chunks of data. With FLAC, if you force it to be uncompressed, the overhead is slightly larger due to the block structure. FLAC might be slightly more appropriate for streaming, because the blocks are largely independent, unlike WAV where metadata is not repeated more than once. Bottom line, as Erik has been saying, there is absolutely no reason not to use FLAC compression. There is nothing lost. Brian Willoughby Sound Consulting On Dec 2, 2013, at 01:42, Maciej M?czy?ski wrote:> I thought that an uncompressed FLAC file provides better sound > quality than > a compressed FLAC file.On Dec 2, 2013, at 00:08, Maciej M?czy?ski wrote:> File size is not important for me. I need audio data from wav file and > metadata in one file. How to encode a wav file to an uncompressed > flac file? > > Regards, > Maciej > > ----- Original Message ----- >> Maciej M?czy?ski wrote: >>> Is it possible to encode wav file to uncompressed flac file? >>
On 2013-12-02, at 10:52 , Brian Willoughby <brianw at sounds.wa.com> wrote:> There is no quality difference between FLAC variations - compressed > or uncompressed (unless you force a 24-bit audio file into a 16-bit > FLAC, but that may not even be possible).And even then, you wouldn?t be able to hear the difference anyway. As Monty noted time and again[0] 16 bit more than suffice for all of the human hearing range, and at playback (*not mastering*)> at least 24 bit depth doesn't harm fidelity. It just doesn?t > help, and also wastes space.[0] most rencently in http://xiph.org/~xiphmont/demo/neil-young.html#toc_1bv2b