dd if=$file ibs=1 count=$(($(stat --printf='%s' $file)-2)) of=$file.new

of course if you run this on one of the files that doesn't have the
extra 2 bytes
you're gonna lose something you didn't want to

On 11/1/07, Alex Brims <[EMAIL PROTECTED]> wrote:
> Ok, we actually worked this out - there were 2 extra bytes doing nothing at
> the end of the files.  Opening the file in SoundForge and saving it (without
> changing it) took off the extra bytes and allowed the file to convert to
> FLAC.
>
> Thanks to everyone who emailed me suggestions.
>
> Is there a decent program for linux that could automatically take these
> bytes off, without running the risk of removing good data?  Or is there a
> way to get the flac converter to ignore this error and create the file?  I'm
> running flac 1.2.1 on Red Hat Enterprise Linux ES release 4.
_______________________________________________
Flac mailing list
[email protected]
http://lists.xiph.org/mailman/listinfo/flac

Reply via email to