[Bug 381358] Re: Corrupt files when converting from WAV to FLAC

2010-04-17 Thread woodyson
I have been getting what I think could be the same problem converting
WAV to FLAC.  In my case the WAV files have been produced by the
gramofile package.  I am using Ubuntu 9.04 and SoundConverter 1.4.1.
The FLAC files produced play OK in Quod Libet, but only about half the
tracks play when downloaded to my portable music player.  The bitstream,
as you say, is intact and I am using SoundConverter to convert the files
back to WAV and then using the command line "flac" utility to convert
back to FLAC.

The problems appear to be in the STREAMINFO block in the FLAC file (see
http://flac.sourceforge.net/format.html for block layout).  "metaflac
--list file.flac" shows that the FLAC files produced by SoundConverter
have various values for the number of channels, sample rate and the
number of bits per sample in the STREAMINFO block, and the values are
not derived from the WAV files which are all stereo (2 channels), 44100
Hz and 16 bits per sample.  I have found the best way to test if a FLAC
file is valid is to use "flac --test file.flac" and over 90% of the FLAC
files I have produced using Sound Converter come up with some error
relating to the STREAMINFO fields.

Example messages from flac --test with FLAC files I have produced using 
SoundConverter are:
Chant.flac: ERROR, channels is 2 in frame but 8 in STREAMINFO
l42a.flac: ERROR, channels is 2 in frame but 6 in STREAMINFO
Do.flac: ERROR: bits per sample is 32, must be 4-24
test1.flac: WARNING, cannot check MD5 signature since it was unset in the 
STREAMINFO
Tracks.flac: ERROR, sample rate is 44100 in frame but 44108 in STREAMINFO

A short example WAV file (recorded from an LP after the end of the last track) 
is attached.  The relevant part of output (after conversion by Sound Converter) 
from "metaflac --list test3.flac" is:
METADATA block #0
  type: 0 (STREAMINFO)
  is last: false
  length: 34
  minimum blocksize: 4608 samples
  maximum blocksize: 4608 samples
  minimum framesize: 2019 bytes
  maximum framesize: 5033 bytes
  sample_rate: 44100 Hz
  channels: 6
  bits-per-sample: 16
  total samples: 568891
  MD5 signature: 00f673e2ccbedc1f3b5287b69391f7aa


And output from "flac --test test3.flac" is:

flac 1.2.1, Copyright (C) 2000,2001,2002,2003,2004,2005,2006,2007  Josh Coalson
flac comes with ABSOLUTELY NO WARRANTY.  This is free software, and you are
welcome to redistribute it under certain conditions.  Type `flac' for details.

test3.flac: ERROR, channels is 2 in frame but 6 in STREAMINFO


test3.flac: ERROR while decoding data
state = FLAC__STREAM_DECODER_READ_FRAME

** Attachment added: "test3.wav"
   http://launchpadlibrarian.net/44601832/test3.wav

-- 
Corrupt files when converting from WAV to FLAC
https://bugs.launchpad.net/bugs/381358
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 200181] Re: after upgrade to 7.10 gramofile bring the followin failure /dev/dsp: invalid argument

2010-01-17 Thread woodyson
I also have the problem on Jaunty 9.04.  I downloaded the source and ran
make to re-build the package (with no changes to source code) and it
works fine.

-- 
after upgrade to 7.10 gramofile bring the followin failure /dev/dsp: invalid 
argument
https://bugs.launchpad.net/bugs/200181
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs