Problems with V4L2

*nix specific usage questions
reige
New Cone
New Cone
Posts: 4
Joined: 22 Apr 2008 21:14

Problems with V4L2

Postby reige » 22 Apr 2008 21:29

Hi,
I'm a new user of VLC.
I try to run VLC Beta 0.9.0 with V4L2 to use a Pinnacle PCTV USB 2 card with Composite1 as input.
When I start VLC I get a lot of debugging messages but no real error message.
The messages say, that VLC successfully opened the capture card, the GUI starts up but nothing more happens.
Maybe I'm still missing some more command line parms?
Here's the log:

Linux1:~> vlc -vvv v4l2://:input=1:width=640:height=480
***************************************************
*** glibc version with broken libintl detected. ***
*** Messages localization will be disabled. ***
***************************************************
VLC media player 0.9.0-git Grishenko
[00000001] main libvlc debug: VLC media player - version 0.9.0-git Grishenko - (c) 1996-2008 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--prefix=/usr' '--libdir=/usr/lib' '--enable-gnomevfs' '--enable-ncurses' '--enable-wxwidgets' '--disable-pda' '--disable-macosx' '--disable-qnx' '--enable-xosd' '--enable-gnutls' '--enable-visual' '--disable-goom' '--enable-slp' '--enable-lirc' '--disable-joystick' '--disable-corba' '--enable-livedotcom' '--enable-dvdread' '--enable-dvdnav' '--disable-dshow' '--enable-v4l' '--enable-v4l2' '--enable-pvr' '--enable-vcd' '--enable-satellite' '--enable-ogg' '--enable-mkv' '--enable-mod' '--enable-libcdio' '--enable-vcdx' '--enable-cddax' '--enable-libcddb' '--enable-x11' '--enable-xvideo' '--enable-glx' '--enable-fb' '--enable-mga' '--disable-freetype' '--enable-fribidi' '--disable-svg' '--disable-directx' '--disable-wingdi' '--disable-glide' '--enable-aa' '--enable-caca' '--enable-oss' '--disable-esd' '--enable-arts' '--enable-waveout' '--disable-coreaudio' '--disable-hd1000a' '--disable-hd1000v' '--enable-mad' '--enable-ffmpeg' '--enable-faad' '--enable-a52' '--enable-dca' '--enable-flac' '--enable-libmpeg2' '--enable-vorbis' '--enable-tremor' '--enable-speex' '--disable-tarkin' '--enable-theora' '--enable-cmml' '--enable-utf8' '--enable-pth' '--enable-st' '--disable-gprof' '--disable-cprof' '--disable-testsuite' '--enable-optimizations' '--disable-altivec' '--disable-debug' '--enable-release' '--enable-sout' '--with-ffmpeg-faac' '--disable-galaktos' '--enable-httpd' '--disable-jack' '--enable-mozilla' '--enable-alsa' '--enable-real' '--enable-realrtsp' '--enable-live555' '--with-live555-tree=/usr/lib/live' '--enable-fast-install' '--enable-dvbpsi' '--enable-dvb'
[00000001] main libvlc debug: translation test: code is "C"
[00000001] main libvlc debug: checking builtin modules
[00000001] main libvlc debug: checking plugin modules
[00000001] main libvlc debug: loading plugins cache file /home/ich/.cache/vlc/plugins-04041e.dat
[00000001] main libvlc debug: We will be looking for modules in `modules:/usr/lib/vlc:plugins'
[00000001] main libvlc debug: recursively browsing `modules'
[00000001] main libvlc debug: recursively browsing `/usr/lib/vlc'
[00000001] main libvlc debug: recursively browsing `plugins'
[00000001] main libvlc debug: module bank initialized, found 253 modules
[00000001] main libvlc debug: opening config file (/home/ich/.config/vlc/vlcrc)
[00000001] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000001] main libvlc debug: looking for memcpy module: 3 candidates
[00000001] main libvlc debug: using memcpy module "memcpymmxext"
[00000341] main interaction debug: thread 3072031632 (Interaction control) created at priority 0 (interface/interaction.c:375)
[00000343] main input debug: Input is a meta file: disabling unneeded options
[00000343] main input debug: `file/xspf-open:///home/ich/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/ich/.local/share/vlc/ml.xspf'
[00000343] main input debug: creating access 'file' path='/home/ich/.local/share/vlc/ml.xspf'
[00000344] main access debug: looking for access2 module: 3 candidates
[00000344] access_mmap access debug: opening file /home/ich/.local/share/vlc/ml.xspf
[00000344] main access debug: using access2 module "access_mmap"
[00000348] main stream debug: pre buffering
[00000348] main stream debug: received first data for our buffer
[00000344] access_mmap access debug: at end of memory mapped file
[00000343] main input debug: creating demux: access='file' demux='xspf-open' path='/home/ich/.local/share/vlc/ml.xspf'
[00000349] main demux debug: looking for demux2 module: 1 candidate
[00000349] playlist demux debug: using XSPF playlist reader
[00000349] main demux debug: using demux2 module "playlist"
[00000343] main input debug: `file/xspf-open:///home/ich/.local/share/vlc/ml.xspf' successfully opened
[00000364] main xml debug: looking for xml module: 2 candidates
[00000364] main xml debug: using xml module "xml"
[00000344] access_mmap access debug: at end of memory mapped file
[00000349] playlist demux debug: parsed 0 tracks successfully
[00000364] main xml debug: removing module "xml"
[00000343] main input debug: EOF reached
[00000343] main input debug: control type=1
[00000349] main demux debug: removing module "playlist"
[00000344] main access debug: removing module "access_mmap"
[00000366] main generic debug: waiting for thread completion
[00000366] main generic debug: thread 3062115216 (preparser) created at priority 0 (playlist/thread.c:78)
[00000367] main generic debug: waiting for thread completion
[00000367] main generic debug: thread 3053722512 (fetcher) created at priority 0 (playlist/thread.c:108)
[00000342] main playlist debug: waiting for thread completion
[00000342] main playlist debug: rebuilding array of current - root Playlist
[00000342] main playlist debug: rebuild done - 0 items, index -1
[00000342] main playlist debug: thread 3045329808 (playlist) created at priority 0 (playlist/thread.c:117)
[00000368] main interface debug: looking for interface module: 1 candidate
[00000368] main interface debug: using interface module "hotkeys"
[00000368] main interface debug: thread 3036937104 (interface) created at priority 0 (interface/interface.c:148)
[00000370] main interface debug: looking for interface module: 1 candidate
[00000370] main interface debug: using interface module "inhibit"
[00000370] main interface debug: thread 3028544400 (interface) created at priority 0 (interface/interface.c:148)
[00000372] main interface debug: looking for interface module: 1 candidate
[00000372] main interface debug: using interface module "screensaver"
[00000372] main interface debug: thread 3020151696 (interface) created at priority 0 (interface/interface.c:148)
[00000342] main playlist debug: adding item `v4l2://:input=1:width=640:height=480' ( v4l2://:input=1:width=640:height=480 )
[00000001] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00000374] main interface debug: looking for interface module: 5 candidates
[00000374] main interface debug: using interface module "qt4"
[00000374] main interface debug: thread 2997881744 (interface) created at priority 0 (interface/interface.c:148)
[00000374] qt4 interface debug: Error while initializing qt-specific localization
[00000342] main playlist debug: rebuilding array of current - root Playlist
[00000342] main playlist debug: rebuild done - 1 items, index -1
[00000342] main playlist debug: starting new item
[00000342] main playlist debug: processing request item null node Playlist skip 0
[00000342] main playlist debug: creating new input thread
[00000377] main input debug: waiting for thread completion
[00000377] main input debug: `v4l2://:input=1:width=640:height=480' gives access `v4l2' demux `' path `:input=1:width=640:height=480'
[00000377] main input debug: creating demux: access='v4l2' demux='' path=':input=1:width=640:height=480'
[00000378] main demux debug: looking for access_demux module: 1 candidate
[00000377] main input debug: thread 2984246160 (input) created at priority 0 (input/input.c:360)
[00000378] v4l2 demux debug: ALSA input support available
[00000378] v4l2 demux debug: opening '/dev/video0' as video
[00000374] qt4 interface debug: I was here, updating your status
[00000378] v4l2 demux debug: V4L2 device: Pinnacle PCTV USB 2 using driver: em28xx (version: 0.0.1) on 2-7.4
[00000378] v4l2 demux debug: the device has the capabilities: (X) Video Capure, (X) Audio, (X) Tuner
[00000378] v4l2 demux debug: supported I/O methods are: (X) Read/Write, (X) Streaming, ( ) Asynchronous
[00000378] v4l2 demux debug: video input 0 (Television) has type: Tuner adapter
[00000378] v4l2 demux debug: video input 1 (Composite1) has type: External analog input *
[00000378] v4l2 demux debug: video input 2 (S-Video) has type: External analog input
[00000378] v4l2 demux debug: video standard 0 is: PAL *
[00000378] v4l2 demux debug: video standard 1 is: NTSC
[00000378] v4l2 demux debug: video standard 2 is: SECAM
[00000378] v4l2 demux debug: video standard 3 is: PAL-M
[00000378] v4l2 demux debug: audio input 0 (Television) is Stereo *
[00000378] v4l2 demux debug: tuner 0 (Tuner) has type: Analog TV, frequency range: 44000.0 kHz -> 958000.0 kHz
[00000378] v4l2 demux debug: tuner 0 (Tuner) frequency: 567250.0 kHz
[00000378] v4l2 demux debug: device supports chroma YUY2 [Packed YUY2, YUYV]
[00000378] v4l2 demux warning: Unable to query for frame sizes
[00000378] v4l2 demux debug: device supports chroma YUYV [Packed YUY2, YUYV]
[00000378] v4l2 demux warning: Unable to query for frame sizes
[00000378] v4l2 demux debug: Tuner audio mode set
[00000378] v4l2 demux error: cannot set audio input (Invalid argument)
[00000378] v4l2 demux debug: opening '(null)' as audio
[00000378] v4l2 demux debug: opened adev=`hw' stereo 48000Hz
[00000378] v4l2 demux debug: new audio es 2 channels 48000Hz
[00000377] main input debug: selecting program id=0
[00000378] main demux debug: using access_demux module "v4l2"
[00000381] main decoder debug: looking for decoder module: 26 candidates
[00000381] araw decoder debug: samplerate:48000Hz channels:2 bits/sample:16
[00000381] main decoder debug: using decoder module "araw"
[00000381] main decoder debug: thread 2975853456 (decoder) created at priority 0 (input/decoder.c:213)
[00000377] main input debug: `v4l2://:input=1:width=640:height=480' successfully opened
[00000374] qt4 interface debug: New Event: type 1102
[00000374] qt4 interface debug: I was here, updating your status
[00000374] qt4 interface debug: New Event: type 1102
[00000374] qt4 interface debug: New Event: type 1102
[00000374] qt4 interface debug: New Event: type 1102
[00000374] qt4 interface debug: New Event: type 1102
[00000374] qt4 interface debug: New Event: type 1102
[00000374] qt4 interface debug: New Event: type 1102
[00000374] qt4 interface debug: New Event: type 1103
[00000377] main input debug: control type=1
[00000381] main decoder debug: no aout present, spawning one
[00000392] main audio output debug: looking for audio output module: 3 candidates
[00000392] alsa audio output debug: opening ALSA device `default'
[00000392] main audio output debug: thread 2967329680 (aout) created at priority 0 (alsa.c:689)
[00000392] main audio output debug: using audio output module "alsa"
[00000392] main audio output debug: output 'fl32' 48000 Hz Stereo frame=1 samples/8 bytes
[00000392] main audio output debug: mixer 'fl32' 48000 Hz Stereo frame=1 samples/8 bytes
[00000392] main audio output debug: no need for any filter
[00000392] main audio output debug: looking for audio mixer module: 3 candidates
[00000392] main audio output debug: using audio mixer module "float32_mixer"
[00000392] main audio output debug: input 's16l' 48000 Hz Stereo frame=1 samples/4 bytes
[00000392] main audio output debug: filter(s) 's16l'->'fl32' 48000 Hz->48000 Hz Stereo->Stereo
[00000394] main generic debug: looking for audio filter module: 24 candidates
[00000394] main generic debug: using audio filter module "converter_float"
[00000392] main audio output debug: found a filter for the whole conversion
[00000392] main audio output debug: filter(s) 'fl32'->'fl32' 52800 Hz->48000 Hz Stereo->Stereo
[00000424] main generic debug: looking for audio filter module: 24 candidates
[00000424] main generic debug: using audio filter module "bandlimited_resampler"
[00000392] main audio output debug: found a filter for the whole conversion
[00000374] qt4 interface debug: Destroying the main interface
[00000374] qt4 interface debug: Destroying the Dialog Provider
[00000374] main interface debug: thread 2997881744 joined (libvlc-common.c:1162)
[00000374] main interface debug: removing module "qt4"
[00000001] main libvlc debug: removing all interfaces
[00000372] main interface debug: thread 3020151696 joined (interface/interface.c:171)
[00000372] main interface debug: removing module "screensaver"
[00000370] main interface debug: thread 3028544400 joined (interface/interface.c:171)
[00000370] main interface debug: removing module "inhibit"
[00000368] main interface debug: thread 3036937104 joined (interface/interface.c:171)
[00000368] main interface debug: removing module "hotkeys"
[00000001] main libvlc debug: removing playlist
[00000377] main input debug: control type=0
[00000377] main input debug: control: stopping input
[00000378] main demux debug: removing module "v4l2"
[00000381] main decoder debug: removing module "araw"
[00000381] main decoder debug: thread 2975853456 joined (input/decoder.c:244)
[00000381] main decoder debug: killing decoder fourcc `araw', 0 PES in FIFO
[00000394] main generic debug: removing module "converter_float"
[00000424] main generic debug: removing module "bandlimited_resampler"
[00000392] main audio output debug: thread 2967329680 joined (alsa.c:741)
[00000392] main audio output debug: removing module "alsa"
[00000392] main audio output debug: removing module "float32_mixer"
[00000377] main input debug: thread 2984246160 joined (misc/objects.c:348)
[00000342] main playlist: saving Media Library to file /home/ich/.local/share/vlc/ml.xspf
[00000342] main playlist debug: looking for playlist export module: 1 candidate
[00000342] main playlist debug: using playlist export module "export"
[00000342] main playlist debug: removing module "export"
[00000342] main playlist debug: thread 3045329808 joined (misc/objects.c:348)
[00000366] main generic debug: thread 3062115216 joined (misc/objects.c:348)
[00000367] main generic debug: thread 3053722512 joined (misc/objects.c:348)
[00000001] main libvlc debug: removing all video outputs
[00000001] main libvlc debug: removing all audio outputs
[00000001] main libvlc debug: removing interaction
[00000341] main interaction debug: thread 3072031632 joined (misc/objects.c:348)
[00000001] main libvlc debug: removing stats
[00000001] main libvlc debug: removing module "memcpymmxext"
[00000001] main libvlc debug: opening config file (/home/ich/.config/vlc/vlcrc)
[00000001] main libvlc debug: opening config file (/home/ich/.config/vlc/vlcrc)
[00000001] main libvlc debug: writing plugins cache /home/ich/.cache/vlc/plugins-04041e.dat

