Mary Gardiner wrote:

> 2. Listen to the WAV files using any of the following tools:
>    - totem
>    - Squeezebox/Squeezecenter
>    - Rhythmbox
> 
>    All of them render about 1/4 second or so of white noise at the very
>    end of the playback. Further, this is preserved by "flac" when I
>    convert the WAV file to FLAC.

Most audio files have a header which contains file metadata like sample
rate, number of channels etc. WAV (and AIFF among others) also allow
metadata to be placed at the end of the file (I think its was a huge
mistake to allow this).

I suspect that totem and the others are incorrectly treating this
end-of-file metadata as audio data. Audacity (which uses libsndfile)
however does the right thing and displays only the audio data.

It you post the output of:

    sndfile-info <filename>

I can confirm this. sndfile-info is in the sndfile-programs package
in Debian derived distros.

> So I am out of ideas: does anyone know what the white noise is, why
> Audacity can't see it and thus let me edit it off but still renders it,
> or any tools that will allow me to produce FLAC files without a very
> annoying burst of static at the end?

Recent versions of sndfile-convert (>= 1.0.18 I think) will correctly
read the WAV file and create a flac file by doing:

   sndfile-convert a.wav a.flac.

HTH,
Erik
-- 
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to