Audio Banter

Audio Banter (https://www.audiobanter.co.uk/forum.php)
-   uk.rec.audio (General Audio and Hi-Fi) (https://www.audiobanter.co.uk/uk-rec-audio-general-audio/)
-   -   FLAC v WAV (https://www.audiobanter.co.uk/uk-rec-audio-general-audio/8820-flac-v-wav.html)

tony sayer June 5th 14 09:52 PM

FLAC v WAV
 
In article , Richard
Kimber scribeth thus
On Mon, 02 Jun 2014 23:35:43 +0100, Glenn Richards wrote:

A well-known hi-fi magazine recently ran an article about how apparently
an uncompressed WAV file sounds better than FLAC.

Ummmm...

*facepalm*


I was puzzled by this too, so I listened to a file in both formats, using
sox to produce a wav from the flac.

Initially, the wav did sound a little better - until I realised that the
volume of the wav was slightly louder. Once I'd compensated by putting
up the volume a notch on my Quad pre-amp when I played the flac, I
couldn't tell any difference.

- Richard.




Log onto this page for the Wolfson audio card for the Raspberry Pi PC
and theres a section marked download HD audio around 550 M/bytes.


These tracks are FLAC encoded, what do you think of them?..



http://www.element14.com/community/c.../raspberry-pi-
accessories/wolfson_pi?ICID=rpispace-wolfson-sideban
--
Tony Sayer



Johny B Good[_2_] June 6th 14 12:30 AM

FLAC v WAV
 
On Thu, 05 Jun 2014 15:53:24 -0500, Richard Kimber
wrote:

On Mon, 02 Jun 2014 23:35:43 +0100, Glenn Richards wrote:

A well-known hi-fi magazine recently ran an article about how apparently
an uncompressed WAV file sounds better than FLAC.

Ummmm...

*facepalm*


I was puzzled by this too, so I listened to a file in both formats, using
sox to produce a wav from the flac.

Initially, the wav did sound a little better - until I realised that the
volume of the wav was slightly louder. Once I'd compensated by putting
up the volume a notch on my Quad pre-amp when I played the flac, I
couldn't tell any difference.

- Richard.


Assuming you can playout the flac to a wav file, you can compare the
original wav file against the flac encoded one using an audio
processing utility such as audacity or CoolEdit Pro by lining them up
exactly, normalising and then subtract one from the other. If flac
fails to losslessly do its magic, you'll hear something as opposed to
the expected dead silence.

IOW, it should be easy enough to verify the "Bollicks Factor" in that
article. :-)
--
J B Good

Jim Lesurf[_2_] June 6th 14 11:11 AM

FLAC v WAV
 
In article , Richard
Kimber
wrote:
On Mon, 02 Jun 2014 23:35:43 +0100, Glenn Richards wrote:


A well-known hi-fi magazine recently ran an article about how
apparently an uncompressed WAV file sounds better than FLAC.

Ummmm...

*facepalm*


I was puzzled by this too, so I listened to a file in both formats,
using sox to produce a wav from the flac.


Initially, the wav did sound a little better - until I realised that the
volume of the wav was slightly louder.


What's curious about that is that sox should convert with no changes in the
values when 'reconstituted' back into LPCM. So either you'd added a scaling
or the player was up to something akin to the problem I reported.

Did you just use something as simple as

sox in.wav out.flac

to do the conversion?

And what playing software did you use?

Jim

--
Please use the address on the audiomisc page if you wish to email me.
Electronics http://www.st-and.ac.uk/~www_pa/Scot...o/electron.htm
Armstrong Audio http://www.audiomisc.co.uk/Armstrong/armstrong.html
Audio Misc http://www.audiomisc.co.uk/index.html


Richard Kimber June 6th 14 01:12 PM

FLAC v WAV
 
On Fri, 06 Jun 2014 12:11:02 +0100, Jim Lesurf wrote:

What's curious about that is that sox should convert with no changes in
the values when 'reconstituted' back into LPCM. So either you'd added a
scaling or the player was up to something akin to the problem I
reported.

Did you just use something as simple as

sox in.wav out.flac

to do the conversion?


It was quite a long time ago (when I first saw reference to this in HFN),
but as far as I can remember, yes that's what I did.

And what playing software did you use?


I streamed the files to a Pioneer N-50 using minidlna using a wired
connection.

- Richard.

Jim Lesurf[_2_] June 6th 14 02:06 PM

FLAC v WAV
 
In article , Richard
Kimber
wrote:
On Fri, 06 Jun 2014 12:11:02 +0100, Jim Lesurf wrote:


What's curious about that is that sox should convert with no changes
in the values when 'reconstituted' back into LPCM. So either you'd
added a scaling or the player was up to something akin to the problem
I reported.

Did you just use something as simple as

sox in.wav out.flac

to do the conversion?


It was quite a long time ago (when I first saw reference to this in
HFN), but as far as I can remember, yes that's what I did.


And what playing software did you use?


I streamed the files to a Pioneer N-50 using minidlna using a wired
connection.


I don't have any experience with 'streamers' of that kind. I just play or
record on the basis that the player or recorder read or write the file.
Given that I *assume* the flac file is read by the N-50 and that's what
turns it into LPCM or whatever to output the eventual analogue signals. On
that basis it looks like the N-50 is scaling flac and wave differently.

This may be quite understandable as the device doing the conversion may
simply scale values in some way for some reason - e.g. shy of clipping
during the format conversion processing - which then means the outcome
differs from the LPCM that the flac file data represented. As I guess
you'll know, *correctly done*, wave - flac - should give a result
identical to the original. Alas, 'should' may not mean 'does' in all cases
with real devices, programs, etc. :-/

So it does look like an example of where a setup might cause an 'innocent'
reviewer would say "wave is better than flac" as a general conclusion
rather than "slightly louder sounded better" because they didn't check.

I've also lost count of reviewers saying 'DSD sounds better than LPCM' even
for the same source, and when many ADCs and DACs may use low bit
(essentially DSD) anyway. Such confusions between container and contained
are rife, alas. No help to the poor readers.

Jim


Jim

--
Please use the address on the audiomisc page if you wish to email me.
Electronics http://www.st-and.ac.uk/~www_pa/Scot...o/electron.htm
Armstrong Audio http://www.audiomisc.co.uk/Armstrong/armstrong.html
Audio Misc http://www.audiomisc.co.uk/index.html


Richard Kimber June 6th 14 08:10 PM

FLAC v WAV
 
On Fri, 06 Jun 2014 15:06:06 +0100, Jim Lesurf wrote:

I don't have any experience with 'streamers' of that kind. I just play
or record on the basis that the player or recorder read or write the
file. Given that I *assume* the flac file is read by the N-50 and that's
what turns it into LPCM or whatever to output the eventual analogue
signals. On that basis it looks like the N-50 is scaling flac and wave
differently.


Well, you could be right about that. FWIW, I have to set *very*
different volume levels when I'm playing internet radio via the N-50
compared to streaming from the hard disk via minidlna.

On a completely different matter, I note that you put streamers in
quotes. I've always thought that using a dlna server was 'streaming' and
that doing anything else was 'playing'. Am I right that there's been a
takeover of the term 'streaming' by the wider community that does not use
dlna? IMHO Software players 'play'. But, then, nowadays, nothing seems
to matter :-)

- Richard.

Jim Lesurf[_2_] June 7th 14 08:39 AM

FLAC v WAV
 
In article , Richard
Kimber
wrote:
On Fri, 06 Jun 2014 15:06:06 +0100, Jim Lesurf wrote:



On a completely different matter, I note that you put streamers in
quotes. I've always thought that using a dlna server was 'streaming'
and that doing anything else was 'playing'. Am I right that there's
been a takeover of the term 'streaming' by the wider community that
does not use dlna? IMHO Software players 'play'. But, then, nowadays,
nothing seems to matter :-)


