windytan / redsea

Command-line FM-RDS decoder with JSON output.
MIT License
390 stars 36 forks source link

No output from redsea #59

Closed nailgg closed 6 years ago

nailgg commented 6 years ago

I can't get any output from redsea. Tried on x64 Ubuntu and Raspberry Pi 3, I couldn't get redsea to work on both devices.

rtl_fm -M fm -l 0 -A std -p 0 -s 171k -g 40 -F 9 -f 100.0e6 - | redsea
Found 1 device(s):
  0:  Realtek, RTL2838UHIDIR, SN: 00000001

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Tuner gain set to 40.20 dB.
Tuned to 100342000 Hz.
Oversampling input by: 8x.
Oversampling output by: 1x.
Buffer size: 5.99ms
Exact sample rate is: 1368000.013046 Hz
Sampling at 1368000 S/s.
Output at 171000 Hz.

Is all I get.

Tried -M wbfm and -M fm flags on rtl_fm, both didn't work. Tried changing the frequency, bandwidth, gain values etc., no matter what I tried, I couldn't get anything. Tried the -x flag on redsea but it didn't spit anything.

On Windows, I am able to view the RDS data using SDR# + RDS Data Logger so I am sure there RDS data is available around me. What am I doing wrong?

nailgg commented 6 years ago

Finally, running it through the line below worked:

{ rtl_fm -M fm -l 0 -A std -p 0 -s 171k -g 40 -F 9 -f 106.2M | redsea -e 2>&1 1>&3 3>&- | jq -c . ; } 3>&1 1>&2 | aplay -r 171k -f S16_LE

windytan commented 6 years ago

Thanks for the report.