How to use VLC with an FM radio board?

*nix specific usage questions
calande
Blank Cone
Blank Cone
Posts: 86
Joined: 17 Feb 2010 13:53
Operating System: W10
Location: Coneville

How to use VLC with an FM radio board?

Postby calande » 03 Dec 2011 22:43

Hello,

I hooked up an FM radio board on my computer, it is detected by Linux but I'm unable to make it work with VLC. I would like to listen to station 95.7Mhz, but VLC returns a video with a snowy signal and no sound. Here's the command I use:

Code: Select all

vlc v4l2:// :v4l2-dev=/dev/radio0 :v4l2-standard=0 :v4l2-tuner-frequency=95700000
Here's the content of my /dev directory:

Code: Select all

agpgart fd loop4 ppp ram4 shm tty16 tty3 tty43 tty57 ttyS11 ttyS25 urandom vcs6 autofs full loop5 psaux ram5 snapshot tty17 tty30 tty44 tty58 ttyS12 ttyS26 usbmon0 vcsa block fuse loop6 ptmx ram6 snd tty18 tty31 tty45 tty59 ttyS13 ttyS27 usbmon1 vcsa1 bsg hidraw0 loop7 pts ram7 stderr tty19 tty32 tty46 tty6 ttyS14 ttyS28 usbmon2 vcsa2 btrfs-control hidraw1 mapper radio0 ram8 stdin tty2 tty33 tty47 tty60 ttyS15 ttyS29 usbmon3 vcsa3 bus hidraw2 mcelog ram0 ram9 stdout tty20 tty34 tty48 tty61 ttyS16 ttyS3 usbmon4 vcsa4 char hidraw3 mem ram1 random tty tty21 tty35 tty49 tty62 ttyS17 ttyS30 usbmon5 vcsa5 console hpet net ram10 rfkill tty0 tty22 tty36 tty5 tty63 ttyS18 ttyS31 v4l vcsa6 core input network_latency ram11 rtc tty1 tty23 tty37 tty50 tty7 ttyS19 ttyS4 vbi0 vga_arbiter cpu kmsg network_throughput ram12 rtc0 tty10 tty24 tty38 tty51 tty8 ttyS2 ttyS5 vcs video0 cpu_dma_latency log null ram13 sda tty11 tty25 tty39 tty52 tty9 ttyS20 ttyS6 vcs1 zero disk loop0 nvidia0 ram14 sda1 tty12 tty26 tty4 tty53 ttyprintk ttyS21 ttyS7 vcs2 dvb loop1 nvidiactl ram15 sda2 tty13 tty27 tty40 tty54 ttyS0 ttyS22 ttyS8 vcs3 ecryptfs loop2 oldmem ram2 sda5 tty14 tty28 tty41 tty55 ttyS1 ttyS23 ttyS9 vcs4 fb0 loop3 port ram3 sg0 tty15 tty29 tty42 tty56 ttyS10 ttyS24 uinput vcs5
Any idea?
Thanks,

funman
Developer
Developer
Posts: 1159
Joined: 03 Sep 2006 04:03
VLC version: master
Operating System: All of them
Location: Lost, please help me

Re: How to use VLC with an FM radio board?

Postby funman » 04 Dec 2011 04:23

Interesting, I don't think we ever tried an audio V4L2 device.

Can you run with vlc -vv and paste the (full) output?

calande
Blank Cone
Blank Cone
Posts: 86
Joined: 17 Feb 2010 13:53
Operating System: W10
Location: Coneville

Re: How to use VLC with an FM radio board?

Postby calande » 04 Dec 2011 08:10

Sure, there you go:

Code: Select all