I confess I've become quite confused by the ways people have started to use
the terms 'streamer' and 'streaming'. I have the feeling that hifi mags,
etc have started using the terms for more than one thing without making a
distinction.

I use the old fashioned approach that I have something like a set of wave
or flac files stored on a device, and then a program 'plays' a file. I
don't think of that as 'streaming' even if the data is being fetched from
one machine as a program on another is playing it. Or if it is being played
from a NAS.

I *suspect* the key distinction is that I'm using a computer to run a
program to play a file and then send the output to a DAC. Whereas
'streamer' may be a device that isn't a general purpose computer. But a
device that provides its own user interface, and reads files for itself,
playing them out via its own DAC.

For me the advantage of the 'run you chosen software on your chosen
computer' is flexibility. e,g, On the PandaBoard I'm writing this email
using, I wrote my own simple wave file player to play wave files out to a
USB DAC. Yesterday I was playing a wave file I have on a NAS that way,
using SunFish and NFS. Is this 'streaming'? At present I wouldn't say it
was. But I may be conditioned by the *nix 'everything is a file' mindset.
:-)

But I'd be interested to see what definitions/distinctions others give of
this. TBH I'm not even clear what the details of things like dlna *are*
except beyond assuming they require some standards so the device can find
and identify what it can play.

The above has files in mind. Whereas 'streaming' could be applied to
situations where the source is 'stream' in the sense that there is no
predefined 'file' of a set size, name, etc. But a sequence of data from a
chosen source address.

