Any comments about this?
soxi FAIL formats: can't open input file `file.wav': WAVE: RIFF header not found
Bengt Nilsson < bnilsson11@xxxxxxxxx> writes: 26 juli 2016 kl. 16:14 skrev:
Bengt Nilsson <bnilsson11@xxxxxxxxx> writes:
Friends,
I have reasons to believe I have some faults in my music library. To make things worse, I think I have faults in my backup too, but those are not necessarily aligned to the ones in the active music library.
To recover, I need to find the failed files in my music, and recover them from backup if possible. Once this is done, I can erase the corrupt backup and make a new snapshot.
To play ALL tracks from start to end to check their integrity is of course impractical.
Is there any clever way to let sox (or soxi) go thru everything and log the failed files, if any?
What format are the files? Some formats can be easily verified by automatic tools, probably as quickly as they can be read from disk. Since you didn't say what they are or what OS you're using, it's hard to make a specific recommendation.
My formats of preference are flac, aiff, wav. My OS is ubuntu studio 16.04.
For FLAC files the "flac -t <file>" command decodes and verifies the decoded data against the checksum in the header. AIFF and WAV files are hard to verify automatically beyond checking that the file size matches the header. -- Måns Rullgård
|
------------------------------------------------------------------------------
_______________________________________________
Sox-users mailing list
Sox-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/sox-users