I currently try to stream audio from rtl_fm via ffmpeg to node-media-server.
This is working fine.
rtl_fm -f 103.0M -M fm -s 44.1k -A std -l 1 -g 40 |
ffmpeg -f s16le -ac 1 -i pipe:0 -f flv rtmp://192.168.178.42/live/lorem
But: The I want to listen to the signal from the frequency e.g. 83.0M and the bandwith (-s) is set to 20k.
Now the streamed audio is to fast. The audio sounds like pitched up and the terminal output of ffmpeg for speed is about 0.5x instead of 1x.
How can i stream this frequency with a bandwith of 20k without getting a bad output?
As per the rtl_fm guide, -s
is the output sampling rate, so you need to adjust that in the ffmpeg input parameter.
rtl_fm -f 83.0M -M fm -s 20k -A std -l 1 -g 40 |
ffmpeg -f s16le -channels 1 -sample_rate 20k -i pipe:0 -f flv rtmp://192.168.178.42/live/lorem