Comments?

Jim

--
Please use the address on the audiomisc page if you wish to email me.
Electronics http://www.st-and.ac.uk/~www_pa/Scot...o/electron.htm
Armstrong Audio http://www.audiomisc.co.uk/Armstrong/armstrong.html
Audio Misc http://www.audiomisc.co.uk/index.html


Johny B Good[_2_] June 7th 14 02:02 PM

FLAC v WAV
 
On Sat, 07 Jun 2014 09:39:32 +0100, Jim Lesurf
wrote:

In article , Richard
Kimber
wrote:
On Fri, 06 Jun 2014 15:06:06 +0100, Jim Lesurf wrote:



On a completely different matter, I note that you put streamers in
quotes. I've always thought that using a dlna server was 'streaming'
and that doing anything else was 'playing'. Am I right that there's
been a takeover of the term 'streaming' by the wider community that
does not use dlna? IMHO Software players 'play'. But, then, nowadays,
nothing seems to matter :-)


I confess I've become quite confused by the ways people have started to use
the terms 'streamer' and 'streaming'. I have the feeling that hifi mags,
etc have started using the terms for more than one thing without making a
distinction.

I use the old fashioned approach that I have something like a set of wave
or flac files stored on a device, and then a program 'plays' a file. I
don't think of that as 'streaming' even if the data is being fetched from
one machine as a program on another is playing it. Or if it is being played
from a NAS.

I *suspect* the key distinction is that I'm using a computer to run a
program to play a file and then send the output to a DAC. Whereas
'streamer' may be a device that isn't a general purpose computer. But a
device that provides its own user interface, and reads files for itself,
playing them out via its own DAC.

For me the advantage of the 'run you chosen software on your chosen
computer' is flexibility. e,g, On the PandaBoard I'm writing this email
using, I wrote my own simple wave file player to play wave files out to a
USB DAC. Yesterday I was playing a wave file I have on a NAS that way,
using SunFish and NFS. Is this 'streaming'? At present I wouldn't say it
was. But I may be conditioned by the *nix 'everything is a file' mindset.
:-)

But I'd be interested to see what definitions/distinctions others give of
this. TBH I'm not even clear what the details of things like dlna *are*
except beyond assuming they require some standards so the device can find
and identify what it can play.

The above has files in mind. Whereas 'streaming' could be applied to
situations where the source is 'stream' in the sense that there is no
predefined 'file' of a set size, name, etc. But a sequence of data from a
chosen source address.

Comments?


A "Streaming server" is one that provides a download at a rate that
matches consumption for 'playback' purposes (with a modicum of
buffering to guard against congestion/contention induced 'dropouts').

At least, that's _my_ understanding of the distinction between
dowloading / torrenting a 1 hour movie in a matter of minutes and
watching the 'stream' direct. AFAICS, other than that distinction,
they're both downloading processes.

The big advantage of streaming a media file over downloading one for
later consumption is that you can terminate (or even pause) the stream
at will, saving bandwidth consumption.

If, for instance, it turned out that you got bored with the streamed
movie or realised it was one you'd already seen before after just a
few minutes of watching it, you could terminate the stream and save
the server and the network links the burden of sending the whole movie
file.

As an example of this difference, I aquired some 54 episodes of the
Goon Show several years ago by redirecting winamp's output to a large
wav file over a 24 hour period from an internet radio station. The
stream was 64Kbps mono mp3 and the wav file grew to in excess of 7GB
(16 bit 44.1Ksps stereo).

After splitting the file into 2 sub 4GB parts (CoolEdit Pro wouldn't
handle bigger files), I was able to slice and dice the giant wav files
into seperate episodes, discovering that the 24 hours had actually
been enough to capture the full 54 episodes being looped by the
internet radio station.

Once I had my episodes, I converted them back into 64Kbps mono mp3
files creating a collection that occupied some 662MB of disk space. At
that time, I had a 10Mbps cable downlink service from NTL/Telewest
which, in theory, would have allowed me to collect the whole lot in a
matter of 11 or so minutes downloading time[1] as opposed to the 1440
minutes or so streaming time it actually took.

What that meant was I consumed less than 1% of the bandwidth I had
available to listen to the 'stream' live versus using up a maximum of
10Mbps if I could have found a server obliging enough[2] to match my
D/L speed with the exact same content.

[1] I swiftly discovered, after upgrading from the 4Mbps service, how
few servers on the internet could match my D/L speed. It was very rare
indeed to achieve a CD's worth in less than 12 minutes. Only a couple
of notable exceptions stick in my mind, Microsoft and Nvidia's driver
downloads sites.

