You need to tell ffmpeg to output data to stdout, rather than giving it a file name. For example, the following command reads an input in FLAC format from stdin and writes an output in MP3 format to stdout (the file name "-" is used to mean stdin/stdout):