Im using tricks from following link and able to record audio into file Record a program's output with PulseAudio
I have been tweaking commands and trying to stream bytes to a UDP server. This is what i have got so far which does not work
parec -d sink_name.monitor | ffmpeg -re -ac 1 -f s16le -ar 16000 -i - - | ffmpeg -re -i - -f mpegts udp://localhost:20001
- First command provides the audio stream
- This command is partially used to store stream in .mp3 file refer-
ffmpeg -ac 1 -f s16le -ar 44100 -i - test.mp3
- This should redirect stream to UDP - from
ffmpeg -ac 1 -f s16le -ar 44100 -i - test.mp3
I could use some help here. Thanks in advance!