rosegarden-devel

DMM:
> rg-20051223-220211-7.wav: ERROR: unsupported compression type 3
The error messages are unhelpful, but this appears
to be flac failing to understand the 32-bit audio files
we now write as default. A simple workaround is to
switch back to writing 16-bit audio (in the sequencer
settings of RG)... but I wonder what a proper fix is?
Chris

> It looks like it only supports compression code 1.
> Whatever the hell that means.
I'm not sure why "compression code" - I think this is
just the WAV format subtype where 1 is 16-bit PCM
and 3 is IEEE floating point. But that's from my
usually unreliable memory.
> Is there some way to write files with compression
> code 1 instead of 3?
I think that's just what a 16-bit WAV file is. (The
complaint here is about the input file to FLAC, which is
uncompressed WAV - hence why "compression code" is
weird and confusing.)
> I guess this is pretty much a show-stopper though.
Sounds like the packager will either need an
intermediate step of converting to 16-bit (tedious and
would need a warning dialog) or will need to not use
FLAC on 32-bit files... or will need a 32-bit capable
FLAC encoder, assuming the format supports it
internally. What a pain. I'm not in a position to
research this at the moment though, there may be a
simple fix besides switching RG back to 16-bit output.
> The brilliant idea to use /tmp as a dumping ground,
> and then package up the good files
Well, I can understand why you wanted to do that,
but to be honest I don't think saving your work in a
directory guaranteed to be lost on a crash is a very
good idea whatever. (If you don't actually want the
particular properties of /tmp, why save there?
You could always create ~/scratch/ or something.) I don't think RG can be blamed for that part.
It does make the packager really useless though.
Chris

On Monday 26 December 2005 05:45 am, you wrote:
> The error messages are unhelpful, but this appears
> to be flac failing to understand the 32-bit audio files
> we now write as default. A simple workaround is to
> switch back to writing 16-bit audio (in the sequencer
> settings of RG)... but I wonder what a proper fix is?
/* compression code */
if(!read_little_endian_uint16(infile, &x, false,
encoder_session.inbasefilename))
return
EncoderSession_finish_error(&encoder_session);
if(x != 1) {
flac__utils_printf(stderr, 1, "%s: ERROR:
unsupported compression type %u\n", encoder_session.inbasefilename,
(unsigned)x);
return
EncoderSession_finish_error(&encoder_session);
}
It looks like it only supports compression code 1. Whatever the hell that
means. Is there some way to write files with compression code 1 instead of
3? I'm sure I don't know.
I guess this is pretty much a show-stopper though. The packager is useless in
this state, and this kind of uselessness leads to lost projects. The project
I was working on when I discovered this has now evaporated, if I didn't
mention that already. The brilliant idea to use /tmp as a dumping ground,
and then package up the good files, well, it proved to be a bad plan when we
got a longer power outage than my UPS battery, and /tmp got hosed on my next
boot. Damn. Merry Christmas from Rosegarden the Destroyer.
I sure do have a way of finding these things at the most
creativity-incompatible moments. :(
--
D. Michael 'Silvan' McIntyre ---- Silvan <dmmcintyr@...>
Linux fanatic, and certified Geek; registered Linux user #243621
Author of Rosegarden Companion http://rosegarden.sourceforge.net/tutorial/