I have a source sound audio.mp3 and I want to convert it into audio.aiff.
When I do
ffmpeg -i audio.mp3 -acodec pcm_s16le -ac 1 -ar 44100 -vn audio.aiff
I get output a file tim_tum.aiff exactly as I expect it which is playable. However, what I found is that when I do
ffmpeg -i audio.mp3 -acodec pcm_s16le -ac 1 -ar 44100 -vn -f aiff pipe:1 > audio_pipe.aiff
I get an audio_pipe.aiff file which is unplayable and is different from the original audio.aiff file, as evidenced by
$ diff audio.aiff audio_pipe.aiff
Binary files audio.aiff and audio_pipe.aiff differ
I would expect both files to be identical and cannot figure out why they would come out differently, but most importantly, why is one file playable while the other isn't?