$ vlc -vv v4l2:// :v4l2-dev=/dev/radio0 :v4l2-standard=0 :v4l2-tuner-frequency=95700000 VLC media player 1.1.12 The Luggage (revision exported) [0x8f1a914] main libvlc debug: VLC media player - 1.1.12 The Luggage [0x8f1a914] main libvlc debug: Copyright © 1996-2011 the VideoLAN team [0x8f1a914] main libvlc debug: revision exported [0x8f1a914] main libvlc debug: configured with ./configure '--enable-static' '--build=i686-linux-gnu' '--config-cache' '--disable-maintainer-mode' '--disable-silent-rules' '--disable-update-check' '--enable-fast-install' '--prefix=/usr' '--docdir=/usr/share/doc/vlc-nox' '--sysconfdir=/etc' '--with-binary-version=2~oneiric1' '--enable-a52' '--enable-aa' '--enable-bonjour' '--enable-caca' '--enable-dca' '--enable-dirac' '--enable-dvb' '--enable-dvbpsi' '--enable-dvdnav' '--enable-faad' '--enable-flac' '--enable-fluidsynth' '--enable-freetype' '--enable-fribidi' '--enable-ggi' '--enable-gnutls' '--enable-jack' '--enable-kate' '--enable-libass' '--enable-libmpeg2' '--enable-libproxy' '--enable-libxml2' '--enable-lirc' '--enable-live555' '--enable-mad' '--enable-mkv' '--enable-mod' '--enable-mozilla' '--enable-mpc' '--enable-mtp' '--enable-mux_ogg' '--enable-ncurses' '--enable-notify' '--enable-ogg' '--enable-pulse' '--enable-qt4' '--enable-realrtsp' '--enable-schroedinger' '--enable-sdl' '--enable-shout' '--enable-skins2' '--enable-smb' '--enable-speex' '--enable-svg' '--enable-taglib' '--enable-theora' '--enable-twolame' '--enable-upnp' '--enable-vcd' '--enable-vcdx' '--enable-vorbis' '--enable-x264' '--enable-zvbi' '--with-kde-solid=/usr/share/kde4/apps/solid/actions/' '--with-mozilla-pkg=mozilla-plugin' '--disable-dxva2' '--disable-gnomevfs' '--disable-goom' '--disable-osso_screensaver' '--disable-portaudio' '--disable-projectm' '--disable-sqlite' '--disable-telx' '--enable-alsa' '--enable-atmo' '--enable-dc1394' '--enable-dv' '--enable-libva' '--enable-pvr' '--enable-udev' '--enable-v4l2' '--enable-svgalib' 'build_alias=i686-linux-gnu' 'CFLAGS=-g -O2' 'LDFLAGS=-Wl,--as-needed' 'CPPFLAGS=' 'CXXFLAGS=-g -O2' [0x8f1a914] main libvlc debug: translation test: code is "C" [0x8f1a914] main libvlc debug: checking plugin modules [0x8f1a914] main libvlc debug: loading plugins cache file /usr/lib/vlc/plugins/plugins-04041e-1f8.dat [0x8f1a914] main libvlc debug: recursively browsing `/usr/lib/vlc/plugins' [0x8f1a914] main libvlc debug: saving plugins cache /usr/lib/vlc/plugins/plugins-04041e-1f8.dat [0x8f1a914] main libvlc debug: module bank initialized (394 modules) [0x8f1a914] main libvlc debug: opening config file (/home/charles/.config/vlc/vlcrc) [0x8f1a914] main libvlc debug: CPU has capabilities MMX 3DNow! MMXEXT SSE SSE2 SSE3 FPU [0x8f1a914] main libvlc debug: looking for memcpy module: 4 candidates [0x8f1a914] main libvlc debug: using memcpy module "memcpymmxext" [0x8fc44b4] main input debug: Creating an input for 'Media Library' [0x8fc44b4] main input debug: Input is a meta file: disabling unneeded options [0x8fc44b4] main input debug: using timeshift granularity of 50 MiB [0x8fc44b4] main input debug: using timeshift path '/tmp' [0x8fc44b4] main input debug: `file/xspf-open:///home/charles/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/charles/.local/share/vlc/ml.xspf' [0x8fc44b4] main input debug: creating demux: access='file' demux='xspf-open' path='/home/charles/.local/share/vlc/ml.xspf' [0x8fc68bc] main demux debug: looking for access_demux module: 2 candidates [0x8fc68bc] main demux debug: no access_demux module matching "file" could be loaded [0x8fc68bc] main demux debug: TIMER module_need() : 7.371 ms - Total 7.371 ms / 1 intvls (Avg 7.371 ms) [0x8fc44b4] main input debug: creating access 'file' path='/home/charles/.local/share/vlc/ml.xspf' [0x8fae30c] main access debug: looking for access module: 2 candidates [0x8fae30c] filesystem access debug: opening file `/home/charles/.local/share/vlc/ml.xspf' [0x8fae30c] main access debug: using access module "filesystem" [0x8fae30c] main access debug: TIMER module_need() : 3.008 ms - Total 3.008 ms / 1 intvls (Avg 3.008 ms) [0x8fadffc] main stream debug: Using AStream*Stream [0x8fadffc] main stream debug: pre buffering [0x8fadffc] main stream debug: received first data after 0 ms [0x8fadffc] main stream debug: pre-buffering done 296 bytes in 0s - 1086 KiB/s [0x8fadb64] main stream debug: looking for stream_filter module: 5 candidates [0x8fadb64] main stream debug: no stream_filter module matching "any" could be loaded [0x8fadb64] main stream debug: TIMER module_need() : 3.668 ms - Total 3.668 ms / 1 intvls (Avg 3.668 ms) [0x8fadb64] main stream debug: looking for stream_filter module: 1 candidate [0x8fadb64] main stream debug: using stream_filter module "stream_filter_record" [0x8fadb64] main stream debug: TIMER module_need() : 0.997 ms - Total 0.997 ms / 1 intvls (Avg 0.997 ms) [0x8fc44b4] main input debug: creating demux: access='file' demux='xspf-open' path='/home/charles/.local/share/vlc/ml.xspf' [0x8fb03d4] main demux debug: looking for demux module: 1 candidate [0x8fb03d4] playlist demux debug: using XSPF playlist reader [0x8fb03d4] main demux debug: using demux module "playlist" [0x8fb03d4] main demux debug: TIMER module_need() : 2.483 ms - Total 2.483 ms / 1 intvls (Avg 2.483 ms) [0x8fb1624] main demux meta debug: looking for meta reader module: 2 candidates [0x8fb1624] lua demux meta debug: Trying Lua scripts in /home/charles/.local/share/vlc/lua/meta/reader [0x8fb1624] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0x8fb1624] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0x8fb1624] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0x8fb1624] main demux meta debug: no meta reader module matching "any" could be loaded [0x8fb1624] main demux meta debug: TIMER module_need() : 22.389 ms - Total 22.389 ms / 1 intvls (Avg 22.389 ms) [0x8fc44b4] main input debug: `file/xspf-open:///home/charles/.local/share/vlc/ml.xspf' successfully opened [0x8fb1624] main xml debug: looking for xml module: 2 candidates [0x8fb1624] main xml debug: using xml module "xml" [0x8fb1624] main xml debug: TIMER module_need() : 1.471 ms - Total 1.471 ms / 1 intvls (Avg 1.471 ms) [0x8fb03d4] playlist demux debug: parsed 0 tracks successfully [0x8fb1624] main xml debug: removing module "xml" [0x8fc44b4] main input debug: EOF reached [0x8fb03d4] main demux debug: removing module "playlist" [0x8fadb64] main stream debug: removing module "stream_filter_record" [0x8fae30c] main access debug: removing module "filesystem" [0x8fc44b4] main input debug: TIMER input launching for 'Media Library' : 42.684 ms - Total 42.684 ms / 1 intvls (Avg 42.684 ms) [0x8fb03d4] main interface debug: looking for interface module: 1 candidate [0x8fb03d4] main interface debug: using interface module "hotkeys" [0x8fb03d4] main interface debug: TIMER module_need() : 1.858 ms - Total 1.858 ms / 1 intvls (Avg 1.858 ms) [0x8fb1624] main interface debug: looking for interface module: 1 candidate Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS") Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE") [0x8fc4ed4] main playlist debug: Activated [0x8fb1624] main interface debug: using interface module "inhibit" [0x8fb1624] main interface debug: TIMER module_need() : 12.673 ms - Total 12.673 ms / 1 intvls (Avg 12.673 ms) [0x8fc4ed4] main playlist debug: adding item `v4l2://' ( v4l2:// ) [0x8fc5854] main interface debug: looking for interface module: 1 candidate [0x8fc4ed4] main playlist debug: rebuilding array of current - root Playlist [0x8fc4ed4] main playlist debug: rebuild done - 1 items, index -1 [0x8fc5854] main interface debug: using interface module "signals" [0x8fc5854] main interface debug: TIMER module_need() : 0.973 ms - Total 0.973 ms / 1 intvls (Avg 0.973 ms) [0x8fc77f4] main interface debug: looking for interface module: 1 candidate [0x8fc77f4] main interface debug: using interface module "globalhotkeys" [0x8fc77f4] main interface debug: TIMER module_need() : 33.120 ms - Total 33.120 ms / 1 intvls (Avg 33.120 ms) [0x8f1a914] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [0x8fbaf1c] main interface debug: looking for interface module: 5 candidates Blocked: call to setlocale(6, "") Blocked: call to setlocale(6, "") (process:2126): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. [0x9256ce4] main generic debug: looking for extension module: 1 candidate [0x9256ce4] lua generic debug: Opening EXPERIMENTAL Lua Extension module [0x9256ce4] lua generic debug: Trying Lua scripts in /home/charles/.local/share/vlc/lua/extensions [0x9256ce4] lua generic debug: Trying Lua scripts in /usr/lib/vlc/lua/extensions [0x9256ce4] lua generic debug: Trying Lua playlist script /usr/lib/vlc/lua/extensions/allocine-fr.luac [0x9256ce4] lua generic debug: Scanning Lua script /usr/lib/vlc/lua/extensions/allocine-fr.luac [0x9256ce4] lua generic debug: Script /usr/lib/vlc/lua/extensions/allocine-fr.luac has the following capability flags: 0xc [0x9256ce4] lua generic debug: Trying Lua scripts in /usr/share/vlc/lua/extensions [0x9256ce4] main generic debug: using extension module "lua" [0x9256ce4] main generic debug: TIMER module_need() : 5.298 ms - Total 5.298 ms / 1 intvls (Avg 5.298 ms) [0x928fc74] main probe debug: looking for services probe module: 9 candidates [0x928fc74] main probe debug: no services probe module matching "any" could be loaded [0x928fc74] main probe debug: TIMER module_need() : 41.042 ms - Total 41.042 ms / 1 intvls (Avg 41.042 ms) [0x8fbaf1c] qt4 interface debug: Sorting by column -1, order 0 [0x8fbaf1c] qt4 interface debug: Sorting by column -1, order 0 [0x8fbaf1c] main interface debug: using interface module "qt4" [0x8fbaf1c] main interface debug: TIMER module_need() : 788.872 ms - Total 788.872 ms / 1 intvls (Avg 788.872 ms) [0x8fc4ed4] main playlist debug: processing request item null node Playlist skip 0 [0x8fc4ed4] main playlist debug: starting new item [0x8fc4ed4] main playlist debug: creating new input thread [0x93beb9c] main input debug: Creating an input for 'v4l2://' [0x93beb9c] main input debug: thread (input) created at priority 10 (input/input.c:220) [0x8fbaf1c] qt4 interface debug: IM: Setting an input [0x93beb9c] main input debug: thread started [0x93beb9c] main input debug: using timeshift granularity of 50 MiB [0x93beb9c] main input debug: using timeshift path '/tmp' [0x93beb9c] main input debug: `v4l2://' gives access `v4l2' demux `' path `' [0x93beb9c] main input debug: creating demux: access='v4l2' demux='' path='' [0x93be62c] main demux debug: looking for access_demux module: 1 candidate [0x93be62c] v4l2 demux debug: Trying direct kernel v4l2 [0x93be62c] v4l2 demux debug: opening device '/dev/video0' [0x93be62c] v4l2 demux debug: V4L2 device: Terratec Cinergy HT PCI MKII using driver: cx8800 (version: 0.0.8) on PCI:0000:00:09.0 [0x93be62c] v4l2 demux debug: the device has the capabilities: (X) Video Capture, ( ) Audio, (X) Tuner, ( ) Radio [0x93be62c] v4l2 demux debug: supported I/O methods are: (X) Read/Write, (X) Streaming, ( ) Asynchronous [0x93be62c] v4l2 demux debug: device supports raw VBI capture [0x93be62c] v4l2 demux debug: video input 0 (Television) has type: Tuner adapter * [0x93be62c] v4l2 demux debug: video input 1 (Composite1) has type: External analog input [0x93be62c] v4l2 demux debug: video input 2 (S-Video) has type: External analog input [0x93be62c] v4l2 demux debug: video standard 0 is: NTSC-M [0x93be62c] v4l2 demux debug: video standard 1 is: NTSC-M-JP [0x93be62c] v4l2 demux debug: video standard 2 is: NTSC-443 [0x93be62c] v4l2 demux debug: video standard 3 is: PAL-BG [0x93be62c] v4l2 demux debug: video standard 4 is: PAL-I [0x93be62c] v4l2 demux debug: video standard 5 is: PAL-DK [0x93be62c] v4l2 demux debug: video standard 6 is: PAL-M [0x93be62c] v4l2 demux debug: video standard 7 is: PAL-N [0x93be62c] v4l2 demux debug: video standard 8 is: PAL-Nc [0x93be62c] v4l2 demux debug: video standard 9 is: PAL-60 [0x93be62c] v4l2 demux debug: video standard 10 is: SECAM-B [0x93be62c] v4l2 demux debug: video standard 11 is: SECAM-G [0x93be62c] v4l2 demux debug: video standard 12 is: SECAM-H [0x93be62c] v4l2 demux debug: video standard 13 is: SECAM-DK [0x93be62c] v4l2 demux debug: video standard 14 is: SECAM-L [0x93be62c] v4l2 demux debug: tuner 0 (Television) has type: Analog TV, frequency range: 0.0 kHz -> 268435455937.5 kHz [0x93be62c] v4l2 demux debug: tuner 0 (Television) frequency: 400000.0 kHz [0x93be62c] v4l2 demux debug: device supports chroma GREY [8 bpp, gray, GREY] [0x93be62c] v4l2 demux warning: Unable to query for frame sizes [0x93be62c] v4l2 demux debug: device supports chroma RV15 [15 bpp RGB, le, RGBO] [0x93be62c] v4l2 demux warning: Unable to query for frame sizes [0x93be62c] v4l2 demux debug: device codec RGBQ (15 bpp RGB, be) not supported [0x93be62c] v4l2 demux debug: device supports chroma RV16 [16 bpp RGB, le, RGBP] [0x93be62c] v4l2 demux warning: Unable to query for frame sizes [0x93be62c] v4l2 demux debug: device codec RGBR (16 bpp RGB, be) not supported [0x93be62c] v4l2 demux debug: device supports chroma RV24 [24 bpp RGB, le, BGR3] [0x93be62c] v4l2 demux warning: Unable to query for frame sizes [0x93be62c] v4l2 demux debug: device supports chroma RV32 [32 bpp RGB, le, BGR4] [0x93be62c] v4l2 demux warning: Unable to query for frame sizes [0x93be62c] v4l2 demux debug: device supports chroma RV32 [32 bpp RGB, be, RGB4] [0x93be62c] v4l2 demux warning: Unable to query for frame sizes [0x93be62c] v4l2 demux debug: device supports chroma YUY2 [4:2:2, packed, YUYV, YUYV] [0x93be62c] v4l2 demux warning: Unable to query for frame sizes [0x93be62c] v4l2 demux debug: device supports chroma UYVY [4:2:2, packed, UYVY, UYVY] [0x93be62c] v4l2 demux warning: Unable to query for frame sizes [0x93be62c] v4l2 demux debug: '/dev/video0' is a video device [0x93be62c] v4l2 demux debug: Tuner frequency set [0x93be62c] v4l2 demux debug: Extended control API not supported by v4l2 driver [0x93be62c] v4l2 demux debug: Available control: Brightness (980900) [0x93be62c] v4l2 demux debug: integer control [0x93be62c] v4l2 demux debug: valid values: 0 to 255 by steps of 1 [0x93be62c] v4l2 demux debug: default value: 127 [0x93be62c] v4l2 demux debug: current value: 127 [0x93be62c] v4l2 demux debug: Available control: Contrast (980901) [0x93be62c] v4l2 demux debug: integer control [0x93be62c] v4l2 demux debug: valid values: 0 to 255 by steps of 1 [0x93be62c] v4l2 demux debug: default value: 63 [0x93be62c] v4l2 demux debug: current value: 63 [0x93be62c] v4l2 demux debug: Available control: Saturation (980902) [0x93be62c] v4l2 demux debug: integer control [0x93be62c] v4l2 demux debug: valid values: 0 to 255 by steps of 1 [0x93be62c] v4l2 demux debug: default value: 127 [0x93be62c] v4l2 demux debug: current value: 127 [0x93be62c] v4l2 demux debug: Available control: Hue (980903) [0x93be62c] v4l2 demux debug: integer control [0x93be62c] v4l2 demux debug: valid values: 0 to 255 by steps of 1 [0x93be62c] v4l2 demux debug: default value: 127 [0x93be62c] v4l2 demux debug: current value: 127 [0x93be62c] v4l2 demux debug: Available control: Volume (980905) [0x93be62c] v4l2 demux debug: integer control [0x93be62c] v4l2 demux debug: valid values: 0 to 63 by steps of 1 [0x93be62c] v4l2 demux debug: default value: 63 [0x93be62c] v4l2 demux debug: current value: 63 [0x93be62c] v4l2 demux debug: Available control: Balance (980906) [0x93be62c] v4l2 demux debug: integer control [0x93be62c] v4l2 demux debug: valid values: 0 to 127 by steps of 1 [0x93be62c] v4l2 demux debug: default value: 64 [0x93be62c] v4l2 demux debug: current value: 64 [0x93be62c] v4l2 demux debug: Available control: Mute (980909) [0x93be62c] v4l2 demux debug: boolean control [0x93be62c] v4l2 demux debug: default value: 1 [0x93be62c] v4l2 demux debug: current value: 1 [0x93be62c] v4l2 demux debug: video audio-mute: 0 [0x93be62c] v4l2 demux debug: Available control: Chroma AGC (98091d) [0x93be62c] v4l2 demux debug: boolean control [0x93be62c] v4l2 demux debug: default value: 1 [0x93be62c] v4l2 demux debug: current value: 1 [0x93be62c] v4l2 demux debug: Available control: Color killer (98091e) [0x93be62c] v4l2 demux debug: boolean control [0x93be62c] v4l2 demux debug: default value: 1 [0x93be62c] v4l2 demux debug: current value: 1 [0x93be62c] v4l2 demux debug: using streaming i/o (mmap) [0x93be62c] v4l2 demux debug: found default width and height of 320x240 [0x93be62c] v4l2 demux debug: will try to find optimal width and height. [0x93be62c] v4l2 demux debug: Found maximum framerate of -1.000000 [0x93be62c] v4l2 demux warning: Could not find optimal width and height, falling back to driver default. [0x93be62c] v4l2 demux debug: Driver requires at most 153600 bytes to store a complete image [0x93be62c] v4l2 demux debug: Interlacing setting: bottom field only [0x93be62c] v4l2 demux debug: added new video es YUY2 320x240 [0x93beb9c] main input debug: selecting program id=0 [0x93be62c] main demux debug: using access_demux module "v4l2" [0x93be62c] main demux debug: TIMER module_need() : 3950.658 ms - Total 3950.658 ms / 1 intvls (Avg 3950.658 ms) [0x8fb71dc] main decoder debug: looking for decoder module: 30 candidates [0x8fb71dc] rawvideo decoder warning: invalid frame rate 0/0, using 25 fps instead [0x8fb71dc] main decoder debug: using decoder module "rawvideo" [0x8fb71dc] main decoder debug: TIMER module_need() : 246.354 ms - Total 246.354 ms / 1 intvls (Avg 246.354 ms) [0x8fb71dc] main decoder debug: thread (decoder) created at priority 0 (input/decoder.c:301) [0x8fb71dc] main decoder debug: thread started [0x93e126c] main demux meta debug: looking for meta reader module: 2 candidates [0x93e126c] lua demux meta debug: Trying Lua scripts in /home/charles/.local/share/vlc/lua/meta/reader [0x93e126c] lua demux meta debug: Trying Lua scripts in /usr/lib/vlc/lua/meta/reader [0x93e126c] lua demux meta debug: Trying Lua playlist script /usr/lib/vlc/lua/meta/reader/filename.luac [0x93e126c] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader [0x93e126c] main demux meta debug: no meta reader module matching "any" could be loaded [0x93e126c] main demux meta debug: TIMER module_need() : 1.166 ms - Total 1.166 ms / 1 intvls (Avg 1.166 ms) [0x93beb9c] main input debug: `v4l2://' successfully opened [0x93beb9c] main input debug: Buffering 0% [0x93beb9c] main input debug: Buffering 2% [0x93beb9c] main input debug: Buffering 3% [0x93beb9c] main input debug: Buffering 3% [0x93beb9c] main input debug: no usable vout present, spawning one [0x939cf84] main spu text debug: looking for text renderer module: 2 candidates [0x939cf84] freetype spu text debug: Building font databases. [0x939cf84] freetype spu text debug: Took 1 microseconds [0x939cf84] freetype spu text debug: Using Serif Bold as font from file /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf [0x939cf84] freetype spu text debug: using fontsize: 2 [0x939cf84] main spu text debug: using text renderer module "freetype" [0x939cf84] main spu text debug: TIMER module_need() : 18.982 ms - Total 18.982 ms / 1 intvls (Avg 18.982 ms) [0x93e1324] main scale debug: looking for video filter2 module: 18 candidates [0x93e1324] swscale scale debug: 32x32 chroma: YUVA -> 16x16 chroma: YUVA with scaling using Bicubic (good quality) [0x93e1324] main scale debug: using video filter2 module "swscale" [0x93e1324] main scale debug: TIMER module_need() : 10.096 ms - Total 10.096 ms / 1 intvls (Avg 10.096 ms) [0x943c08c] main scale debug: looking for video filter2 module: 18 candidates [0x943c08c] yuvp scale debug: YUVP to YUVA converter [0x943c08c] main scale debug: using video filter2 module "yuvp" [0x943c08c] main scale debug: TIMER module_need() : 15.054 ms - Total 15.054 ms / 1 intvls (Avg 15.054 ms) [0x93e2fb4] main video output debug: window size: 320x240 [0x93e2fb4] main video output debug: Deinterlacing available [0x93e2fb4] main video output debug: deinterlace 0, mode blend, is_needed 0 [0x93e2fb4] main video output debug: looking for video output module: 1 candidate [0x93e2fb4] vout_wrapper video output debug: Opening vout display wrapper [0x94e3a74] main generic debug: looking for vout display module: 7 candidates [0x94e5594] main window debug: looking for vout window xid module: 4 candidates [0x94e5594] qt4 window debug: requesting video... [0x8fbaf1c] qt4 interface debug: Video was requested 0, 0 [0x93beb9c] main input debug: Buffering 30% [0x94e5594] main window debug: using vout window xid module "qt4" [0x94e5594] main window debug: TIMER module_need() : 43.499 ms - Total 43.499 ms / 1 intvls (Avg 43.499 ms) [0x94e5d74] main inhibit debug: looking for inhibit module: 2 candidates [0x94e5d74] main inhibit debug: using inhibit module "xdg_screensaver" [0x94e5d74] main inhibit debug: TIMER module_need() : 1.285 ms - Total 1.285 ms / 1 intvls (Avg 1.285 ms) [0x94e5d74] xdg_screensaver inhibit debug: started xdg-screensaver (PID = 2144) [0x94e3a74] xcb_xv generic debug: connected to X11.0 server [0x94e3a74] xcb_xv generic debug: vendor : The X.Org Foundation [0x94e3a74] xcb_xv generic debug: version: 11004000 [0x94e3a74] xcb_xv generic debug: using screen 0x18f [0x94e3a74] xcb_xv generic debug: using XVideo extension v2.2 [0x94e3a74] xcb_xv generic debug: using adaptor NV17 Video Texture [0x94e3a74] xcb_xv generic debug: using port 331 [0x94e3a74] xcb_xv generic debug: using image format 0x32595559 [0x94e3a74] xcb_xv generic debug: using X11 visual ID 0x21 (depth: 24) [0x94e3a74] xcb_xv generic debug: using X11 window 0x04600000 [0x94e3a74] xcb_xv generic debug: using X11 graphic context 0x04600002 [0x94e3a74] main generic debug: VoutDisplayEvent 'fullscreen' 0 [0x94e3a74] main generic debug: VoutDisplayEvent 'resize' 427x240 window [0x94e3a74] main generic debug: using vout display module "xcb_xv" [0x94e3a74] main generic debug: TIMER module_need() : 122.377 ms - Total 122.377 ms / 1 intvls (Avg 122.377 ms) [0x93e2fb4] main video output debug: using video output module "vout_wrapper" [0x93e2fb4] main video output debug: TIMER module_need() : 126.026 ms - Total 126.026 ms / 1 intvls (Avg 126.026 ms) [0x93beb9c] main input debug: Buffering 60% [0x93e2fb4] main video output debug: got 25 direct buffer(s) [0x93e2fb4] main video output debug: pic render sz 320x240, of (0,0), vsz 320x240, 4cc YUY2, sar 1:1, msk r0x0 g0x0 b0x0 [0x93e2fb4] main video output debug: pic in sz 320x240, of (0,0), vsz 320x240, 4cc YUY2, sar 1:1, msk r0x0 g0x0 b0x0 [0x93e2fb4] main video output debug: pic out sz 320x240, of (0,0), vsz 320x240, 4cc YUY2, sar 1:1, msk r0x0 g0x0 b0x0 [0x93e2fb4] main video output debug: direct render, mapping render pictures 0-23 to system pictures 1-24 [0x8fb71dc] main decoder debug: End of video preroll [0x8fb71dc] main decoder debug: Received first picture [0x94e3a74] xcb_xv generic debug: display is visible [0x939cf84] freetype spu text debug: using fontsize: 15 [0x950f80c] main blend debug: looking for video blending module: 1 candidate [0x950f80c] blend blend debug: chroma: YUVA -> YUY2 [0x950f80c] main blend debug: using video blending module "blend" [0x950f80c] main blend debug: TIMER module_need() : 6.515 ms - Total 6.515 ms / 1 intvls (Avg 6.515 ms) [0x8fc5854] signals interface warning: signal 17 overridden (0x75aa550) [0x8fc5854] signals interface warning: /usr/lib/i386-linux-gnu/libQtCore.so.4(?)[(nil)] [0x93beb9c] main input debug: Stream buffering done (383 ms in 383 ms) [0x93beb9c] main input debug: Decoder buffering done in 0 ms [0x94e3a74] main generic debug: auto hidding mouse [0x8f1a914] main libvlc debug: deactivating the playlist [0x8fc4ed4] main playlist debug: Deactivate [0x8fc4ed4] main playlist debug: incoming request - stopping current input [0x8fc4ed4] main playlist debug: dying input [0x8fbaf1c] qt4 interface debug: Exec finished() [0x8fbaf1c] qt4 interface debug: Video is not needed anymore [0x8fbaf1c] qt4 interface debug: Killing extension dialog provider [0x8fbaf1c] qt4 interface debug: ExtensionsDialogProvider is quitting... [0x9256ce4] lua generic debug: Deactivating all loaded extensions [0x9256ce4] lua generic debug: All extensions are now deactivated [0x9256ce4] main generic debug: removing module "lua" [0x8fbaf1c] qt4 interface debug: Playlist Destroyed [0x8fbaf1c] qt4 interface debug: IM: Deleting the input [0x93beb9c] main input debug: control type=0 [0x93beb9c] main input debug: control: stopping input [0x8fc4ed4] main playlist debug: dying input [0x8fb71dc] main decoder debug: removing module "rawvideo" [0x8fb71dc] main decoder debug: killing decoder fourcc `YUY2', 0 PES in FIFO [0x93e2fb4] main video output debug: [0] 4 0 [0x93e2fb4] main video output debug: [1] 4 0 [0x93e2fb4] main video output debug: [2] 4 0 [0x93e2fb4] main video output debug: [3] 4 0 [0x93e2fb4] main video output debug: [4] 4 0 [0x93e2fb4] main video output debug: [5] 4 0 [0x93e2fb4] main video output debug: [6] 4 0 [0x93e2fb4] main video output debug: [7] 4 0 [0x93e2fb4] main video output debug: [8] 4 0 [0x93e2fb4] main video output debug: [9] 4 0 [0x93e2fb4] main video output debug: [10] 4 0 [0x93e2fb4] main video output debug: [11] 4 0 [0x93e2fb4] main video output debug: [12] 4 0 [0x93e2fb4] main video output debug: [13] 4 0 [0x93e2fb4] main video output debug: [14] 4 0 [0x93e2fb4] main video output debug: [15] 4 0 [0x93e2fb4] main video output debug: [16] 4 0 [0x93e2fb4] main video output debug: [17] 4 0 [0x93e2fb4] main video output debug: [18] 4 0 [0x93e2fb4] main video output debug: [19] 4 0 [0x93e2fb4] main video output debug: [20] 2 0 [0x93e2fb4] main video output debug: [21] 2 0 [0x93e2fb4] main video output debug: [22] 4 0 [0x93e2fb4] main video output debug: [23] 4 0 [0x93beb9c] main input debug: saving a free vout [0x94e3a74] xcb_xv generic debug: cannot put image: X11 error 9 [0x94e3a74] xcb_xv generic debug: unhandled event 18 [0x94e3a74] main generic debug: VoutDisplayEvent 'close' [0x94e3a74] xcb_xv generic debug: cannot put image: X11 error 9 [0x94e3a74] xcb_xv generic debug: cannot put image: X11 error 9 [0x93be62c] main demux debug: removing module "v4l2" [0x93beb9c] main input debug: Program doesn't contain anymore ES [0x8fc4ed4] main playlist debug: dead input [0x93beb9c] main input debug: thread ended [0x93e2fb4] main video output debug: destroying useless vout [0x94e5d74] xdg_screensaver inhibit debug: started xdg-screensaver (PID = 2186) xdg-screensaver: Window 0x042003c8 does not exist [0x8fc5854] signals interface warning: signal 17 overridden (0x75aa550) [0x8fc5854] signals interface warning: /usr/lib/i386-linux-gnu/libQtCore.so.4(?)[(nil)] [0x94e5d74] main inhibit debug: removing module "xdg_screensaver" [0x94e5594] qt4 window warning: video already released [0x94e5594] main window debug: removing module "qt4" [0x94e3a74] main generic debug: removing module "xcb_xv" [0x93e2fb4] main video output debug: removing module "vout_wrapper" [0x950f80c] main blend debug: removing module "blend" [0x939cf84] main spu text debug: removing module "freetype" [0x943c08c] main scale debug: removing module "yuvp" [0x93e1324] main scale debug: removing module "swscale" [0x914ac0c] main playlist export debug: saving Media Library to file /home/charles/.local/share/vlc/ml.xspf [0x914ac0c] main playlist export debug: looking for playlist export module: 1 candidate [0x914ac0c] main playlist export debug: using playlist export module "export" [0x914ac0c] main playlist export debug: TIMER module_need() : 4.350 ms - Total 4.350 ms / 1 intvls (Avg 4.350 ms) [0x914ac0c] main playlist export debug: removing module "export" [0x8fc4ed4] main playlist debug: Deactivated [0x8f1a914] main libvlc debug: removing all services discovery tasks [0x8f1a914] main libvlc debug: removing all interfaces [0x8fbaf1c] qt4 interface debug: requesting exit... [0x8fbaf1c] qt4 interface debug: waiting for UI thread... [0x8fbaf1c] main interface debug: removing module "qt4" [0x8fc77f4] main interface debug: removing module "globalhotkeys" [0x8fc5854] main interface debug: removing module "signals" [0x93beb9c] main input debug: TIMER input launching for 'v4l2://' : 4213.480 ms - Total 4213.480 ms / 1 intvls (Avg 4213.480 ms) [0x8fb1624] main interface debug: removing module "inhibit" [0x8fb03d4] main interface debug: removing module "hotkeys" [0x8fc4ed4] main playlist debug: destroying [0x8f1a914] main libvlc debug: TIMER ML Load : Total 46.177 ms / 1 intvls (Avg 46.177 ms) [0x8f1a914] main libvlc debug: TIMER Items array build : Total 0.031 ms / 1 intvls (Avg 0.031 ms) [0x8f1a914] main libvlc debug: TIMER ML Dump : Total 4.736 ms / 1 intvls (Avg 4.736 ms) [0x8f1a914] main libvlc debug: removing stats [0x8f1a914] main libvlc debug: removing module "memcpymmxext" $
Thanks in advance,

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to use VLC with an FM radio board?

