← 返回命令列表

Linux command

rtl_fm 命令

文本

涉及管道、覆盖或删除,执行前请先确认路径和参数。

常用示例

Listen to FM radio

rtl_fm -f [100.1M] -M wbfm -s 200000 -r 48000 | aplay -f S16_LE -r 48000

Narrow FM (ham radio)

rtl_fm -f [145.5M] -M fm -s 12000 | aplay -f S16_LE -r 12000

AM mode

rtl_fm -f [1000k] -M am -s 12000 | aplay -f S16_LE -r 12000

Save to file

rtl_fm -f [100.1M] -M wbfm -s 200000 > [radio.raw]

说明

rtl_fm is an FM demodulator for RTL-SDR dongles. It receives and demodulates radio signals using inexpensive DVB-T USB receivers (based on the RTL2832U chipset) as software-defined radios. Output is raw 16-bit signed PCM audio on stdout, typically piped to an audio player or file.

参数

-f _freq_
Center frequency.
-M _mode_
Demodulation (fm, wbfm, am, usb, lsb).
-s _rate_
Sample rate.
-r _rate_
Output sample rate.
-g _gain_
Gain (0=auto).
-d _index_
Device index.
-p _ppm_
PPM frequency error correction for the dongle's crystal oscillator.
-l _level_
Squelch level; mute output when signal strength is below this threshold.
-A _method_
Output audio filtering: fast (default) or lut (lookup table, slower but slightly better quality).
-E _option_
Enable extra features: edge (edge tuning), dc (DC blocking filter), deemp (FM de-emphasis filter), direct (direct sampling mode), offset (offset tuning mode).

FAQ

What is the rtl_fm command used for?

rtl_fm is an FM demodulator for RTL-SDR dongles. It receives and demodulates radio signals using inexpensive DVB-T USB receivers (based on the RTL2832U chipset) as software-defined radios. Output is raw 16-bit signed PCM audio on stdout, typically piped to an audio player or file.

How do I run a basic rtl_fm example?

Run `rtl_fm -f [100.1M] -M wbfm -s 200000 -r 48000 | aplay -f S16_LE -r 48000` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -f _freq_ do in rtl_fm?

Center frequency.