Any suggestions ?

Thanks

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Problems with V4L2

Postby dionoea » 23 Apr 2008 11:09

Could you try adding :chroma=YUYV or YUY2?
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

reige
New Cone
New Cone
Posts: 4
Joined: 22 Apr 2008 21:14

Re: Problems with V4L2

Postby reige » 23 Apr 2008 17:25

No luck, I tried :chroma=YUY2 and YUYV

Here's the log

Linux1:~> vlc -vvv v4l2://:input=1:width=640:height=480:chroma=YUY2
***************************************************
*** glibc version with broken libintl detected. ***
*** Messages localization will be disabled. ***
***************************************************
VLC media player 0.9.0-git Grishenko
[00000001] main libvlc debug: VLC media player - version 0.9.0-git Grishenko - (c) 1996-2008 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--prefix=/usr' '--libdir=/usr/lib' '--enable-gnomevfs' '--enable-ncurses' '--enable-wxwidgets' '--disable-pda' '--disable-macosx' '--disable-qnx' '--enable-xosd' '--enable-gnutls' '--enable-visual' '--disable-goom' '--enable-slp' '--enable-lirc' '--disable-joystick' '--disable-corba' '--enable-livedotcom' '--enable-dvdread' '--enable-dvdnav' '--disable-dshow' '--enable-v4l' '--enable-v4l2' '--enable-pvr' '--enable-vcd' '--enable-satellite' '--enable-ogg' '--enable-mkv' '--enable-mod' '--enable-libcdio' '--enable-vcdx' '--enable-cddax' '--enable-libcddb' '--enable-x11' '--enable-xvideo' '--enable-glx' '--enable-fb' '--enable-mga' '--disable-freetype' '--enable-fribidi' '--disable-svg' '--disable-directx' '--disable-wingdi' '--disable-glide' '--enable-aa' '--enable-caca' '--enable-oss' '--disable-esd' '--enable-arts' '--enable-waveout' '--disable-coreaudio' '--disable-hd1000a' '--disable-hd1000v' '--enable-mad' '--enable-ffmpeg' '--enable-faad' '--enable-a52' '--enable-dca' '--enable-flac' '--enable-libmpeg2' '--enable-vorbis' '--enable-tremor' '--enable-speex' '--disable-tarkin' '--enable-theora' '--enable-cmml' '--enable-utf8' '--enable-pth' '--enable-st' '--disable-gprof' '--disable-cprof' '--disable-testsuite' '--enable-optimizations' '--disable-altivec' '--disable-debug' '--enable-release' '--enable-sout' '--with-ffmpeg-faac' '--disable-galaktos' '--enable-httpd' '--disable-jack' '--enable-mozilla' '--enable-alsa' '--enable-real' '--enable-realrtsp' '--enable-live555' '--with-live555-tree=/usr/lib/live' '--enable-fast-install' '--enable-dvbpsi' '--enable-dvb'
[00000001] main libvlc debug: translation test: code is "C"
[00000001] main libvlc debug: checking builtin modules
[00000001] main libvlc debug: checking plugin modules
[00000001] main libvlc debug: loading plugins cache file /home/ich/.cache/vlc/plugins-04041e.dat
[00000001] main libvlc debug: We will be looking for modules in `modules:/usr/lib/vlc:plugins'
[00000001] main libvlc debug: recursively browsing `modules'
[00000001] main libvlc debug: recursively browsing `/usr/lib/vlc'
[00000001] main libvlc debug: recursively browsing `plugins'
[00000001] main libvlc debug: module bank initialized, found 253 modules
[00000001] main libvlc debug: opening config file (/home/ich/.config/vlc/vlcrc)
[00000001] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000001] main libvlc debug: looking for memcpy module: 3 candidates
[00000001] main libvlc debug: using memcpy module "memcpymmxext"
[00000341] main interaction debug: thread 3071662992 (Interaction control) created at priority 0 (interface/interaction.c:375)
[00000343] main input debug: Input is a meta file: disabling unneeded options
[00000343] main input debug: `file/xspf-open:///home/ich/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/ich/.local/share/vlc/ml.xspf'
[00000343] main input debug: creating access 'file' path='/home/ich/.local/share/vlc/ml.xspf'
[00000344] main access debug: looking for access2 module: 3 candidates
[00000344] access_mmap access debug: opening file /home/ich/.local/share/vlc/ml.xspf
[00000344] main access debug: using access2 module "access_mmap"
[00000348] main stream debug: pre buffering
[00000348] main stream debug: received first data for our buffer
[00000344] access_mmap access debug: at end of memory mapped file
[00000343] main input debug: creating demux: access='file' demux='xspf-open' path='/home/ich/.local/share/vlc/ml.xspf'
[00000349] main demux debug: looking for demux2 module: 1 candidate
[00000349] playlist demux debug: using XSPF playlist reader
[00000349] main demux debug: using demux2 module "playlist"
[00000343] main input debug: `file/xspf-open:///home/ich/.local/share/vlc/ml.xspf' successfully opened
[00000364] main xml debug: looking for xml module: 2 candidates
[00000364] main xml debug: using xml module "xml"
[00000344] access_mmap access debug: at end of memory mapped file
[00000349] playlist demux debug: parsed 0 tracks successfully
[00000364] main xml debug: removing module "xml"
[00000343] main input debug: EOF reached
[00000343] main input debug: control type=1
[00000349] main demux debug: removing module "playlist"
[00000344] main access debug: removing module "access_mmap"
[00000366] main generic debug: waiting for thread completion
[00000366] main generic debug: thread 3061746576 (preparser) created at priority 0 (playlist/thread.c:78)
[00000367] main generic debug: waiting for thread completion
[00000367] main generic debug: thread 3053353872 (fetcher) created at priority 0 (playlist/thread.c:108)
[00000342] main playlist debug: waiting for thread completion
[00000342] main playlist debug: rebuilding array of current - root Playlist
[00000342] main playlist debug: rebuild done - 0 items, index -1
[00000342] main playlist debug: thread 3044961168 (playlist) created at priority 0 (playlist/thread.c:117)
[00000368] main interface debug: looking for interface module: 1 candidate
[00000368] main interface debug: using interface module "hotkeys"
[00000368] main interface debug: thread 3036568464 (interface) created at priority 0 (interface/interface.c:148)
[00000370] main interface debug: looking for interface module: 1 candidate
[00000370] main interface debug: using interface module "inhibit"
[00000370] main interface debug: thread 3028175760 (interface) created at priority 0 (interface/interface.c:148)
[00000372] main interface debug: looking for interface module: 1 candidate
[00000372] main interface debug: using interface module "screensaver"
[00000372] main interface debug: thread 3017800592 (interface) created at priority 0 (interface/interface.c:148)
[00000342] main playlist debug: adding item `v4l2://:input=1:width=640:height=480:chroma=YUY2' ( v4l2://:input=1:width=640:height=480:chroma=YUY2 )
[00000001] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00000374] main interface debug: looking for interface module: 5 candidates
[00000374] main interface debug: using interface module "qt4"
[00000374] main interface debug: thread 2996460432 (interface) created at priority 0 (interface/interface.c:148)
[00000374] qt4 interface debug: Error while initializing qt-specific localization
[00000342] main playlist debug: rebuilding array of current - root Playlist
[00000342] main playlist debug: rebuild done - 1 items, index -1
[00000342] main playlist debug: starting new item
[00000342] main playlist debug: processing request item null node Playlist skip 0
[00000342] main playlist debug: creating new input thread
[00000377] main input debug: waiting for thread completion
[00000377] main input debug: `v4l2://:input=1:width=640:height=480:chroma=YUY2' gives access `v4l2' demux `' path `:input=1:width=640:height=480:chroma=YUY2'
[00000377] main input debug: creating demux: access='v4l2' demux='' path=':input=1:width=640:height=480:chroma=YUY2'
[00000378] main demux debug: looking for access_demux module: 1 candidate
[00000377] main input debug: thread 2984696720 (input) created at priority 0 (input/input.c:360)
[00000374] qt4 interface debug: I was here, updating your status
[00000378] v4l2 demux debug: ALSA input support available
[00000378] v4l2 demux debug: opening '/dev/video0' as video
[00000378] v4l2 demux debug: V4L2 device: Pinnacle PCTV USB 2 using driver: em28xx (version: 0.0.1) on 1-7.4
[00000378] v4l2 demux debug: the device has the capabilities: (X) Video Capure, (X) Audio, (X) Tuner
[00000378] v4l2 demux debug: supported I/O methods are: (X) Read/Write, (X) Streaming, ( ) Asynchronous
[00000378] v4l2 demux debug: video input 0 (Television) has type: Tuner adapter
[00000378] v4l2 demux debug: video input 1 (Composite1) has type: External analog input *
[00000378] v4l2 demux debug: video input 2 (S-Video) has type: External analog input
[00000378] v4l2 demux debug: video standard 0 is: PAL *
[00000378] v4l2 demux debug: video standard 1 is: NTSC
[00000378] v4l2 demux debug: video standard 2 is: SECAM
[00000378] v4l2 demux debug: video standard 3 is: PAL-M
[00000378] v4l2 demux debug: audio input 0 (Television) is Stereo *
[00000378] v4l2 demux debug: tuner 0 (Tuner) has type: Analog TV, frequency range: 44000.0 kHz -> 958000.0 kHz
[00000378] v4l2 demux debug: tuner 0 (Tuner) frequency: 567250.0 kHz
[00000378] v4l2 demux debug: device supports chroma YUY2 [Packed YUY2, YUYV]
[00000378] v4l2 demux warning: Unable to query for frame sizes
[00000378] v4l2 demux debug: device supports chroma YUYV [Packed YUY2, YUYV]
[00000378] v4l2 demux warning: Unable to query for frame sizes
[00000378] v4l2 demux debug: Tuner audio mode set
[00000378] v4l2 demux error: cannot set audio input (Invalid argument)
[00000378] v4l2 demux debug: opening '(null)' as audio
[00000378] v4l2 demux debug: opened adev=`hw' stereo 48000Hz
[00000378] v4l2 demux debug: new audio es 2 channels 48000Hz
[00000377] main input debug: selecting program id=0
[00000378] main demux debug: using access_demux module "v4l2"
[00000381] main decoder debug: looking for decoder module: 26 candidates
[00000381] araw decoder debug: samplerate:48000Hz channels:2 bits/sample:16
[00000381] main decoder debug: using decoder module "araw"
[00000381] main decoder debug: thread 2975894416 (decoder) created at priority 0 (input/decoder.c:213)
[00000377] main input debug: `v4l2://:input=1:width=640:height=480:chroma=YUY2' successfully opened
[00000374] qt4 interface debug: New Event: type 1102
[00000374] qt4 interface debug: I was here, updating your status
[00000374] qt4 interface debug: New Event: type 1102
[00000374] qt4 interface debug: New Event: type 1102
[00000374] qt4 interface debug: New Event: type 1102
[00000374] qt4 interface debug: New Event: type 1102
[00000374] qt4 interface debug: New Event: type 1102
[00000374] qt4 interface debug: New Event: type 1102
[00000374] qt4 interface debug: New Event: type 1103
[00000377] main input debug: control type=1
[00000381] main decoder debug: no aout present, spawning one
[00000392] main audio output debug: looking for audio output module: 3 candidates
[00000392] alsa audio output debug: opening ALSA device `default'
[00000392] main audio output debug: thread 2967153552 (aout) created at priority 0 (alsa.c:689)
[00000392] main audio output debug: using audio output module "alsa"
[00000392] main audio output debug: output 'fl32' 48000 Hz Stereo frame=1 samples/8 bytes
[00000392] main audio output debug: mixer 'fl32' 48000 Hz Stereo frame=1 samples/8 bytes
[00000392] main audio output debug: no need for any filter
[00000392] main audio output debug: looking for audio mixer module: 3 candidates
[00000392] main audio output debug: using audio mixer module "float32_mixer"
[00000392] main audio output debug: input 's16l' 48000 Hz Stereo frame=1 samples/4 bytes
[00000392] main audio output debug: filter(s) 's16l'->'fl32' 48000 Hz->48000 Hz Stereo->Stereo
[00000394] main generic debug: looking for audio filter module: 24 candidates
[00000394] main generic debug: using audio filter module "converter_float"
[00000392] main audio output debug: found a filter for the whole conversion
[00000392] main audio output debug: filter(s) 'fl32'->'fl32' 52800 Hz->48000 Hz Stereo->Stereo
[00000424] main generic debug: looking for audio filter module: 24 candidates
[00000424] main generic debug: using audio filter module "bandlimited_resampler"
[00000392] main audio output debug: found a filter for the whole conversion
[00000374] qt4 interface debug: Destroying the main interface
[00000374] qt4 interface debug: Destroying the Dialog Provider
[00000374] main interface debug: thread 2996460432 joined (libvlc-common.c:1162)
[00000374] main interface debug: removing module "qt4"
[00000001] main libvlc debug: removing all interfaces
[00000372] main interface debug: thread 3017800592 joined (interface/interface.c:171)
[00000372] main interface debug: removing module "screensaver"
[00000370] main interface debug: thread 3028175760 joined (interface/interface.c:171)
[00000370] main interface debug: removing module "inhibit"
[00000368] main interface debug: thread 3036568464 joined (interface/interface.c:171)
[00000368] main interface debug: removing module "hotkeys"
[00000001] main libvlc debug: removing playlist
[00000377] main input debug: control type=0
[00000377] main input debug: control: stopping input
[00000378] main demux debug: removing module "v4l2"
[00000381] main decoder debug: removing module "araw"
[00000381] main decoder debug: thread 2975894416 joined (input/decoder.c:244)
[00000381] main decoder debug: killing decoder fourcc `araw', 0 PES in FIFO
[00000394] main generic debug: removing module "converter_float"
[00000424] main generic debug: removing module "bandlimited_resampler"
[00000392] main audio output debug: thread 2967153552 joined (alsa.c:741)
[00000392] main audio output debug: removing module "alsa"
[00000392] main audio output debug: removing module "float32_mixer"
[00000377] main input debug: thread 2984696720 joined (misc/objects.c:348)
[00000342] main playlist: saving Media Library to file /home/ich/.local/share/vlc/ml.xspf
[00000342] main playlist debug: looking for playlist export module: 1 candidate
[00000342] main playlist debug: using playlist export module "export"
[00000342] main playlist debug: removing module "export"
[00000342] main playlist debug: thread 3044961168 joined (misc/objects.c:348)
[00000366] main generic debug: thread 3061746576 joined (misc/objects.c:348)
[00000367] main generic debug: thread 3053353872 joined (misc/objects.c:348)
[00000001] main libvlc debug: removing all video outputs
[00000001] main libvlc debug: removing all audio outputs
[00000001] main libvlc debug: removing interaction
[00000341] main interaction debug: thread 3071662992 joined (misc/objects.c:348)
[00000001] main libvlc debug: removing stats
[00000001] main libvlc debug: removing module "memcpymmxext"
[00000001] main libvlc debug: opening config file (/home/ich/.config/vlc/vlcrc)
[00000001] main libvlc debug: opening config file (/home/ich/.config/vlc/vlcrc)
[00000001] main libvlc debug: writing plugins cache /home/ich/.cache/vlc/plugins-04041e.dat

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Re: Problems with V4L2

