Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to use "sox" to mix some audio files.

The command works great on my Mac terminal

sox -m audio.wav "| sox upload.wav -p trim 2 1 pad 6" final.wav

This mixes (not concatenate) audio.wav and a section of upload.wav from the 2nd second to the 3rd second and adds 6 seconds of padding in the front, and outputs to final.wav

Now the problem is, the SAME EXACT command does NOT work my Amazon EC2 RHEL box. (sox is installed correctly). I get the following error

sox soxio: Can't open input file `| sox upload.wav -p trim 2 2 pad 6': No such file or directory

For some reason RedHat doesn't like the double quotes. Even though it is documented to be used this way.

Thanks for your help!

share|improve this question

Seems like the file is not present in the directory you are trying to run this from. Or see the file permissions of the audio file. And set it to 755 or 777. I'd suggest using full file names like this - /var/www/audio/test.wav

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .