tuffy / python-audio-tools

A collection of audio handling programs which work from the command line.
http://audiotools.sourceforge.net
GNU General Public License v2.0
249 stars 58 forks source link

"Error: read error during encoding" during wav to flac conversion #65

Open jbd opened 8 years ago

jbd commented 8 years ago

Hello, I've just bought this in 24-bit wav: http://www.erasedtapes.com/store/index/ERATP062

When I try to convert on track using track2track, I've got this error :

$ track2track -V debug -t flac -j 1 --format="%(basename)s.flac" 01\ Lit.wav
*** Error: read error during encoding

When I try to convert it using the flac binary, it works with some warnings :

$ flac 01\ Lit.wav -o output.flac

flac 1.3.1, Copyright (C) 2000-2009  Josh Coalson, 2011-2014  Xiph.Org Foundation
flac comes with ABSOLUTELY NO WARRANTY.  This is free software, and you are
welcome to redistribute it under certain conditions.  Type `flac' for details.

01 Lit.wav: WARNING: skipping unknown chunk 'JUNK' (use --keep-foreign-metadata to keep)
01 Lit.wav: WARNING: skipping unknown chunk 'bext' (use --keep-foreign-metadata to keep)
01 Lit.wav: WARNING: legacy WAVE file has format type 1 but bits-per-sample=24
01 Lit.wav: WARNING: skipping unknown chunk 'minf' (use --keep-foreign-metadata to keep)
01 Lit.wav: WARNING: skipping unknown chunk 'elm1' (use --keep-foreign-metadata to keep)
01 Lit.wav: wrote 65861069 bytes, ratio=0.647

Is that something that could be worked around or the upstream wav file has a problem ?