v4l2 cannot get video input characteristics

*nix specific usage questions
abee
New Cone
New Cone
Posts: 3
Joined: 25 Jul 2009 14:31

v4l2 cannot get video input characteristics

Postby abee » 25 Jul 2009 14:38

I have a SAA7134 capture card. It works well with tvtime, mplayer and with vlc-0.9.9a. However with vlc-1.0.0 I get no audio or video

output of vlc v4l2:///dev/video0:

Code: Select all

[0x8efde30] v4l2 demux error: cannot get video input characteristics (Invalid argument)
adding width and height arguments does not help

output of vlc -vvv v4l2:///dev/video0:

Code: Select all

VLC media player 1.0.0 Goldeneye [0x9c27988] main libvlc debug: VLC media player - version 1.0.0 Goldeneye - (c) 1996-2009 the VideoLAN team [0x9c27988] main libvlc debug: libvlc was configured with ./configure '--prefix=/usr' '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--enable-a52' '--enable-aa' '--enable-faad' '--enable-alsa' '--disable-altivec' '--disable-asademux' '--disable-atmo' '--enable-bonjour' '--enable-fribidi' '--enable-vcd' '--enable-cddax' '--enable-libcddb' '--enable-libcdio' '--disable-csri' '--enable-dbus' '--enable-dbus-control' '--enable-dirac' '--enable-directfb' '--enable-dc1394' '--enable-debug' '--enable-dca' '--enable-dvb' '--enable-dvdread' '--enable-dvdnav' '--enable-fb' '--enable-avcodec' '--enable-avformat' '--enable-swscale' '--enable-postproc' '--enable-flac' '--enable-fluidsynth' '--disable-fontconfig' '--enable-ggi' '--enable-gnomevfs' '--enable-gnutls' '--enable-hal' '--disable-httpd' '--enable-id3tag' '--enable-dv' '--disable-jack' '--enable-kate' '--enable-libass' '--enable-caca' '--enable-libgcrypt' '--enable-notify' '--enable-libproxy' '--disable-libtar' '--disable-tiger' '--enable-libsysfs' '--enable-libv4l2' '--disable-lirc' '--disable-live555' '--disable-lua' '--enable-mkv' '--disable-mmx' '--enable-mod' '--enable-mad' '--enable-libmpeg2' '--enable-mtp' '--enable-mpc' '--enable-ncurses' '--disable-mozilla' '--with-mozilla-pkg=' '--enable-ogg' '--enable-glx' '--enable-opengl' '--enable-galaktos' '--disable-optimize-memory' '--disable-oss' '--disable-pda' '--enable-png' '--disable-portaudio' '--enable-pulse' '--enable-pvr' '--enable-realrtsp' '--disable-run-as-root' '--enable-smb' '--enable-schroedinger' '--enable-sdl' '--enable-sdl-image' '--disable-shine' '--enable-shout' '--enable-speex' '--disable-sse' '--enable-svg' '--disable-svgalib' '--enable-taglib' '--enable-theora' '--enable-freetype' '--enable-twolame' '--enable-upnp' '--enable-v4l' '--enable-v4l2' '--enable-vcdinfo' '--enable-vcdx' '--enable-vorbis' '--enable-loader' '--enable-wma-fixed' '--enable-x11' '--enable-screen' '--enable-x264' '--enable-xcb' '--enable-xinerama' '--enable-libxml2' '--enable-xosd' '--enable-xvideo' '--disable-xvmc' '--enable-zvbi' '--disable-snapshot' '--disable-growl' '--disable-optimizations' '--enable-fast-install' '--enable-vlm' '--enable-sout' '--enable-skins2' '--enable-qt4' '--disable-remoteosd' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-O2 -march=core2 -pipe -D_FORTIFY_SOURCE=0' 'LDFLAGS=-Wl,-O1' 'CPPFLAGS=' 'CXXFLAGS=-O2 -march=core2 -pipe -D_FORTIFY_SOURCE=0' [0x9c27988] main libvlc debug: translation test: code is "C" [0x9c27988] main libvlc debug: checking plugin modules [0x9c27988] main libvlc debug: loading plugins cache file /home/martin/.cache/vlc/plugins-04041e.dat [0x9c27988] main libvlc debug: recursively browsing `/usr/lib/vlc' [0x9c27988] main libvlc debug: module bank initialized (387 modules) [0x9c27988] main libvlc debug: opening config file (/home/martin/.config/vlc/vlcrc) [0x9c27988] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT FPU [0x9c27988] main libvlc debug: looking for memcpy module: 1 candidate [0x9c27988] main libvlc debug: using memcpy module "memcpy" [0x9cbff88] main input debug: Creating an input for 'Media Library' [0x9cbff88] main input debug: Input is a meta file: disabling unneeded options [0x9cbff88] main input debug: using timeshift granularity of 50 MBytes [0x9cbff88] main input debug: using timeshift path '/tmp' [0x9cbff88] main input debug: `file/xspf-open:///home/martin/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/martin/.local/share/vlc/ml.xspf' [0x9cbff88] main input debug: creating demux: access='file' demux='xspf-open' path='/home/martin/.local/share/vlc/ml.xspf' [0x9cc1b18] main demux debug: looking for access_demux module: 1 candidate [0x9cc1b18] main demux warning: no access_demux module matching "file" could be loaded ... [0xb5401050] v4l2 demux debug: Trying direct kernel v4l2 [0xb5401050] v4l2 demux debug: opening device '/dev/video0' [0xb5401050] v4l2 demux debug: V4L2 device: LifeView/Typhoon FlyVIDEO2000 using driver: saa7134 (version: 0.2.14) on PCI:0000:05:01.0 [0xb5401050] v4l2 demux debug: the device has the capabilities: (X) Video Capure, ( ) Audio, (X) Tuner [0xb5401050] v4l2 demux debug: supported I/O methods are: (X) Read/Write, (X) Streaming, ( ) Asynchronous [0xb5401050] v4l2 demux debug: video input 0 (Television) has type: Tuner adapter * [0xb5401050] v4l2 demux debug: video input 1 (Composite1) has type: External analog input [0xb5401050] v4l2 demux debug: video input 2 (Composite2) has type: External analog input [0xb5401050] v4l2 demux debug: video input 3 (S-Video) has type: External analog input [0xb5401050] v4l2 demux debug: video standard 0 is: NTSC * [0xb5401050] v4l2 demux debug: video standard 1 is: NTSC-M [0xb5401050] v4l2 demux debug: video standard 2 is: NTSC-M-JP [0xb5401050] v4l2 demux debug: video standard 3 is: NTSC-M-KR [0xb5401050] v4l2 demux debug: video standard 4 is: PAL [0xb5401050] v4l2 demux debug: video standard 5 is: PAL-BG [0xb5401050] v4l2 demux debug: video standard 6 is: PAL-H [0xb5401050] v4l2 demux debug: video standard 7 is: PAL-I [0xb5401050] v4l2 demux debug: video standard 8 is: PAL-DK [0xb5401050] v4l2 demux debug: video standard 9 is: PAL-M [0xb5401050] v4l2 demux debug: video standard 10 is: PAL-N [0xb5401050] v4l2 demux debug: video standard 11 is: PAL-Nc [0xb5401050] v4l2 demux debug: video standard 12 is: PAL-60 [0xb5401050] v4l2 demux debug: video standard 13 is: SECAM [0xb5401050] v4l2 demux debug: video standard 14 is: SECAM-B [0xb5401050] v4l2 demux debug: video standard 15 is: SECAM-G [0xb5401050] v4l2 demux debug: video standard 16 is: SECAM-H [0xb5401050] v4l2 demux debug: video standard 17 is: SECAM-DK [0xb5401050] v4l2 demux debug: video standard 18 is: SECAM-L [0xb5401050] v4l2 demux debug: video standard 19 is: SECAM-Lc [0xb5401050] v4l2 demux debug: tuner 0 (Television) has type: Analog TV, frequency range: 0.0 kHz -> 268435455937.5 kHz [0xb5401050] v4l2 demux debug: tuner 0 (Television) frequency: 208000.0 kHz [0xb5401050] v4l2 demux debug: device supports chroma GREY [8 bpp gray, GREY] [0xb5401050] v4l2 demux warning: Unable to query for frame sizes [0xb5401050] v4l2 demux debug: device supports chroma RV15 [15 bpp RGB, le, RGBO] [0xb5401050] v4l2 demux warning: Unable to query for frame sizes [0xb5401050] v4l2 demux debug: device codec RGBQ (15 bpp RGB, be) not supported [0xb5401050] v4l2 demux debug: device supports chroma RV16 [16 bpp RGB, le, RGBP] [0xb5401050] v4l2 demux warning: Unable to query for frame sizes [0xb5401050] v4l2 demux debug: device codec RGBR (16 bpp RGB, be) not supported [0xb5401050] v4l2 demux debug: device supports chroma RV24 [24 bpp RGB, le, BGR3] [0xb5401050] v4l2 demux warning: Unable to query for frame sizes [0xb5401050] v4l2 demux debug: device supports chroma RV24 [24 bpp RGB, be, RGB3] [0xb5401050] v4l2 demux warning: Unable to query for frame sizes [0xb5401050] v4l2 demux debug: device supports chroma RV32 [32 bpp RGB, le, BGR4] [0xb5401050] v4l2 demux warning: Unable to query for frame sizes [0xb5401050] v4l2 demux debug: device supports chroma RV32 [32 bpp RGB, be, RGB4] [0xb5401050] v4l2 demux warning: Unable to query for frame sizes [0xb5401050] v4l2 demux debug: device supports chroma YUY2 [4:2:2 packed, YUYV, YUYV] [0xb5401050] v4l2 demux warning: Unable to query for frame sizes [0xb5401050] v4l2 demux debug: device supports chroma YUYV [4:2:2 packed, YUYV, YUYV] [0xb5401050] v4l2 demux warning: Unable to query for frame sizes [0xb5401050] v4l2 demux debug: device supports chroma UYVY [4:2:2 packed, UYVY, UYVY] [0xb5401050] v4l2 demux warning: Unable to query for frame sizes [0xb5401050] v4l2 demux debug: device supports chroma I422 [4:2:2 planar, Y-Cb-Cr, 422P] [0xb5401050] v4l2 demux warning: Unable to query for frame sizes [0xb5401050] v4l2 demux debug: device supports chroma I420 [4:2:0 planar, Y-Cb-Cr, YU12] [0xb5401050] v4l2 demux warning: Unable to query for frame sizes [0xb5401050] v4l2 demux debug: device supports chroma YV12 [4:2:0 planar, Y-Cb-Cr, YV12] [0xb5401050] v4l2 demux warning: Unable to query for frame sizes [0xb5401050] v4l2 demux debug: '/dev/video0' is a video device [0xb5401050] v4l2 demux debug: Extended control API not supported by v4l2 driver [0xb5401050] v4l2 demux debug: Available control: Brightness (980900) [0xb5401050] v4l2 demux debug: integer control [0xb5401050] v4l2 demux debug: valid values: 0 to 255 by steps of 1 [0xb5401050] v4l2 demux debug: default value: 128 [0xb5401050] v4l2 demux debug: current value: 128 [0xb5401050] v4l2 demux debug: Available control: Contrast (980901) [0xb5401050] v4l2 demux debug: integer control [0xb5401050] v4l2 demux debug: valid values: 0 to 127 by steps of 1 [0xb5401050] v4l2 demux debug: default value: 68 [0xb5401050] v4l2 demux debug: current value: 64 [0xb5401050] v4l2 demux debug: Available control: Saturation (980902) [0xb5401050] v4l2 demux debug: integer control [0xb5401050] v4l2 demux debug: valid values: 0 to 127 by steps of 1 [0xb5401050] v4l2 demux debug: default value: 64 [0xb5401050] v4l2 demux debug: current value: 64 [0xb5401050] v4l2 demux debug: Available control: Hue (980903) [0xb5401050] v4l2 demux debug: integer control [0xb5401050] v4l2 demux debug: valid values: -128 to 127 by steps of 1 [0xb5401050] v4l2 demux debug: default value: 0 [0xb5401050] v4l2 demux debug: current value: 0 [0xb5401050] v4l2 demux debug: Available control: Volume (980905) [0xb5401050] v4l2 demux debug: integer control [0xb5401050] v4l2 demux debug: valid values: -15 to 15 by steps of 1 [0xb5401050] v4l2 demux debug: default value: 0 [0xb5401050] v4l2 demux debug: current value: 0 [0xb5401050] v4l2 demux debug: Available control: Mute (980909) [0xb5401050] v4l2 demux debug: boolean control [0xb5401050] v4l2 demux debug: default value: 0 [0xb5401050] v4l2 demux debug: current value: 0 [0xb5401050] v4l2 demux debug: video audio-mute: 0 [0xb5401050] v4l2 demux debug: Available control: Mirror (980914) [0xb5401050] v4l2 demux debug: boolean control [0xb5401050] v4l2 demux debug: default value: 0 [0xb5401050] v4l2 demux debug: current value: 0 [0xb5401050] v4l2 demux debug: Available private control: Invert (8000000) [0xb5401050] v4l2 demux debug: boolean control [0xb5401050] v4l2 demux debug: default value: 0 [0xb5401050] v4l2 demux debug: current value: 0 [0xb5401050] v4l2 demux debug: Available private control: y offset odd field (8000001) [0xb5401050] v4l2 demux debug: integer control [0xb5401050] v4l2 demux debug: valid values: 0 to 128 by steps of 0 [0xb5401050] v4l2 demux debug: default value: 0 [0xb5401050] v4l2 demux debug: current value: 0 [0xb5401050] v4l2 demux debug: Available private control: y offset even field (8000002) [0xb5401050] v4l2 demux debug: integer control [0xb5401050] v4l2 demux debug: valid values: 0 to 128 by steps of 0 [0xb5401050] v4l2 demux debug: default value: 0 [0xb5401050] v4l2 demux debug: current value: 0 [0xb5401050] v4l2 demux debug: Available private control: automute (8000003) [0xb5401050] v4l2 demux debug: boolean control [0xb5401050] v4l2 demux debug: default value: 1 [0xb5401050] v4l2 demux debug: current value: 1 [0xb5401050] v4l2 demux debug: will try to find optimal width and height. [0xb5401050] v4l2 demux warning: Could not select any of the default chromas; attempting to open as MPEG encoder card (access) [0xb5401050] v4l2 demux debug: Trying libv4l2 wrapper [0xb5401050] v4l2 demux debug: opening device '/dev/video0' [0xb5401050] v4l2 demux debug: V4L2 device: LifeView/Typhoon FlyVIDEO2000 using driver: saa7134 (version: 0.2.14) on PCI:0000:05:01.0 [0xb5401050] v4l2 demux debug: the device has the capabilities: (X) Video Capure, ( ) Audio, (X) Tuner [0xb5401050] v4l2 demux debug: supported I/O methods are: (X) Read/Write, (X) Streaming, ( ) Asynchronous [0xb5401050] v4l2 demux debug: video input 0 (Television) has type: Tuner adapter * [0xb5401050] v4l2 demux debug: video input 1 (Composite1) has type: External analog input [0xb5401050] v4l2 demux debug: video input 2 (Composite2) has type: External analog input [0xb5401050] v4l2 demux debug: video input 3 (S-Video) has type: External analog input [0xb5401050] v4l2 demux error: cannot get video input characteristics (Invalid argument) [0xb5401050] main demux warning: no access_demux module matching "v4l2" could be loaded [0xb5401050] main demux debug: TIMER module_need() : 14.045 ms - Total 14.045 ms / 1 intvls (Avg 14.045 ms) [0x9ccd280] main input debug: creating access 'v4l2' path='/dev/video0' [0xb5401008] main access debug: looking for access module: 1 candidate [0xb5401008] v4l2 access debug: Trying direct kernel v4l2 [0xb5401008] v4l2 access debug: opening device '/dev/video0' [0xb5401008] v4l2 access debug: V4L2 device: LifeView/Typhoon FlyVIDEO2000 using driver: saa7134 (version: 0.2.14) on PCI:0000:05:01.0 [0xb5401008] v4l2 access debug: the device has the capabilities: (X) Video Capure, ( ) Audio, (X) Tuner [0xb5401008] v4l2 access debug: supported I/O methods are: (X) Read/Write, (X) Streaming, ( ) Asynchronous [0xb5401008] v4l2 access debug: video input 0 (Television) has type: Tuner adapter * [0xb5401008] v4l2 access debug: video input 1 (Composite1) has type: External analog input [0xb5401008] v4l2 access debug: video input 2 (Composite2) has type: External analog input [0xb5401008] v4l2 access debug: video input 3 (S-Video) has type: External analog input [0xb5401008] v4l2 access debug: video standard 0 is: NTSC * [0xb5401008] v4l2 access debug: video standard 1 is: NTSC-M [0xb5401008] v4l2 access debug: video standard 2 is: NTSC-M-JP [0xb5401008] v4l2 access debug: video standard 3 is: NTSC-M-KR [0xb5401008] v4l2 access debug: video standard 4 is: PAL [0xb5401008] v4l2 access debug: video standard 5 is: PAL-BG [0xb5401008] v4l2 access debug: video standard 6 is: PAL-H [0xb5401008] v4l2 access debug: video standard 7 is: PAL-I [0xb5401008] v4l2 access debug: video standard 8 is: PAL-DK [0xb5401008] v4l2 access debug: video standard 9 is: PAL-M [0xb5401008] v4l2 access debug: video standard 10 is: PAL-N [0xb5401008] v4l2 access debug: video standard 11 is: PAL-Nc [0xb5401008] v4l2 access debug: video standard 12 is: PAL-60 [0xb5401008] v4l2 access debug: video standard 13 is: SECAM [0xb5401008] v4l2 access debug: video standard 14 is: SECAM-B [0xb5401008] v4l2 access debug: video standard 15 is: SECAM-G [0xb5401008] v4l2 access debug: video standard 16 is: SECAM-H [0xb5401008] v4l2 access debug: video standard 17 is: SECAM-DK [0xb5401008] v4l2 access debug: video standard 18 is: SECAM-L [0xb5401008] v4l2 access debug: video standard 19 is: SECAM-Lc [0xb5401008] v4l2 access debug: tuner 0 (Television) has type: Analog TV, frequency range: 0.0 kHz -> 268435455937.5 kHz [0xb5401008] v4l2 access debug: tuner 0 (Television) frequency: 208000.0 kHz [0xb5401008] v4l2 access debug: device supports chroma GREY [8 bpp gray, GREY] [0xb5401008] v4l2 access warning: Unable to query for frame sizes [0xb5401008] v4l2 access debug: device supports chroma RV15 [15 bpp RGB, le, RGBO] [0xb5401008] v4l2 access warning: Unable to query for frame sizes [0xb5401008] v4l2 access debug: device codec RGBQ (15 bpp RGB, be) not supported [0xb5401008] v4l2 access debug: device supports chroma RV16 [16 bpp RGB, le, RGBP] [0xb5401008] v4l2 access warning: Unable to query for frame sizes [0xb5401008] v4l2 access debug: device codec RGBR (16 bpp RGB, be) not supported [0xb5401008] v4l2 access debug: device supports chroma RV24 [24 bpp RGB, le, BGR3] [0xb5401008] v4l2 access warning: Unable to query for frame sizes [0xb5401008] v4l2 access debug: device supports chroma RV24 [24 bpp RGB, be, RGB3] [0xb5401008] v4l2 access warning: Unable to query for frame sizes [0xb5401008] v4l2 access debug: device supports chroma RV32 [32 bpp RGB, le, BGR4] [0xb5401008] v4l2 access warning: Unable to query for frame sizes [0xb5401008] v4l2 access debug: device supports chroma RV32 [32 bpp RGB, be, RGB4] [0xb5401008] v4l2 access warning: Unable to query for frame sizes [0xb5401008] v4l2 access debug: device supports chroma YUY2 [4:2:2 packed, YUYV, YUYV] [0xb5401008] v4l2 access warning: Unable to query for frame sizes [0xb5401008] v4l2 access debug: device supports chroma YUYV [4:2:2 packed, YUYV, YUYV] [0xb5401008] v4l2 access warning: Unable to query for frame sizes [0xb5401008] v4l2 access debug: device supports chroma UYVY [4:2:2 packed, UYVY, UYVY] [0xb5401008] v4l2 access warning: Unable to query for frame sizes [0xb5401008] v4l2 access debug: device supports chroma I422 [4:2:2 planar, Y-Cb-Cr, 422P] [0xb5401008] v4l2 access warning: Unable to query for frame sizes [0xb5401008] v4l2 access debug: device supports chroma I420 [4:2:0 planar, Y-Cb-Cr, YU12] [0xb5401008] v4l2 access warning: Unable to query for frame sizes [0xb5401008] v4l2 access debug: device supports chroma YV12 [4:2:0 planar, Y-Cb-Cr, YV12] [0xb5401008] v4l2 access warning: Unable to query for frame sizes [0xb5401008] v4l2 access debug: '/dev/video0' is a video device [0xb5401008] v4l2 access debug: Extended control API not supported by v4l2 driver [0xb5401008] v4l2 access debug: Available control: Brightness (980900) [0xb5401008] v4l2 access debug: integer control [0xb5401008] v4l2 access debug: valid values: 0 to 255 by steps of 1 [0xb5401008] v4l2 access debug: default value: 128 [0xb5401008] v4l2 access debug: current value: 128 [0xb5401008] v4l2 access debug: Available control: Contrast (980901) [0xb5401008] v4l2 access debug: integer control [0xb5401008] v4l2 access debug: valid values: 0 to 127 by steps of 1 [0xb5401008] v4l2 access debug: default value: 68 [0xb5401008] v4l2 access debug: current value: 64 [0xb5401008] v4l2 access debug: Available control: Saturation (980902) [0xb5401008] v4l2 access debug: integer control [0xb5401008] v4l2 access debug: valid values: 0 to 127 by steps of 1 [0xb5401008] v4l2 access debug: default value: 64 [0xb5401008] v4l2 access debug: current value: 64 [0xb5401008] v4l2 access debug: Available control: Hue (980903) [0xb5401008] v4l2 access debug: integer control [0xb5401008] v4l2 access debug: valid values: -128 to 127 by steps of 1 [0xb5401008] v4l2 access debug: default value: 0 [0xb5401008] v4l2 access debug: current value: 0 [0xb5401008] v4l2 access debug: Available control: Volume (980905) [0xb5401008] v4l2 access debug: integer control [0xb5401008] v4l2 access debug: valid values: -15 to 15 by steps of 1 [0xb5401008] v4l2 access debug: default value: 0 [0xb5401008] v4l2 access debug: current value: 0 [0xb5401008] v4l2 access debug: Available control: Mute (980909) [0xb5401008] v4l2 access debug: boolean control [0xb5401008] v4l2 access debug: default value: 0 [0xb5401008] v4l2 access debug: current value: 0 [0xb5401008] v4l2 access debug: video audio-mute: 0 [0xb5401008] v4l2 access debug: Available control: Mirror (980914) [0xb5401008] v4l2 access debug: boolean control [0xb5401008] v4l2 access debug: default value: 0 [0xb5401008] v4l2 access debug: current value: 0 [0xb5401008] v4l2 access debug: Available private control: Invert (8000000) [0xb5401008] v4l2 access debug: boolean control [0xb5401008] v4l2 access debug: default value: 0 [0xb5401008] v4l2 access debug: current value: 0 [0xb5401008] v4l2 access debug: Available private control: y offset odd field (8000001) [0xb5401008] v4l2 access debug: integer control [0xb5401008] v4l2 access debug: valid values: 0 to 128 by steps of 0 [0xb5401008] v4l2 access debug: default value: 0 [0xb5401008] v4l2 access debug: current value: 0 [0xb5401008] v4l2 access debug: Available private control: y offset even field (8000002) [0xb5401008] v4l2 access debug: integer control [0xb5401008] v4l2 access debug: valid values: 0 to 128 by steps of 0 [0xb5401008] v4l2 access debug: default value: 0 [0xb5401008] v4l2 access debug: current value: 0 [0xb5401008] v4l2 access debug: Available private control: automute (8000003) [0xb5401008] v4l2 access debug: boolean control [0xb5401008] v4l2 access debug: default value: 1 [0xb5401008] v4l2 access debug: current value: 1 [0xb5401008] main access debug: using access module "v4l2" [0xb5401008] main access debug: TIMER module_need() : 9.635 ms - Total 9.635 ms / 1 intvls (Avg 9.635 ms) [0x9e56330] main stream debug: Using AStream*Stream [0x9e56330] main stream debug: pre buffering [0x9e56330] main stream debug: received first data after 96 ms [0x9e56330] main stream debug: pre-buffering done 1024 bytes in 0s - 10 kbytes/s [0x9e59c80] main stream debug: looking for stream_filter module: 4 candidates [0x9e59c80] main stream debug: TIMER module_need() : 0.106 ms - Total 0.106 ms / 1 intvls (Avg 0.106 ms) [0x9e59860] main stream debug: looking for stream_filter module: 1 candidate [0x9e59860] main stream debug: using stream_filter module "stream_filter_record" [0x9e59860] main stream debug: TIMER module_need() : 0.078 ms - Total 0.078 ms / 1 intvls (Avg 0.078 ms) [0x9ccd280] main input debug: creating demux: access='v4l2' demux='' path='/dev/video0' [0x9e59ce8] main demux debug: looking for demux module: 49 candidates [0x9e59ce8] avformat demux debug: couldn't guess format [0x9e59ce8] ps demux warning: this does not look like an MPEG PS stream, continuing anyway [0x9e59ce8] main demux debug: using demux module "ps" [0x9e59ce8] main demux debug: TIMER module_need() : 20.668 ms - Total 20.668 ms / 1 intvls (Avg 20.668 ms) [0x9ccd280] main input debug: `v4l2:///dev/video0' successfully opened [0x9e59ce8] ps demux warning: garbage at input, trying to resync...
I am running gentoo with kernel version 2.6.29-gentoo-r5

