/nrsc5

NRSC-5 receiver for rtl-sdr

Primary LanguageCOtherNOASSERTION

Dependencies

The following packages are required:

  • libao-dev
  • libfftw3-dev
  • rtl-sdr

Build Instructions

 $ mkdir build && cd build
 $ cmake [options] ..
 $ make
 $ sudo make install

Available build options:

-DUSE_COLOR=ON       Colorize log output. [default=OFF]
-DUSE_NEON=ON        Use NEON instructions. [ARM, default=OFF]
-DUSE_SSE=ON         Use SSSE3 instructions. [x86, default=OFF]
-DUSE_FAST_MATH=ON   Use unsafe math optimizations. [default=OFF]
-DUSE_THREADS=ON     Enable multithreading. [default=ON]
-DUSE_FAAD2=ON       AAC decoding with FAAD2. [default=ON]

You can test the program using the included sample capture:

 $ xz -d < ../support/sample.xz | src/nrsc5 -r - 0

Building with Homebrew

 $ brew install --HEAD https://raw.githubusercontent.com/theori-io/nrsc5/master/nrsc5.rb

Usage

This was designed for use with an RTL-SDR dongle since that was our testing platform.

Options:

   frequency                       rtl-sdr center frequency
                                     (do not provide frequency when reading from file)
   program                         audio program to decode
                                     (0, 1, 2, or 3)
   -d device-index                 rtl-sdr device
   -g gain                         rtl-sdr gain (0.1 dB)
                                     (automatic gain selection if not specified)
   -p ppm-error                    rtl-sdr ppm error
   -r samples-input                read samples from input file
   -w samples-output               write samples to output file
   -o audio-output                 write audio to output file
   -f adts|hdc|wav                 audio format: adts, hdc, or wav
                                     (hdc playback requires modified faad2)
   -q                              disable log output
   -l log-level                    set log level
                                     (1 = DEBUG, 2 = INFO, 3 = WARN)

Examples:

 $ nrsc5 -p 63 -g 490 -w samples1071 107100000 0

 $ nrsc5 -r samples1071 0

 $ nrsc5 -o - -f adts 90500000 0 | mplayer -