Radio Listening Software: Difference between revisions

From LinuxTVWiki
Jump to navigation Jump to search
m (add link to ivtv-radio documentation)
No edit summary
 
(9 intermediate revisions by 4 users not shown)
Line 13: Line 13:


* [[fftv]] [http://fftv.sourceforge.net/]
* [[fftv]] [http://fftv.sourceforge.net/]
* [[fmtools]]
* [http://www.stanford.edu/~blp/fmtools/ fmtools] also for the command-line (most distros)
** [http://cajun.sourceforge.net/ cajun] for making your own car or home audio system
** [http://www.dashpc.com/ DashPC] for car radio and more from Linux Automotive
* [http://gkrellm.luon.net/gkrellm-radio.phtml gkrellm-radio] -- minimalistic [http://gkrellm.net gkrellm] plugin to control radio tuners
* [http://gkrellm.luon.net/gkrellm-radio.phtml gkrellm-radio] -- minimalistic [http://gkrellm.net gkrellm] plugin to control radio tuners
* [http://www.wh-hms.uni-ulm.de/~mfcn/gnomeradio gnomeradio] -- for Gnome, capable of recording
* [https://projects-old.gnome.org/gnomeradio/ gnomeradio] -- for Gnome, capable of recording
* [https://launchpad.net/gnome-radio/ gnome-radio] -- Listen to FM radio over the air using PCI cards or USB devices with FM tuners built in
* [http://www.gnu.org/software/gnuradio/ GNU Radio] -- the GNU software radio, testing phase; cf. [http://comsec.com/wiki?GnuRadio2.X wiki]
* [http://www.gnu.org/software/gnuradio/ GNU Radio] -- the GNU software radio, testing phase; cf. [http://comsec.com/wiki?GnuRadio2.X wiki]
* [http://foobazco.org/projects/gradio/ gradio] -- in Debian, but not currently active
* [http://foobazco.org/projects/gradio/ gradio] -- in Debian, but not currently active
Line 31: Line 30:
==Also See==
==Also See==
* For [[Radio Data System (RDS)#What devices can receive RDS information|devices capable of receiving RDS information]], see the associated [[Radio Data System (RDS)#User applications|userspace applications]].
* For [[Radio Data System (RDS)#What devices can receive RDS information|devices capable of receiving RDS information]], see the associated [[Radio Data System (RDS)#User applications|userspace applications]].
* [[dvbradio]] (part of the [[xawtv#Associated_Utilities_2|v4 xawtv package]]) as an example of a specific application for listening to radio streams embedded within dvb transport streams


</div>
</div>
Line 38: Line 38:
If you're a user, post your installation and user experiences here!
If you're a user, post your installation and user experiences here!


=== fmtools ===
=== gnomeradio ===
Clearly a more sophisticated application. There's only a debian package for i386, so I'll need to build from the tarball. Since I'm mainly interested in remote recording, I'll try fmtools and radio first.
The package contains two binaries, fm and fmscan. To pick up all stations even with very weak reception, I issued,


=== gradio ===
$ fmscan -d /dev/radio2 fmscan -d /dev/radio3 -t 18 -i 0.1
I tried gradio on Debian amd64, as it's available; it's very basic. If you don't have the card on /dev/radio, start with
Scanning range: 87.9 - 107.9 MHz (0.2 MHz increments)...


gradio -d /dev/radio2
Nice and clean. I added an antenna, but still got weak reception. This is very useful for testing the radio and finding the stations; does it support directing the sound to a file? I try various combinations and end up with this to get 100% volume:


No recording capability, stable gui, minimal functionality -- tuner and volume. I had to hand-edit the .gradiorc configuration file to get station presets; I may have missed some way of doing this through the gui.
$ fm -d /dev/radio3 89.9 65535
Radio tuned to 89.88 MHz at 100.00% volume


=== xfce4-radio-plugin ===
Weird. I don't see a way to record; do I need to use sox? I don't know if I'm getting any sound, as I don't have speakers on this box.
XFCE changed over from the "libxfcegui4" lib to "libxfce4ui," and somebody with XFCE fixed & recompiled the panel plugins except for this and a couple of others, but didn't specify what they had to do. You can't compile and use the plugin out-of-the-box on the version of XFCE Panel used now without making some changes. Here's what I did:


1. Install libxfce4ui-1 package
Sox is what gnomeradio uses to record and it thankfully sends commands it uses to standard out.
2. Download the xfce4-radio-plugin source and extract the files
3. Do a "find & replace" on the files to replace all references to the old "libxfcegui4-1.0" to "libxfce4ui-1"
4. Modify the following lines in xfce4-radio.c:


xfce_exec(data->startup_command, FALSE, FALSE, NULL)
for wav file:
to
xfce_spawn_command_line_on_screen(NULL,data->startup_command, FALSE, FALSE, NULL)


AND:
sox -c2 -w -r32000 -tossdsp /dev/audio -r 44100 -c 2 -w -twav /tmp/foo.wav


xfce_exec(data->shutdown_command, FALSE, FALSE, NULL);
for mp3 or ogg:
xfce_spawn_command_line_on_screen(NULL,data->shutdown_command, FALSE, FALSE, NULL)


(I think you need to add the extra "NULL" in the parameters sent to the function, at least from what I could find.)
sox -c2 -w -r32000 -tossdsp /dev/audio -r 44100 -c 2 -w -twav /tmp/fm_fifo &


5. If you have changed everything to what it should be and have the right libs installed, you should able to run configure, and then make. You have to run make like this:
and
make "LDFLAGS=-lm"

otherwise, you will end up with "DSO not found on command line."
lame -S -h -b 128 /tmp/fm_fifo /tmp/foo.mp3
6. Do make install, then symlink /usr/local/share/xfce4/panel-plugins/radio.desktop to /usr/share/xfce4/panel-plugins/radio.desktop

or

oggenc -Q -b 128 -o /tmp/foo.ogg /tmp/fm_fifo

=== gnomeradio ===
Clearly a more sophisticated application. There's only a debian package for i386, so I'll need to build from the tarball. Since I'm mainly interested in remote recording, I'll try fmtools and radio first.

=== gradio ===
I tried gradio on Debian amd64, as it's available; it's very basic. If you don't have the card on /dev/radio, start with

gradio -d /dev/radio2

No recording capability, stable gui, minimal functionality -- tuner and volume. I had to hand-edit the .gradiorc configuration file to get station presets; I may have missed some way of doing this through the gui.


Once this is done I was able to add the plugin to the Panel. Unfortunately, I cannot actually do a full function test on this as I found out later the FM tuner in my TV card isn't recognized by the driver. It is possible this won't work as I don't know anything about those function calls or if there is something else missing in the new lib that I do not know about.





Latest revision as of 23:30, 17 July 2019


Radio icon.png

Radio Listening Software:

There are a number of Radio devices, in particular those TV tuner devices which also contain a radio receiver/tuner, for which V4L directly supports. The following list of software applications allow one to control a radio tuner.

Radio Applications

Gnomeradio and kradio, the most fully featured applications, are not yet available in all distributions and need to be compiled first. Some of the older applications are mature and readily available, but no longer actively developed.

Also See

User experiences

If you're a user, post your installation and user experiences here!

gnomeradio

Clearly a more sophisticated application. There's only a debian package for i386, so I'll need to build from the tarball. Since I'm mainly interested in remote recording, I'll try fmtools and radio first.

gradio

I tried gradio on Debian amd64, as it's available; it's very basic. If you don't have the card on /dev/radio, start with

gradio -d /dev/radio2

No recording capability, stable gui, minimal functionality -- tuner and volume. I had to hand-edit the .gradiorc configuration file to get station presets; I may have missed some way of doing this through the gui.

xfce4-radio-plugin

XFCE changed over from the "libxfcegui4" lib to "libxfce4ui," and somebody with XFCE fixed & recompiled the panel plugins except for this and a couple of others, but didn't specify what they had to do. You can't compile and use the plugin out-of-the-box on the version of XFCE Panel used now without making some changes. Here's what I did:

1. Install libxfce4ui-1 package 2. Download the xfce4-radio-plugin source and extract the files 3. Do a "find & replace" on the files to replace all references to the old "libxfcegui4-1.0" to "libxfce4ui-1" 4. Modify the following lines in xfce4-radio.c:

xfce_exec(data->startup_command, FALSE, FALSE, NULL) to xfce_spawn_command_line_on_screen(NULL,data->startup_command, FALSE, FALSE, NULL)

AND:

xfce_exec(data->shutdown_command, FALSE, FALSE, NULL); xfce_spawn_command_line_on_screen(NULL,data->shutdown_command, FALSE, FALSE, NULL)

(I think you need to add the extra "NULL" in the parameters sent to the function, at least from what I could find.)

5. If you have changed everything to what it should be and have the right libs installed, you should able to run configure, and then make. You have to run make like this: make "LDFLAGS=-lm" otherwise, you will end up with "DSO not found on command line." 6. Do make install, then symlink /usr/local/share/xfce4/panel-plugins/radio.desktop to /usr/share/xfce4/panel-plugins/radio.desktop

Once this is done I was able to add the plugin to the Panel. Unfortunately, I cannot actually do a full function test on this as I found out later the FM tuner in my TV card isn't recognized by the driver. It is possible this won't work as I don't know anything about those function calls or if there is something else missing in the new lib that I do not know about.