Postby dionoea » 23 Apr 2008 17:43

Could you please try again (and paste the log) with v4l2:///dev/video0:input=1:width=640:height=480:chroma=YUY2 as input? It seems that it's not able to open the video device (but doesn't print any error about it) and fallbacks to audio only (which is allowed since video usage wasn't forced). If that still doesn't work I'll add more debug output.
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

reige
New Cone
New Cone
Posts: 4
Joined: 22 Apr 2008 21:14

Re: Problems with V4L2

Postby reige » 23 Apr 2008 20:52

Got a new error message

open of `v4l2:///dev/video0:input=1:width=640:height=480:chroma=YUY2' failed: could not create access

Linux1:~> vlc -vvv v4l2:///dev/video0:input=1:width=640:height=480:chroma=YUY2
***************************************************
*** glibc version with broken libintl detected. ***
*** Messages localization will be disabled. ***
***************************************************
VLC media player 0.9.0-git Grishenko
[00000001] main libvlc debug: VLC media player - version 0.9.0-git Grishenko - (c) 1996-2008 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--prefix=/usr' '--libdir=/usr/lib' '--enable-gnomevfs' '--enable-ncurses' '--enable-wxwidgets' '--disable-pda' '--disable-macosx' '--disable-qnx' '--enable-xosd' '--enable-gnutls' '--enable-visual' '--disable-goom' '--enable-slp' '--enable-lirc' '--disable-joystick' '--disable-corba' '--enable-livedotcom' '--enable-dvdread' '--enable-dvdnav' '--disable-dshow' '--enable-v4l' '--enable-v4l2' '--enable-pvr' '--enable-vcd' '--enable-satellite' '--enable-ogg' '--enable-mkv' '--enable-mod' '--enable-libcdio' '--enable-vcdx' '--enable-cddax' '--enable-libcddb' '--enable-x11' '--enable-xvideo' '--enable-glx' '--enable-fb' '--enable-mga' '--disable-freetype' '--enable-fribidi' '--disable-svg' '--disable-directx' '--disable-wingdi' '--disable-glide' '--enable-aa' '--enable-caca' '--enable-oss' '--disable-esd' '--enable-arts' '--enable-waveout' '--disable-coreaudio' '--disable-hd1000a' '--disable-hd1000v' '--enable-mad' '--enable-ffmpeg' '--enable-faad' '--enable-a52' '--enable-dca' '--enable-flac' '--enable-libmpeg2' '--enable-vorbis' '--enable-tremor' '--enable-speex' '--disable-tarkin' '--enable-theora' '--enable-cmml' '--enable-utf8' '--enable-pth' '--enable-st' '--disable-gprof' '--disable-cprof' '--disable-testsuite' '--enable-optimizations' '--disable-altivec' '--disable-debug' '--enable-release' '--enable-sout' '--with-ffmpeg-faac' '--disable-galaktos' '--enable-httpd' '--disable-jack' '--enable-mozilla' '--enable-alsa' '--enable-real' '--enable-realrtsp' '--enable-live555' '--with-live555-tree=/usr/lib/live' '--enable-fast-install' '--enable-dvbpsi' '--enable-dvb'
[00000001] main libvlc debug: translation test: code is "C"
[00000001] main libvlc debug: checking builtin modules
[00000001] main libvlc debug: checking plugin modules
[00000001] main libvlc debug: loading plugins cache file /home/ich/.cache/vlc/plugins-04041e.dat
[00000001] main libvlc debug: We will be looking for modules in `modules:/usr/lib/vlc:plugins'
[00000001] main libvlc debug: recursively browsing `modules'
[00000001] main libvlc debug: recursively browsing `/usr/lib/vlc'
[00000001] main libvlc debug: recursively browsing `plugins'
[00000001] main libvlc debug: module bank initialized, found 253 modules
[00000001] main libvlc debug: opening config file (/home/ich/.config/vlc/vlcrc)
[00000001] main libvlc debug: CPU has capabilities 486 586 MMX MMXEXT SSE SSE2 FPU
[00000001] main libvlc debug: looking for memcpy module: 3 candidates
[00000001] main libvlc debug: using memcpy module "memcpymmxext"
[00000341] main interaction debug: thread 3072097168 (Interaction control) created at priority 0 (interface/interaction.c:375)
[00000343] main input debug: Input is a meta file: disabling unneeded options
[00000343] main input debug: `file/xspf-open:///home/ich/.local/share/vlc/ml.xspf' gives access `file' demux `xspf-open' path `/home/ich/.local/share/vlc/ml.xspf'
[00000343] main input debug: creating access 'file' path='/home/ich/.local/share/vlc/ml.xspf'
[00000344] main access debug: looking for access2 module: 3 candidates
[00000344] access_mmap access debug: opening file /home/ich/.local/share/vlc/ml.xspf
[00000344] main access debug: using access2 module "access_mmap"
[00000348] main stream debug: pre buffering
[00000348] main stream debug: received first data for our buffer
[00000344] access_mmap access debug: at end of memory mapped file
[00000343] main input debug: creating demux: access='file' demux='xspf-open' path='/home/ich/.local/share/vlc/ml.xspf'
[00000349] main demux debug: looking for demux2 module: 1 candidate
[00000349] playlist demux debug: using XSPF playlist reader
[00000349] main demux debug: using demux2 module "playlist"
[00000343] main input debug: `file/xspf-open:///home/ich/.local/share/vlc/ml.xspf' successfully opened
[00000364] main xml debug: looking for xml module: 2 candidates
[00000364] main xml debug: using xml module "xml"
[00000344] access_mmap access debug: at end of memory mapped file
[00000349] playlist demux debug: parsed 0 tracks successfully
[00000364] main xml debug: removing module "xml"
[00000343] main input debug: EOF reached
[00000343] main input debug: control type=1
[00000349] main demux debug: removing module "playlist"
[00000344] main access debug: removing module "access_mmap"
[00000366] main generic debug: waiting for thread completion
[00000366] main generic debug: thread 3062180752 (preparser) created at priority 0 (playlist/thread.c:78)
[00000367] main generic debug: waiting for thread completion
[00000367] main generic debug: thread 3053788048 (fetcher) created at priority 0 (playlist/thread.c:108)
[00000342] main playlist debug: waiting for thread completion
[00000342] main playlist debug: rebuilding array of current - root Playlist
[00000342] main playlist debug: rebuild done - 0 items, index -1
[00000342] main playlist debug: thread 3045395344 (playlist) created at priority 0 (playlist/thread.c:117)
[00000368] main interface debug: looking for interface module: 1 candidate
[00000368] main interface debug: using interface module "hotkeys"
[00000368] main interface debug: thread 3037002640 (interface) created at priority 0 (interface/interface.c:148)
[00000370] main interface debug: looking for interface module: 1 candidate
[00000370] main interface debug: using interface module "inhibit"
[00000370] main interface debug: thread 3028609936 (interface) created at priority 0 (interface/interface.c:148)
[00000372] main interface debug: looking for interface module: 1 candidate
[00000372] main interface debug: using interface module "screensaver"
[00000372] main interface debug: thread 3020217232 (interface) created at priority 0 (interface/interface.c:148)
[00000342] main playlist debug: adding item `v4l2:///dev/video0:input=1:width=640:height=480:chroma=YUY2' ( v4l2:///dev/video0:input=1:width=640:height=480:chroma=YUY2 )
[00000001] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00000374] main interface debug: looking for interface module: 5 candidates
[00000374] main interface debug: using interface module "qt4"
[00000374] main interface debug: thread 2997947280 (interface) created at priority 0 (interface/interface.c:148)
[00000374] qt4 interface debug: Error while initializing qt-specific localization
[00000342] main playlist debug: rebuilding array of current - root Playlist
[00000342] main playlist debug: rebuild done - 1 items, index -1
[00000342] main playlist debug: starting new item
[00000342] main playlist debug: processing request item null node Playlist skip 0
[00000342] main playlist debug: creating new input thread
[00000377] main input debug: waiting for thread completion
[00000377] main input debug: `v4l2:///dev/video0:input=1:width=640:height=480:chroma=YUY2' gives access `v4l2' demux `' path `/dev/video0:input=1:width=640:height=480:chroma=YUY2'
[00000377] main input debug: creating demux: access='v4l2' demux='' path='/dev/video0:input=1:width=640:height=480:chroma=YUY2'
[00000378] main demux debug: looking for access_demux module: 1 candidate
[00000378] v4l2 demux debug: ALSA input support available
[00000378] v4l2 demux debug: main device='/dev/video0'
[00000378] v4l2 demux debug: trying device '/dev/video0' as video
[00000377] main input debug: thread 2986183568 (input) created at priority 0 (input/input.c:360)
[00000374] qt4 interface debug: I was here, updating your status
[00000378] v4l2 demux debug: V4L2 device: Pinnacle PCTV USB 2 using driver: em28xx (version: 0.0.1) on 1-7.4
[00000378] v4l2 demux debug: the device has the capabilities: (X) Video Capure, (X) Audio, (X) Tuner
[00000378] v4l2 demux debug: supported I/O methods are: (X) Read/Write, (X) Streaming, ( ) Asynchronous
[00000378] v4l2 demux debug: video input 0 (Television) has type: Tuner adapter
[00000378] v4l2 demux debug: video input 1 (Composite1) has type: External analog input *
[00000378] v4l2 demux debug: video input 2 (S-Video) has type: External analog input
[00000378] v4l2 demux debug: video standard 0 is: PAL *
[00000378] v4l2 demux debug: video standard 1 is: NTSC
[00000378] v4l2 demux debug: video standard 2 is: SECAM
[00000378] v4l2 demux debug: video standard 3 is: PAL-M
[00000378] v4l2 demux debug: audio input 0 (Television) is Stereo *
[00000378] v4l2 demux debug: tuner 0 (Tuner) has type: Analog TV, frequency range: 44000.0 kHz -> 958000.0 kHz
[00000378] v4l2 demux debug: tuner 0 (Tuner) frequency: 567250.0 kHz
[00000378] v4l2 demux debug: device supports chroma YUY2 [Packed YUY2, YUYV]
[00000378] v4l2 demux warning: Unable to query for frame sizes
[00000378] v4l2 demux debug: device supports chroma YUYV [Packed YUY2, YUYV]
[00000378] v4l2 demux warning: Unable to query for frame sizes
[00000378] v4l2 demux debug: '/dev/video0' is a video device
[00000378] v4l2 demux debug: Tuner audio mode set
[00000378] v4l2 demux error: cannot set audio input (Invalid argument)
[00000378] main demux warning: no access_demux module matching "v4l2" could be loaded
[00000377] main input debug: creating access 'v4l2' path='/dev/video0:input=1:width=640:height=480:chroma=YUY2'
[00000374] qt4 interface debug: New Event: type 1103
[00000374] qt4 interface debug: I was here, updating your status
[00000381] main access debug: looking for access2 module: 1 candidate
[00000381] v4l2 access debug: main device='/dev/video0'
[00000381] v4l2 access debug: trying device '/dev/video0' as video
[00000381] v4l2 access debug: V4L2 device: Pinnacle PCTV USB 2 using driver: em28xx (version: 0.0.1) on 1-7.4
[00000381] v4l2 access debug: the device has the capabilities: (X) Video Capure, (X) Audio, (X) Tuner
[00000381] v4l2 access debug: supported I/O methods are: (X) Read/Write, (X) Streaming, ( ) Asynchronous
[00000381] v4l2 access debug: video input 0 (Television) has type: Tuner adapter
[00000381] v4l2 access debug: video input 1 (Composite1) has type: External analog input *
[00000381] v4l2 access debug: video input 2 (S-Video) has type: External analog input
[00000381] v4l2 access debug: video standard 0 is: PAL *
[00000381] v4l2 access debug: video standard 1 is: NTSC
[00000381] v4l2 access debug: video standard 2 is: SECAM
[00000381] v4l2 access debug: video standard 3 is: PAL-M
[00000381] v4l2 access debug: audio input 0 (Television) is Stereo *
[00000381] v4l2 access debug: tuner 0 (Tuner) has type: Analog TV, frequency range: 44000.0 kHz -> 958000.0 kHz
[00000381] v4l2 access debug: tuner 0 (Tuner) frequency: 567250.0 kHz
[00000381] v4l2 access debug: device supports chroma YUY2 [Packed YUY2, YUYV]
[00000381] v4l2 access warning: Unable to query for frame sizes
[00000381] v4l2 access debug: device supports chroma YUYV [Packed YUY2, YUYV]
[00000381] v4l2 access warning: Unable to query for frame sizes
[00000381] v4l2 access debug: '/dev/video0' is a video device
[00000381] v4l2 access debug: Tuner audio mode set
[00000381] v4l2 access error: cannot set audio input (Invalid argument)
[00000381] main access warning: no access2 module matching "v4l2" could be loaded
[00000377] main input error: open of `v4l2:///dev/video0:input=1:width=640:height=480:chroma=YUY2' failed: could not create access
[00000374] qt4 interface debug: New Event: type 1103
[00000374] qt4 interface debug: I was here, updating your status
[00000374] qt4 interface debug: New Event: type 1103
[00000342] main playlist debug: finished input
[00000342] main playlist debug: dying input
[00000374] qt4 interface debug: I was here, updating your status
[00000342] main playlist debug: dying input
[00000342] main playlist debug: dead input
[00000377] main input debug: thread 2986183568 joined (misc/objects.c:348)
[00000342] main playlist debug: starting new item
[00000342] main playlist debug: changing item without a request (current 0/1)
[00000342] main playlist debug: nothing to play
[00000374] qt4 interface debug: Destroying the main interface
[00000374] qt4 interface debug: Destroying the Dialog Provider
[00000374] main interface debug: thread 2997947280 joined (libvlc-common.c:1162)
[00000374] main interface debug: removing module "qt4"
[00000001] main libvlc debug: removing all interfaces
[00000372] main interface debug: thread 3020217232 joined (interface/interface.c:171)
[00000372] main interface debug: removing module "screensaver"
[00000370] main interface debug: thread 3028609936 joined (interface/interface.c:171)
[00000370] main interface debug: removing module "inhibit"
[00000368] main interface debug: thread 3037002640 joined (interface/interface.c:171)
[00000368] main interface debug: removing module "hotkeys"
[00000001] main libvlc debug: removing playlist
[00000342] main playlist: saving Media Library to file /home/ich/.local/share/vlc/ml.xspf
[00000342] main playlist debug: looking for playlist export module: 1 candidate
[00000342] main playlist debug: using playlist export module "export"
[00000342] main playlist debug: removing module "export"
[00000342] main playlist debug: thread 3045395344 joined (misc/objects.c:348)
[00000366] main generic debug: thread 3062180752 joined (misc/objects.c:348)
[00000367] main generic debug: thread 3053788048 joined (misc/objects.c:348)
[00000001] main libvlc debug: removing all video outputs
[00000001] main libvlc debug: removing all audio outputs
[00000001] main libvlc debug: removing interaction
[00000341] main interaction debug: thread 3072097168 joined (misc/objects.c:348)
[00000001] main libvlc debug: removing stats
[00000001] main libvlc debug: removing module "memcpymmxext"
[00000001] main libvlc debug: opening config file (/home/ich/.config/vlc/vlcrc)
[00000001] main libvlc debug: opening config file (/home/ich/.config/vlc/vlcrc)
[00000001] main libvlc debug: writing plugins cache /home/ich/.cache/vlc/plugins-04041e.

hovis
Blank Cone
Blank Cone
Posts: 22
Joined: 05 Nov 2006 23:55
Location: London, UK

Re: Problems with V4L2

Postby hovis » 11 May 2008 22:01

Code: Select all

v4l2 demux error: cannot set audio input (Invalid argument)
is where it is failing.

For some reason VIDIOC_S_AUDIO in OpenVideoDev() is failing. No idea why. I'll see if I can get my hands on a similar card this week to try myself.


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

Who is online

Users browsing this forum: No registered users and 6 guests