[FFmpeg-user] redirect to 2 fifo files
Moritz Barsnick
barsnick at gmx.net
Mon Jan 28 20:05:52 EET 2019
On Mon, Jan 28, 2019 at 16:18:12 +0100, Zoltan Kerenyi Nagy wrote:
> This is how I create the 2 fifos:
>
> #!/bin/bash
>
> mkfifo fifo2 2>/dev/null
> mkfifo fifo2 2>/dev/null
You're creating the same fifo twice, by the way
> ffmpeg -f alsa -i hw:0,0 -f wav pipe:1 > fifo1 -f wav pipe:1 > fifo2
This should give some sort of syntax error from bash. You can't use the
redirect operator ">" twice per command.
You want to write directly to the fifos:
$ ffmpeg -f alsa -i hw:0,0 -f wav fifo1 -f wav fifo2
Cheers,
Moritz
More information about the ffmpeg-user
mailing list