[FFmpeg-user] redirect to 2 fifo files
Zoltan Kerenyi Nagy
kerenyi.nagy.zoltan at gmail.com
Mon Jan 28 17:18:12 EET 2019
Hi All,
I'd like to send my laptop's sound to 2 fifo-s at the same time in order to
read from that fifos later. For some reason if I read from those fifos,
nothing happens:
ffmpeg -i fifo1 -s 0 -t 5 out1.wav
ffmpeg -i fifo2 -s 0 -t 5 out2.wav
This is how I create the 2 fifos:
#!/bin/bash
mkfifo fifo2 2>/dev/null
mkfifo fifo2 2>/dev/null
ffmpeg -f alsa -i hw:0,0 -f wav pipe:1 > fifo1 -f wav pipe:1 > fifo2
exit 0
Thanks,
Zoli
More information about the ffmpeg-user
mailing list