Pipe input in to ffmpeg stdin
15:21 26 Aug 2017

I am trying to use ffmpeg to decode audio data. While it works to load from a file, I would like to avoid using files because to do so, means I would have to use a temporary. Instead, I'd like to pipe in the data(which I've previously loaded) using stdin.

Is this possible?

e.g.,

  1. Manually load mp3 file
  2. Pipe it in to the ffmpeg spawned process
  3. Get raw output

(it should work with ffprobe and ffplay also)

ffmpeg pipe