Turns your Realtek RTL2832 based DVB dongle into a FM radio stereo receiver.
RTL SDR FM Streamer is a small tool to stream FM stereo radio by using a DVB-T dongle to a client e.g Kodi, VLC or mplayer.
The DVB-T dongle has to be based on the Realtek RTL2832U. See http://sdr.osmocom.org/trac/wiki/rtl-sdr for more RTL SDR details.
Default port: 2346
$ ./rtl_fm_streamer
Docker Image
Thanks to mrbluebrett you can also use a Docker image https://hub.docker.com/r/mrbluebrett/rtl_fm_streamer
The options "-P" defines the port where the HTTP server is listen on.
e.g. port 12345
$ ./rtl_fm_streamer -P 12345
To connect to the server you can use KODI, VLC or mplayer. Just connect to the URL
mono: "http://IP:port/FrequencyInHerz"
mono: "http://IP:port/FrequencyInHerz/0"
stereo: "http://IP:port/FrequencyInHerz/1"
To use this tool in KODI simply create a *.strm file e.g. "FM_93_2.strm"
http://localhost:2346/93200000
rtl_fm_streamer comes with a JSON-RPC 1.0 API. It is listening at port 2345 but you can specify the port with the parameter "-j".
$ ./rtl_fm_streamer -j 1234
Provided methods
Method | Parameters | Return | Description |
---|---|---|---|
SetFrequency | Frequency in Hz | Frequency in Hz | Tunes to a given frequency |
GetPowerLevel | None | Power level in DBFS | Returns the current power level in DBFS |
Example Set Frequency client --> rtl_fm_streamer
{"method": "SetFrequency", "params": [93200000]}
rtl_fm_streamer --> client
{"result": [93200000]}
Mono: Should run on many small devices. e.g. a Raspberry Pi 1. Stereo: Needs a lot of more CPU power compared to mono (tested on a Raspberry Pi 2). On modern PCs (x86, x64) mono and stereo decoding should be possible easily (tested with an Intel CORE i7 and an Intel CORE 2 Duo)
- Server accepts only one client
- Occasional segmentation faults after disconnect of a client
To compile rtl_fm_streamer just do the following steps (install git, cmake and libev first).
$ sudo apt-get install build-essential libusb-1.0-0-dev libev-dev
$ git clone https://github.com/AlbrechtL/rtl_fm_streamer.git
$ cd rtl_fm_streamer/
rtl_fm_streamer$ mkdir build
rtl_fm_streamer$ cd build
rtl_fm_streamer/build$ cmake ../
rtl_fm_streamer/build$ make
- FM Radio receiver based upon RTL-SDR as pvr addon for KODI
- rtl_fm
- This tool is the base of rtl_fm_streamer
- http://sdr.osmocom.org/trac/wiki/rtl-sdr
- sdr-j-fmreceiver
- GPRX
OpenELEC thread: http://openelec.tv/forum/126-3rd-party/75537-fm-radio-receiver-for-kodi-for-the-raspberry-pi-1 raspberrypi.org thread: https://www.raspberrypi.org/forums/viewtopic.php?f=38&t=122372
Write me an e-mail: Albrecht [email protected]