Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: How to save [flac -t mysong.flac ] as txt (Read 1088 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

How to save [flac -t mysong.flac ] as txt

I had downloaded corrupt flac music 3 times. So I tried to make a shell/bat script to automatic check flac from download.
But I find some trouble:
flac -t mysong.flac > my.log

Cant see anything in my.log.
But
flac -v > my.log
works, which shows the flac.exe version in my.log.

Another question is:
any good ways adding md5 label for flac without  re-encoded?
As I know, the md5 label is cacculate from origin PCM data, so It has to decode first. And the best way I know is use
flac -f
re-encode in place. Any better ways?

Re: How to save [flac -t mysong.flac ] as txt

Reply #1
I had downloaded corrupt flac music 3 times. So I tried to make a shell/bat script to automatic check flac from download.
But I find some trouble:
flac -t mysong.flac > my.log

Cant see anything in my.log.
But
flac -v > my.log
works, which shows the flac.exe version in my.log.
"-t" outputs to stderr, so you need either "2>my.log" or ">my.log 2>&1" (at least on linux).

Re: How to save [flac -t mysong.flac ] as txt

Reply #2
Thank You!