In a command line, if I run:
ffmpeg -i inputVideo.mp4 -vn -f mp4 -acodec copy outputAudio.aac
everything works perfectly fine. However if I do the same thing, except standard out instead of the output file ("pipe:1" instead of "outputAudio.aac") then I get this error: "Could not write header for output file #0 (incorrect codec parameters ?)"
Help from anyone with ffmpeg experience is greatly appreciated
Thanks