[2] As noted, a very rare event. However, with VM's never ending 'free
speed upgrades', it seems I'm still ahead of the curve in overall
speed of the internet in general despite being on the slowest offering
short of falling back to a 'retentions' service.

Back in the days of 150Kbps - 4Mbps, when I first tried P2P file
sharing networks (notably torrents), I wasn't too impressed with the
download speeds compared to a direct download from a decent server.

Perhaps it was the quality of the client software I was using
(probably compounded by my lack of experience in setting such software
up) but the situation is somewhat reversed today. A lot of my torrent
downloads will match my self imposed 2MB/s (that's ~20Mbps) limit,
often exceeding direct downloads by a considerable margin.

I only discovered "The Joys of Torrenting" after a few years break in
trying to use torrent clients on the desktop PC when I decided to make
use of the Transmission Client service on the FreeNAS/NAS4Free server
(a no-brainer place to run such software) two or three years ago.

I'm not one of those folk who keep the torrent client active
regardless of use so I usually have the service disabled most of the
time, only starting it up when I get a hankering to collect another
bunch of 'large files'. :-)
--
J B Good

RJH[_4_] June 7th 14 07:17 PM

FLAC v WAV
 
On 07/06/2014 09:39, Jim Lesurf wrote:
In article , Richard
Kimber
wrote:
On Fri, 06 Jun 2014 15:06:06 +0100, Jim Lesurf wrote:



On a completely different matter, I note that you put streamers in
quotes. I've always thought that using a dlna server was 'streaming'
and that doing anything else was 'playing'. Am I right that there's
been a takeover of the term 'streaming' by the wider community that
does not use dlna? IMHO Software players 'play'. But, then, nowadays,
nothing seems to matter :-)



I'd have thought Youtube (etc) is an example of streaming, so DLNA not
required.

I confess I've become quite confused by the ways people have started to use
the terms 'streamer' and 'streaming'. I have the feeling that hifi mags,
etc have started using the terms for more than one thing without making a
distinction.


FWIW, I've always taken 'streaming' as the process of delivery (of data)
from one place to another, delivered by the owner (etc) and accessible
to authorised recipients.

Confusion can build because a lot of hardware can become involved, perhaps?

Don't think it's much more than that!

--
Cheers, Rob

Jim Lesurf[_2_] June 8th 14 08:44 AM

FLAC v WAV
 
In article , Bob Latham
wrote:
In article , Jim Lesurf
wrote:
[snip]


Oh this is interesting.


I store flac files on a Synology NAS and then use a Sonos box (under
iPad control) to pull the data across the network and play it with spdif
into my pre-amp.


Now my definition of streaming which I assume is wrong, is that chunks
of the file is pulled or pushed just before it is needed with the
minimum amount of data stored at the player, just enough to overcome
blips on the data stream.


So I do consider what I do to be streaming.


From my POV I have a program I've written myself as an example I can use to
illusrate.

The program reads a wave file and shovels data from it to a USB DAC. First
it reads the header of the file so it finds the sample rate, etc. It then
sends to the DAC the value of the sample rate at which to operate.

Then it proceeds by grabbing successive 1-sec 'blocks' of data from the
file and dumping them into an output buffer.

The DAC reads samples from this buffer at a rate the *DAC* now controls. It
reads at regular intervals, each time taking a few samples to allow it to
play at the rate required. Once this buffer-full has been read, this is
detected and the program - which has loaded another buffer-worth ready -
gives that via the buffer.

In effect the software in the computer is just shuffling blocks of data,
and doing each new block when the DAC says it wants it.

This works either from a local hard disc, or something like a NAS or device
like a USB memory stick, say. In each case a filing system makes the file
available to be read.

I *guess* that a 'streamer' is an all-in-one chunk of hardware that
provides its own ability to access files, let the user choose one, and play
it via its own DAC. Thus saving the user the bother of having a computer
run a program to do the job. But I've only deduced this by reading what
people say.

What I don't understand and would love to is, what the blazes is the
point of dlna for audio streaming? What I do does not use dlna at all,
the Sonos just opens the file and pulls data from the NAS using good old
SMB, no dlna server needed or running. It works just fine. What does
dlna do that this doesn't?


I'm also curious about the role and point of dlna.

Jim

--
Please use the address on the audiomisc page if you wish to email me.
Electronics http://www.st-and.ac.uk/~www_pa/Scot...o/electron.htm
Armstrong Audio http://www.audiomisc.co.uk/Armstrong/armstrong.html
Audio Misc http://www.audiomisc.co.uk/index.html



All times are GMT. The time now is 02:25 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0
Copyright ©2004-2006 AudioBanter.co.uk