How to pipe or catch the output of SoX?
I am writing a BASH script that sorts MP3s based on some differences in the audio. I found this command can print out some useful statistics about an MP3:
sox audio.mp3 -n stat
This prints the statistics right into the terminal. I can't seem to find any way to capture these statistics. For example, these don't work:
sox audio.mp3 -n stat > out.txt
sox audio.mp3 -n stat | tail -1
How can I capture or pipe the output of SoX statistics?
|