|
From: Martin L. <mar...@gm...> - 2012-08-31 05:53:45
|
Hello! I am using sox 14.4.0. It is fantastic! When I run on a raw file with the below parameters the spectrogram is generated just fine: sox -t raw -e signed-integer -B -b 16 -c 1 -r 22050 test.raw -n spectrogram -o t1.png However when I try to put this inline into some longer chain of commands where the data is piped to stdin for sox the spectrogram is generated by it is zero seconds long. It is as if the data never made it through the the spectrogram effect. I am able to replicate the problem by running the following. t1.png is a spectrogram that has zero seconds of data... so just axes: cat test.raw | sox -t raw -e signed-integer -B -b 16 -c 1 -r 22050 - -n spectrogram -o t1.png If I add the headers back to the raw file and cat the wav file instead of the raw file, he spectrogram is generated ok as well. For example: cat test.wav | sox -t wav -e signed-integer -B -b 16 -c 1 -r 22050 - -n spectrogram -o t1.png I feel like I am missing something obvious. Am I missing something about raw input over stdin and running effects? I can post both the raw and wav files if that helps. Thank you! M. |