View previous topic :: View next topic |
Author |
Message |
cord Guru
Joined: 28 Apr 2007 Posts: 344
|
Posted: Sat Jan 18, 2020 7:52 pm Post subject: FM radio (v4l) listening software? |
|
|
Hello, I want to listen fm radio over my V4L (Philips SAA7134 tv/fm) tuner. I have the appropriate configuration in kernel and module options, but I can't find any software to play it
Here is the big enough list of suggested software, but nothing is in Portage.
Only fmtools is available, but how to play? That how-to describes recording via sox (but syntax contains old OSS /dev/audio API... it's useless). There's another guide, but I get silence and nothing more.
Need help
ps It's working on Debian (this package), so the hardware is ok. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30905 Location: here
|
|
Back to top |
|
|
soundrolf Tux's lil' helper
Joined: 08 Sep 2016 Posts: 122 Location: Cologne / Germany
|
Posted: Sun Jan 19, 2020 10:50 am Post subject: FM radio (v4l) listening software? |
|
|
This will do the job
media-sound/fmtools |
|
Back to top |
|
|
Marlo Veteran
Joined: 26 Jul 2003 Posts: 1591
|
Posted: Sun Jan 19, 2020 12:32 pm Post subject: |
|
|
Hi,
Listening to the radio through a web browser is easier.
Try this Dutch university site. --> http://radio.garden/ _________________ ------------------------------------------------------------------
http://radio.garden/ |
|
Back to top |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21619
|
Posted: Sun Jan 19, 2020 5:27 pm Post subject: Re: FM radio (v4l) listening software? |
|
|
soundrolf wrote: | This will do the job
media-sound/fmtools | OP already mentioned that fmtools should work, but also stated that he can't get it to do what he wants. Could you point him to documentation that describes how to do what he wants? |
|
Back to top |
|
|
cord Guru
Joined: 28 Apr 2007 Posts: 344
|
Posted: Mon Jan 20, 2020 7:43 pm Post subject: |
|
|
Thanks to ALL for replies.
There's my saa7134 card:
Code: |
[ 378.606812] saa7134: saa7130/34: v4l2 driver version 0, 2, 17 loaded
[ 393.766977] pcmcia_socket pcmcia_socket0: pccard: CardBus card inserted into slot 0
[ 393.767008] pci 0000:03:00.0: [1131:7133] type 00 class 0x048000
[ 393.767044] pci 0000:03:00.0: reg 0x10: [mem 0x00000000-0x000007ff]
[ 393.767199] pci 0000:03:00.0: supports D1 D2
[ 393.767350] pci 0000:03:00.0: BAR 0: assigned [mem 0x8c000000-0x8c0007ff]
[ 393.767373] pci 0000:03:00.0: cache line size of 64 is not supported
[ 393.767477] saa7134 0000:03:00.0: enabling device (0000 -> 0002)
[ 393.767630] saa7134: saa7133[0]: found at 0000:03:00.0, rev: 209, irq: 19, latency: 0, mmio: 0x8c000000
[ 393.767646] saa7134: saa7133[0]: subsystem: 1461:b7e9, board: AVerMedia Cardbus TV/Radio (E501R) [card=158,insmod option]
[ 393.767678] saa7134: saa7133[0]: board init: gpio is 0
[ 393.936936] saa7134: i2c eeprom 00: 61 14 e9 b7 ff ff ff ff ff ff ff ff ff ff ff ff
[ 393.936939] saa7134: i2c eeprom 10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 393.936941] saa7134: i2c eeprom 20: ff d1 fb ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 393.936943] saa7134: i2c eeprom 30: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 393.936945] saa7134: i2c eeprom 40: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 393.936947] saa7134: i2c eeprom 50: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 393.936948] saa7134: i2c eeprom 60: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 393.936950] saa7134: i2c eeprom 70: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 393.936952] saa7134: i2c eeprom 80: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 393.936953] saa7134: i2c eeprom 90: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 393.936955] saa7134: i2c eeprom a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 393.936957] saa7134: i2c eeprom b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 393.936959] saa7134: i2c eeprom c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 393.936960] saa7134: i2c eeprom d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 393.936962] saa7134: i2c eeprom e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 393.936964] saa7134: i2c eeprom f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 393.949931] saa7134: i2c scan: found device @ 0x84 [???]
[ 393.954942] saa7134: i2c scan: found device @ 0xa0 [eeprom]
[ 393.959941] saa7134: i2c scan: found device @ 0xc0 [tuner (analog)]
[ 393.962937] saa7134: i2c scan: found device @ 0xc2 [???]
[ 393.967603] Registered IR keymap rc-avermedia-cardbus
[ 393.967652] rc rc0: AVerMedia Cardbus remote as /devices/pci0000:00/0000:00:1e.0/0000:02:01.0/0000:03:00.0/i2c-8/8-0040/rc/rc0
[ 393.967748] input: AVerMedia Cardbus remote as /devices/pci0000:00/0000:00:1e.0/0000:02:01.0/0000:03:00.0/i2c-8/8-0040/rc/rc0/input11
[ 394.026959] tea5767 8-0060: type set to Philips TEA5767HN FM Radio
[ 394.030929] tuner: 8-0060: Tuner 62 found with type(s) Radio.
[ 394.046954] tda9887 8-0042: creating new instance
[ 394.046959] tda9887 8-0042: tda988[5/6/7] found
[ 394.049937] tuner: 8-0042: Tuner 74 found with type(s) Radio TV.
[ 394.054854] tuner: 8-0061: Tuner -1 found with type(s) TV.
[ 394.054896] tea5767 8-0060: type set to Philips TEA5767HN FM Radio
[ 394.060925] tuner-simple 8-0061: creating new instance
[ 394.060931] tuner-simple 8-0061: type set to 12 (Alps TSBE5)
[ 394.098452] saa7134: saa7133[0]: registered device video0 [v4l2]
[ 394.098524] saa7134: saa7133[0]: registered device vbi0
[ 394.098585] saa7134: saa7133[0]: registered device radio0
[ 394.101123] saa7134_alsa: saa7134 ALSA driver for DMA sound loaded
[ 394.101170] saa7134_alsa: saa7133[0]/alsa: saa7133[0] at 0x8c000000 irq 19 registered as card -1
[ 394.109143] tda9887 8-0042: i2c i/o error: rc == -5 (should be 4)
[ 394.113134] tda9887 8-0042: i2c i/o error: rc == -5 (should be 4)
[ 394.113292] tuner-simple 8-0061: i2c i/o error: rc == -5 (should be 4)
|
gqradio doesn't work with it (same as here),
At GUI
Quote: | Failed to start /dev/radio0
Success |
and at console
Code: | Error, radio support missing, or failed to init radio device! |
mplayer plays it with double speed (thin voices) and with periodic sound cracking/corruption (mpv doesn't have radio:// protocol support at all).
fmtools? I've tried it, but how can I use it? It just sets frequency and volume...
Code: | fm 106.6 65535
Radio tuned to 106.60 MHz at 100.00% volume |
how to play? and for what it can be used?
If I just could to install this package, but can't find it's source separately (only whole source of xawtv is available).
ps Listening to the radio through a web browser is easier, yes. But not always internet is available. |
|
Back to top |
|
|
Marlo Veteran
Joined: 26 Jul 2003 Posts: 1591
|
Posted: Mon Jan 20, 2020 9:10 pm Post subject: |
|
|
cord wrote: |
ps Listening to the radio through a web browser is easier, yes. But not always internet is available. |
Yes, it is much easier via browser.
I say that because I also have a tv/radio tuner.
1. The first problem is the firmware (not the modules).
2. The second problem is the correct UDEV rule.
3. The third problem is a channel.conf.
A few years ago I wrote something about it in the German Forum. You can read it with google-translate.
https://forums.gentoo.org/viewtopic-p-7233678.html#7233678
The stick still works because I have the same channels.conf. But radio.garden is really easier.
I wish you success
Ma _________________ ------------------------------------------------------------------
http://radio.garden/ |
|
Back to top |
|
|
soundrolf Tux's lil' helper
Joined: 08 Sep 2016 Posts: 122 Location: Cologne / Germany
|
Posted: Wed Jan 22, 2020 1:05 pm Post subject: Titel: FM radio (v4l) listening software? |
|
|
You need an analog radio card to use media-sound/fmtools
Receiving the signal with antenna or cable
To use fmtolls simply do 'fm on'
then fm -d /dev/radio0 'MHz of your station' 65535
Now you hear your radio station
At my home I do 'fm -d /dev/radio0 98.80 65535 this is WDR broadcast station in cologne/germany FM Radio frequency
To switch off fmtools do 'fm off'
Thats it. |
|
Back to top |
|
|
cord Guru
Joined: 28 Apr 2007 Posts: 344
|
Posted: Wed Jan 22, 2020 7:03 pm Post subject: Re: Titel: FM radio (v4l) listening software? |
|
|
soundrolf wrote: | You need an analog radio card to use media-sound/fmtools
Receiving the signal with antenna or cable
To use fmtolls simply do 'fm on'
then fm -d /dev/radio0 'MHz of your station' 65535
Now you hear your radio station
At my home I do 'fm -d /dev/radio0 98.80 65535 this is WDR broadcast station in cologne/germany FM Radio frequency
To switch off fmtools do 'fm off'
Thats it. |
Yes, I've tried to do that, but nothing is happened. |
|
Back to top |
|
|
soundrolf Tux's lil' helper
Joined: 08 Sep 2016 Posts: 122 Location: Cologne / Germany
|
|
Back to top |
|
|
cord Guru
Joined: 28 Apr 2007 Posts: 344
|
Posted: Wed Jan 22, 2020 8:17 pm Post subject: |
|
|
Of course it is there. You see dmesg I showed above, didn't you |
|
Back to top |
|
|
soundrolf Tux's lil' helper
Joined: 08 Sep 2016 Posts: 122 Location: Cologne / Germany
|
Posted: Thu Jan 23, 2020 12:14 pm Post subject: FM radio (v4l) listening software? |
|
|
You are right devices are there.
There are ton's of parameters for different saa7134 chips
Figure out which card exactly is used. You may check which saa7134 is built in
Start here: /usr/src/linux-4.19.97-gentoo/Documentation/media/v4l-drivers/
saa7134-cardlist.rst and saa7134-cardlist.txt and saa7134.rst
Create a "/etc/modprobe.d/saa7134.conf" file with this sole content: "options saa7134 i2c_scan=1"
They are ton's of parameters you can try out.
modprobe -vr saa7134_dvb
modprobe -vr saa7134_alsa
modprobe -vr saa7134
modprobe -v saa7134 card=40 <-- here you place your card
I tried it with an Medion MD5044 on an older Computer. It's like hell to figure out the right parameters
No way, my radio does not work. I have a Hauppage TV+Radio card,in my computer now this does the job
Hope it helps |
|
Back to top |
|
|
cord Guru
Joined: 28 Apr 2007 Posts: 344
|
Posted: Thu Jan 23, 2020 6:06 pm Post subject: |
|
|
Yes, it is defined, I have AVerMedia Cardbus TV/Radio (E501R), which is 'card=158' insmod option (all this you can see in dmesg). And this is the driver/options, which is working on Debian with that package. Unfortunately, Gentoo doesn't have it in portage. |
|
Back to top |
|
|
soundrolf Tux's lil' helper
Joined: 08 Sep 2016 Posts: 122 Location: Cologne / Germany
|
Posted: Thu Jan 23, 2020 6:39 pm Post subject: |
|
|
This works on my Gentoo box
Open terminal and then
mplayer radio://98.80 <---- set your own radiostation fm frequency
may be you must use alsamixer to set up sound level and unmute channel
My tv/fm card has a line output this output is connected with line input to my onboard soundcard by stereo minijack cable
with alsamixer I have to unmute line input and increase volume line level
Radio from antenna (analog) works as requested
Hope you get it working |
|
Back to top |
|
|
cboldt Veteran
Joined: 24 Aug 2005 Posts: 1046
|
Posted: Thu Jan 23, 2020 10:18 pm Post subject: |
|
|
I've used ivtv-radio from media-tv/ivtv-utils
Haven't tried to compile mplayer with USE=radio support, but that sounds (hahahah) intriguing. |
|
Back to top |
|
|
cord Guru
Joined: 28 Apr 2007 Posts: 344
|
Posted: Fri Jan 24, 2020 12:16 pm Post subject: |
|
|
cboldt wrote: | I've used ivtv-radio from media-tv/ivtv-utils |
Does it support v4l fm radio API? |
|
Back to top |
|
|
cord Guru
Joined: 28 Apr 2007 Posts: 344
|
Posted: Fri Jan 24, 2020 12:22 pm Post subject: |
|
|
soundrolf wrote: | may be you must use alsamixer to set up sound level and unmute channel |
Pulseaudio is there. But, thanks, will try to play with sound levels.
soundrolf wrote: |
My tv/fm card has a line output this output is connected with line input to my onboard soundcard by stereo minijack cable |
It's PCMCIA, that doesn't have line-out, and laptop that doesn't have line-in. |
|
Back to top |
|
|
elsandosgrande Tux's lil' helper
Joined: 18 May 2019 Posts: 144 Location: Sarajevo 71000, Bosnia and Herzegovina
|
Posted: Fri Jan 24, 2020 2:44 pm Post subject: |
|
|
This is probably a stupid question, but did anybody try looking for radio packages in the Gentoo overlays? |
|
Back to top |
|
|
cboldt Veteran
Joined: 24 Aug 2005 Posts: 1046
|
Posted: Fri Jan 24, 2020 4:02 pm Post subject: |
|
|
Code: | The ivtv driver supports only the v4l2 API for the radio functionality, |
Not saying you'd need that driver though. That snip is from /usr/share/doc/ivtv-utils-1.4.1/README.radio.bz2 I assume from that, that ivtv-dario uses the v4l API for radio functionality. |
|
Back to top |
|
|
cord Guru
Joined: 28 Apr 2007 Posts: 344
|
Posted: Fri Jan 24, 2020 8:40 pm Post subject: |
|
|
elsandosgrande wrote: | This is probably a stupid question, but did anybody try looking for radio packages in the Gentoo overlays? |
I tried to set 'radio' (appication that works in Debian), but it's not available separately from 'xawtv'. And xawtv is not in portage, I have found it here, but it failed with compilation error (can show if need).
cboldt wrote: | Code: | The ivtv driver supports only the v4l2 API for the radio functionality, |
Not saying you'd need that driver though. That snip is from /usr/share/doc/ivtv-utils-1.4.1/README.radio.bz2 I assume from that, that ivtv-dario uses the v4l API for radio functionality. |
Well, it seems like something is missing.
Code: |
$ ivtv-radio -d /dev/radio0 -f 106.6
set to freq 106.6
/dev/video24 belongs to a different ivtv driver then /dev/radio0
Run ivtv-detect to discover the correct radio/PCM out combination.
$ ivtv-detect
bash: ivtv-detect: command not found
$
|
or? |
|
Back to top |
|
|
cboldt Veteran
Joined: 24 Aug 2005 Posts: 1046
|
Posted: Sat Jan 25, 2020 1:20 pm Post subject: |
|
|
My capture/radio card drivers/modules provide /dev/radio0 /dev/video0 /dev/video24 /dev/video32
/de/video24 is an audio-only device, and on my system points to the same hardware (capture card, FM tuner), same set of modules, and so on.
Code: | /dev/radio0
The radio tuner device(s)
Cannot be read or written.
Used to enable the radio tuner and tune to a frequency. You cannot
read or write audio streams with this device. Once you use this
device to tune the radio, use /dev/video24 to read the raw pcm stream
or /dev/video0 to get an mpeg2 stream with black video. |
|
|
Back to top |
|
|
cord Guru
Joined: 28 Apr 2007 Posts: 344
|
Posted: Sat Jan 25, 2020 3:59 pm Post subject: |
|
|
There's only /dev/video0 and /dev/radio0 in my system (as well as in Debian). |
|
Back to top |
|
|
cord Guru
Joined: 28 Apr 2007 Posts: 344
|
Posted: Sat Jan 25, 2020 6:36 pm Post subject: |
|
|
Alright, the only application, which is working (not good, but at all) is mplayer.
Here's output:
Code: | $ mplayer -rawaudio rate=32000 radio://106.6/capture -radio adevice=hw=1
MPlayer 1.3.0-9.2.0 (C) 2000-2016 MPlayer Team
Playing radio://106.6/capture.
[radio] Using V4Lv2 radio interface.
[radio] Radio frequency parameter detected.
[radio] Using frequency: 106.60.
Cache fill: 35.06% (224000 bytes)
rawaudio file format detected.
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 32000 Hz, 2 ch, s16le, 1024.0 kbit/100.00% (ratio: 128000->128000)
Selected audio codec: [pcm] afm: pcm (Uncompressed PCM)
==========================================================================
AO: [oss] 32000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 0.0 (00.0) of 0.0 (unknown) 0.1%
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
A: 0.2 (00.2) of 0.0 (unknown) 13.0%
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
A: 1.2 (01.2) of 0.0 (unknown) 45.9%
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
A: 2.0 (01.9) of 0.0 (unknown) 55.3%
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
A: 3.2 (03.2) of 0.0 (unknown) 72.2%
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
A: 4.2 (04.2) of 0.0 (unknown) 78.5%
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
A: 5.2 (05.2) of 0.0 (unknown) 83.3%
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
A: 6.0 (05.9) of 0.0 (unknown) 83.3%
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
A: 7.2 (07.1) of 0.0 (unknown) 80.5%
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
Cache empty, consider increasing -cache and/or -cache-min. [performance issue]
A: 7.8 (07.7) of 0.0 (unknown) 80.3%
Exiting... (Quit) |
But the sound is flickering (see cache errors). If I remove '-rawaudio rate=32000' option, in addition to flickering, the sound will be almost double speed playing.
Who can help with this? |
|
Back to top |
|
|
soundrolf Tux's lil' helper
Joined: 08 Sep 2016 Posts: 122 Location: Cologne / Germany
|
Posted: Sun Jan 26, 2020 1:31 pm Post subject: |
|
|
You may check which use flags are enabled
These is my /etc/portage/package.use/mplayer file
media-video/mplayer bidi cdio cddb cdparanoia fbcon iconv jpeg libcaca mad mp3 network dvdnav enca faac faad libmpeg2 mng osdmenu pnm png radio rtc rtmp sdl speex theora truetype unicode shm tga toolame twolame vcd vidix yuv4mpeg dvd ggi v4l gif xinerama x264 dvb oss
hope it helps
Regard |
|
Back to top |
|
|
cord Guru
Joined: 28 Apr 2007 Posts: 344
|
Posted: Sun Jan 26, 2020 5:21 pm Post subject: |
|
|
soundrolf wrote: | media-video/mplayer bidi cddb cdparanoia fbcon libcaca faac faad libmpeg2 pnm rtc rtmp speex theora tga toolame twolame vcd vidix yuv4mpeg ggi xinerama dvb oss |
Do I really need all of this?
my USE:
Code: | media-video/mplayer-1.3.0-r5::gentoo USE="X a52 alsa cdio dts dvd dvdnav enca encode gif iconv ipv6 jpeg libass mad mng mp3 network opengl osdmenu png pulseaudio radio sdl shm truetype unicode v4l vorbis x264 xscreensaver xv xvid -aalib (-altivec) (-aqua) -bidi -bl -bluray -bs2b -cddb -cdparanoia -cpudetection -debug -dga -doc -dv -dvb -faac -faad -fbcon -ftp -ggi -gsm -jack -joystick -ladspa -libcaca -libmpeg2 -lirc -live -lzo -md5sum -nas (-nut) -openal -oss -pnm -pvr -rar -rtc -rtmp -samba (-selinux) -speex -tga -theora -toolame -tremor -twolame -vcd -vdpau (-vidix) -xinerama -yuv4mpeg -zoran" CPU_FLAGS_X86="mmx mmxext sse sse2 ssse3 -3dnow -3dnowext" VIDEO_CARDS="-mga" 0 KiB |
|
|
Back to top |
|
|
|