HydrogenAudio

Lossless Audio Compression => FLAC => Topic started by: shitdarling on 2024-01-24 19:42:14

Title: How to save [flac -t mysong.flac ] as txt
Post by: shitdarling on 2024-01-24 19:42:14
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?
Title: Re: How to save [flac -t mysong.flac ] as txt
Post by: danadam on 2024-01-24 20:34:01
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).
Title: Re: How to save [flac -t mysong.flac ] as txt
Post by: shitdarling on 2024-01-25 06:07:09
Thank You!