Postby Rémi Denis-Courmont » 04 Dec 2011 10:05

In principles, you need to open the ALSA device of the FM chip, and at the same time set the V4L2 device to the correct frequency. This might work with input-slave. But then again there were some unfinished patches from Thierry Redding on this a few months ago, so I guess it does not work.

I cannot confirm this myself as I do not have such an FM chip to test with.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to use VLC with an FM radio board?

Postby Rémi Denis-Courmont » 04 Dec 2011 14:29

In any case, the key point is that you need to open the ALSA device (audio capture) to get audio. The V4L2 device does not output audio: it only output video (where applicable) and supports radio tuning (where applicable).

Corollary: if you know a V4L2-support FM tuner with USB or PCI connector, references would be appreciated.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

calande
Blank Cone
Blank Cone
Posts: 86
Joined: 17 Feb 2010 13:53
Operating System: W10
Location: Coneville

Re: How to use VLC with an FM radio board?

Postby calande » 04 Dec 2011 15:12

Thanks. Do you know how to open the ALSA device (audio capture) to get audio?

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to use VLC with an FM radio board?

Postby Rémi Denis-Courmont » 04 Dec 2011 21:08

Like any audio device.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

calande
Blank Cone
Blank Cone
Posts: 86
Joined: 17 Feb 2010 13:53
Operating System: W10
Location: Coneville

