RadioRadio input
This section is about how to enable listening
from V4L compatible Radio tuner. See the man page for a description
of Radio options and keyboard controls.
Compilation
First, you have to recompile MPlayer using ./configure with
--enable-radio and (if you want capture support) --enable-radio-capture.
Make sure your tuner works with another radio software in Linux, for
example XawTV.
Usage tips
The full listing of the options is available on the manual page.
Here are just a few tips:
Use the option. An example:
-radio channels=104.4-Sibir,103.9-Maximum
Explanation: using this option, only the 104.4 and 103.9 radio stations
will be usable, and there will be a nice OSD text upon channel switching, displaying the
channel's name. Spaces in the channel name must be replaced by the
"_" character.
There are several ways of capturing audio. You can grab the sound either using
your sound card via an external cable connection between video card and line-in,
or using the built-in ADC in the saa7134 chip. In the latter case, you have to
load the saa7134-alsa or
saa7134-oss driver.
MEncoder cannot be used for audio capture, because it
requires video stream to work. So your can either use arecord from ALSA project or
use . In second case you will not hear any sound
(except you using line-in cable and have switched line-in mute off)
Examples
Input from standard V4L (using line-in cable. capture switched off):
mplayer radio://104.4
Input from standard V4L (using line-in cable. capture switched off, V4Lv1 interface):
mplayer -radio driver=v4l radio://104.4
Playing second channel from channel list:
mplayer -radio channels=104.4=Sibir,103.9=Maximm radio://2
Using sound through pci bus from radio card's internal ADC. In this example tuner used as second sound card
(ALSA device hw:1,0). For saa7134 based cards either saa7134-alsa or saa7134-oss module must be
loaded . NOTE: when using ALSA device names colons must be replaced with equals, commas with dots.
mplayer -rawaudio rate=32000 -radio adevice=hw=1.0:arate=32000:channels=104.4=Sibir,103.9=Maximm radio://2/capture