Thank you for any help

rawsock
New Cone
New Cone
Posts: 1
Joined: 28 Jul 2009 13:30

Re: v4l2 cannot get video input characteristics

Postby rawsock » 28 Jul 2009 13:32

I have the same problem, same card. Seems like a problem with this particular version (1.0.0).
Any workaround?

kwizart
Cone that earned his stripes
Cone that earned his stripes
Posts: 164
Joined: 18 Dec 2006 03:43

Re: v4l2 cannot get video input characteristics

Postby kwizart » 31 Jul 2009 09:46

I have this card working with 1.0.0 2.6.29 kernel once the firmware is installed.
I'm using it via a dvb-t channels.conf list.

Same for a webcam using inkernel gspca_vc032. But I'm using libv4l2 by default.

ole4542
New Cone
New Cone
Posts: 4
Joined: 31 Jul 2009 19:34

Re: v4l2 cannot get video input characteristics

Postby ole4542 » 31 Jul 2009 19:52

I have the same problem with another TV-card: AverMedia Hybrid TV/Radio (A16D using driver saa7134). OS - Mandriva Linux Cooker (2010 alpha 2) x86_64. I have tested both vlc 1.0.0 and 1.0.1.
And DVB has nothing to do with this problem as we talk about analog TV.
I hope vlc 1.0.2 would be fixed as this is the only usable TV-watching application (tvtime can not capture TV and doesn't support saa7134-alsa for audio, and mplayer has ugly interface).

ole4542
New Cone
New Cone
Posts: 4
Joined: 31 Jul 2009 19:34

Re: v4l2 cannot get video input characteristics

Postby ole4542 » 01 Aug 2009 17:32

I have made some investigations and the following patch allowed me to get rid of "v4l2 demux error: cannot get video input characteristics (Invalid argument)" errors and restore video on v4l2:

Code: Select all

--- v4l2.c.orig 2009-05-29 02:14:52.000000000 +0400 +++ v4l2.c 2009-08-01 19:26:16.000000000 +0400 @@ -1913,7 +1913,7 @@ memset( &fmt, 0, sizeof(fmt) ); fmt.type = V4L2_BUF_TYPE_VIDEO_CAPTURE; - if( p_sys->i_width == 0 || p_sys->i_height == 0 ) + if( p_sys->i_width <= 0 || p_sys->i_height <= 0 ) { /* Use current width and height settings */ if( v4l2_ioctl( i_fd, VIDIOC_G_FMT, &fmt ) < 0 ) @@ -1930,10 +1930,6 @@ p_sys->i_height = p_sys->i_height * 2; } } - else if( p_sys->i_width < 0 || p_sys->i_height < 0 ) - { - msg_Dbg( p_demux, "will try to find optimal width and height." ); - } else { /* Use user specified width and height */ @@ -1942,7 +1938,7 @@ fmt.fmt.pix.width = p_sys->i_width; fmt.fmt.pix.height = p_sys->i_height; - fmt.fmt.pix.field = V4L2_FIELD_NONE; + fmt.fmt.pix.field = V4L2_FIELD_INTERLACED; /* Test and set Chroma */ fmt.fmt.pix.pixelformat = 0;
Indeed this patch just reverts two changes made in 1.0.0 code back to the 0.9.x state. The main problem is with V4L2_FIELD_NONE constant - it prevented subsequent ioctl call to setup requested chroma.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: v4l2 cannot get video input characteristics

Postby Jean-Baptiste Kempf » 04 Aug 2009 20:05

Can you share that on the mailing list, please?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

ole4542
New Cone
New Cone
Posts: 4
Joined: 31 Jul 2009 19:34

Re: v4l2 cannot get video input characteristics

Postby ole4542 » 22 Aug 2009 07:05

It seems like nobody interested in getting analog TV watching work again. More than two weeks passed since the problem and a quick patch was published here and on vlc-devel mailing list (http://mailman.videolan.org/pipermail/v ... 63919.html - it is post of mandriva linux package mainteiner, not mine) and no any reply from devs.

So my question is What vlc devs think about using vlc for analog tv (interlaced) watching? Is there some official recommendations or instructions on how to get it working without patching with vlc 1.0.x?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: v4l2 cannot get video input characteristics

Postby Jean-Baptiste Kempf » 22 Aug 2009 19:55

Try latest git for 1.1
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

abee
New Cone
New Cone
Posts: 3
Joined: 25 Jul 2009 14:31

Re: v4l2 cannot get video input characteristics

Postby abee » 28 Aug 2009 12:15

Video works for me with the git version. Sound doesn't but that could be due to my misconfiguration since I'm not used to the command line interface (GUI closes whenever i press play in the select capture device dialog).

ole4542
New Cone
New Cone
Posts: 4
Joined: 31 Jul 2009 19:34

Re: v4l2 cannot get video input characteristics

Postby ole4542 » 30 Aug 2009 21:32

Yes, I have tried today's git snapshot and it works, but incorrectly autodetects picture size, so I have to use v4l2-width and v4l2-height params to fix it. And sound works too.
What are the plans on releasing 1.1.0? Will it be ready for inclusion in autumn distributions? What is the status of current git snapshots, are they in alpha, beta or prerelease stage? May I recommend package maintainer to update package to latest snapshot? Or will this issue be fixed in 1.0.2?


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

Who is online

Users browsing this forum: No registered users and 14 guests