Re: How to use VLC with an FM radio board?

Postby calande » 22 Feb 2012 19:57

I'm having a hard time making VLC to work with my radio board. This is what I'm using:

Code: Select all

vlc --no-video :dshow-adev=/dev/radio0 :dshow-tuner-channel=95700000 :dshow-tuner-input=2 :dshow-amtuner-mode=2 :dshow-audio-channels=2 :dshow-audio-samplerate=44100 :dshow-audio-bitspersample=16
but it doesn't work:

Code: Select all

vlc --no-video :dshow-adev=/dev/radio0 :dshow-tuner-channel=95700000 :dshow-tuner-input=2 :dshow-amtuner-mode=2 :dshow-audio-channels=2 :dshow-audio-samplerate=44100 :dshow-audio-bitspersample=16 VLC media player 1.1.12 The Luggage (revision exported) Blocked: call to unsetenv("DBUS_ACTIVATION_ADDRESS") Blocked: call to unsetenv("DBUS_ACTIVATION_BUS_TYPE") [0x8a628fc] main libvlc: Lancement de vlc avec l'interface par défaut. Utilisez « cvlc » pour démarrer VLC sans interface. Blocked: call to setlocale(6, "") Blocked: call to setlocale(6, "") (process:4758): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. (vlc:4758): Gtk-WARNING **: Impossible de trouver le moteur de thème dans module_path : « pixmap » (vlc:4758): Gtk-WARNING **: Impossible de trouver le moteur de thème dans module_path : « pixmap » (vlc:4758): Gtk-WARNING **: Impossible de trouver le moteur de thème dans module_path : « pixmap » (vlc:4758): Gtk-WARNING **: Impossible de trouver le moteur de thème dans module_path : « pixmap » Warning: call to rand() Warning: call to rand() Warning: call to rand() Warning: call to rand() Warning: call to rand()
I grabbed the commands from the doc...Any idea what I did wrong in my command? My radio device is /dev/radio0 and my radio station is 95.7
Thanks,

calande
Blank Cone
Blank Cone
Posts: 86
Joined: 17 Feb 2010 13:53
Operating System: W10
Location: Coneville

Re: How to use VLC with an FM radio board?

Postby calande » 23 Feb 2012 18:29

There's gotta be a way to do it, no?

calande
Blank Cone
Blank Cone
Posts: 86
Joined: 17 Feb 2010 13:53
Operating System: W10
Location: Coneville

Re: How to use VLC with an FM radio board?

Postby calande » 25 Feb 2012 13:17

Or maybe it's not supported yet?

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to use VLC with an FM radio board?

Postby Rémi Denis-Courmont » 28 Feb 2012 19:44

Windows DirectShow syntax certainly is not going to work on Linux, that is a given.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 2 guests