Help - Search - Members - Calendar
Full Version: Flac: How to save Statistics into a File?
Hydrogenaudio Forums > Lossless Audio Compression > FLAC
MediaMonkey
How do you save the encode/decode/test statistics generated by Flac to a text file? For example, the following won't work:

flac -t [input *.flac file(s)] > output.txt

I want to test thousands of flac files to make sure they aren't corrupted (about 10-15 of my files got messed up due to a hard disk problem). If I could run "flac -t" on all of them them and save the statistics to a text file, it would then be very easy to do a text search inside that output file to look for error codes and thus quickly determined which handful of files are problematic.

Ideas?

Thanks in advance.

kjoonlee
flac -tc foo.flac > output.txt 2>&1

The above works for single files.

If you know how to set up a Unix-like environment, the following might work for you. It takes care of recursive searching.

find . -name '*.flac' -exec flac -tc {} \; >> /path/to/single_file_output.txt 2>&1

If you're not familiar with Linux/Cygwin/etc, and you still want to use flac.exe, I think you'd have to write a batch file.

edit: typos
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.