Skip to content

Instantly share code, notes, and snippets.

View moomin's full-sized avatar

Serhii Piddubchak moomin

  • Kharkiv, Ukraine
View GitHub Profile
@zacharydenton
zacharydenton / FLAC anomalies...
Created January 18, 2011 17:30
FLAC anomalies...
This works:
flac -dc -- "/home/zdenton/test/The Pretty Things - S F Sorrow [24-96]/08. The Journey.flac" | sox -t wav - -b 16 -t wav - rate 44100 dither | flac --best -T "TITLE=The Journey" -T "ALBUM=S.F. Sorrow" -T "ALBUM=The Pretty Things" -T "TRACKNUMBER=08" -T "GENRE=" -T "DATE=1968-12" -o "/home/zdenton/test/The Pretty Things - S F Sorrow [16-44] (FLAC)/08. The Journey.flac" - 2>&1
This doesn't:
flac -dc -- "/home/zdenton/test/The Pretty Things - S F Sorrow [24-96]/12. Old Man Going.flac" | sox -t wav - -b 16 -t wav - rate 44100 dither | flac --best -T "TITLE=Old Man Going" -T "ALBUM=S.F. Sorrow" -T "ALBUM=The Pretty Things" -T "TRACKNUMBER=12" -T "GENRE=" -T "DATE=1968-12" -o "/home/zdenton/test/The Pretty Things - S F Sorrow [16-44] (FLAC)/12. Old Man Going.flac" - 2>&1
The latter stops at around 99% and says:
-: WARNING: skipping unknown sub-chunk '��/' (use --keep-foreign-metadata to keep)
-: ERROR: unexpected EOF