ffmpeg stream and record at the same time
Hi,
I'd like to stream and record my laptop's audio input at the same time. Streaming works perfectly with this ffserver config file: Code:
HTTPPort 4444 Code:
ffserver -f /etc/ffserver.conf & Code:
ffmpeg -f alsa -i hw:0,0 http://localhost:4444/audio.ffm | tee arecord -f cd -r 44100 -d 10 test1.wav |
you cannot tee into arecord that way. And also I cannot think arecord can handle stdin like this.
|
Quote:
There must be a workaround for this. I'm testing with a 2 fifos now: Code:
#!/bin/bash Code:
ffmpeg -i /tmp/recording -t 00:00:10 /tmp/test.wav Code:
ffmpeg -i /tmp/streaming http://localhost:4444/audio.ffm https://pastebin.com/6MU6mYsA |
All times are GMT -5. The time now is 09:12 AM. |