PDA

Afficher la version complète : VLC diffuser sa "webcam" sur le réseau



astinx
27/11/2007, 22h45
Bonjour,
Je rencontre des difficultés à configurer VLC pour diffuser ma WEBCAM sur le net (vidéoconférence).
Lorsque j'exécute la commande vlc -vvv v4l:/dev/video0 '#display', la webcam ne s'affiche pas à l'écran et un sifflement sort des hp's.
Ma webcam est une Logitech Quickcam pro 5000. Elle fonctionne correctement avec aMsn.
J'utilise la distribution opensuse 10.3 avec la version VLC 0.8.6c
une idée ??

*****************************
** Usb Connecté
**

>lsusb

Bus 005 Device 003: ID 046d:08ce Logitech, Inc.
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 003: ID 04b3:310b IBM Corp. Red Wheel Mouse
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000


Vendor Id = 046D identifie Logitech et product Id=08ce le modèle QuickCam PRO 5000.
Ma WebCAM: Logitech Quickcam pro 5000


*****************************
*** modules v4l ou v4l2
**



**>lsmod | grep v4l

v4l1_compat 16388 2 uvcvideo,videodev
v4l2_common 20608 2 uvcvideo,videodev


**> v4l-conf

v4l-conf: using X11 display :0.0
dga: version 2.0
mode: 1280x1024, depth=24, bpp=32, bpl=5120, base=0xd8000000
/dev/video0 [v4l2]: no overlay support



**>v4lctl -c /dev/video0 list

ioctl: VIDIOC_G_STD(std=0x804ed5fbff32b18 [PAL_H,PAL_I,PAL_M,PAL_N,PAL_60,NTSC_M_JP,SECAM_B,S ECAM_D,SECAM_K,SECAM_K1,SECAM
L,?ATSC_8_VSB,ATSC_16_VSB,(null),(null),
(null), (null),(null),(null),(null),(null),(null),(null),( null),(null),(null),(null),(nu
l),(null),(null),(null),(null),(null)]): Invalid argument

attribute | type | current | default | comment
-----------+--------+---------+---------+-------------------------------------
norm | choice | (null) | (null) |
input | choice | Camera | Camera | Camera 1
bright | int | 127 | 127 | range is 0 => 255
contrast | int | 32 | 32 | range is 0 => 255
color | int | 32 | 32 | range is 0 => 255
Gain | int | 0 | 0 | range is 0 => 255
Backlight | int | 1 | 1 | range is 0 => 2
Power Line | choice | 60 Hz | 60 Hz | Disabled 50 Hz 60 Hz
Sharpness | int | 50 | 50 | range is 0 => 255
Exposure, | int | 8 | 8 | range is 0 => 0
Exposure ( | int | 166 | 166 | range is 1 => 10000
White Bala | bool | on | on |
White Bala | int | 4000 | 4000 | range is 0 => 10000


**> v4l-info

### v4l2 device info [/dev/video0] ###
general info
VIDIOC_QUERYCAP
driver : "uvcvideo"
card : "UVC Camera (046d:08ce)"
bus_info : "0000:00:10.4"
version : 0.1.0
capabilities : 0x4000001 [VIDEO_CAPTURE,STREAMING]

standards

inputs
VIDIOC_ENUMINPUT(0)
index : 0
name : "Camera 1"
type : CAMERA
audioset : 0
tuner : 0
std : 0x0 []
status : 0x0 []

video capture
VIDIOC_ENUM_FMT(0,VIDEO_CAPTURE)
index : 0
type : VIDEO_CAPTURE
flags : 1
description : "MJPEG"
pixelformat : 0x47504a4d [MJPG]
VIDIOC_ENUM_FMT(1,VIDEO_CAPTURE)
index : 1
type : VIDEO_CAPTURE
flags : 0
description : "YUV 4:2:2 (YUYV)"
pixelformat : 0x56595559 [YUYV]
VIDIOC_G_FMT(VIDEO_CAPTURE)
type : VIDEO_CAPTURE
fmt.pix.width : 352
fmt.pix.height : 288
fmt.pix.pixelformat : 0x56595559 [YUYV]
fmt.pix.field : NONE
fmt.pix.bytesperline : 704
fmt.pix.sizeimage : 202752
fmt.pix.colorspace : SRGB
fmt.pix.priv : 0

controls
VIDIOC_QUERYCTRL(BASE+0)
id : 9963776
type : INTEGER
name : "Brightness"
minimum : 0
maximum : 255
step : 1
default_value : 127
flags : 0
VIDIOC_QUERYCTRL(BASE+1)
id : 9963777
type : INTEGER
name : "Contrast"
minimum : 0
maximum : 255
step : 1
default_value : 32
flags : 0
VIDIOC_QUERYCTRL(BASE+2)
id : 9963778
type : INTEGER
name : "Saturation"
minimum : 0
maximum : 255
step : 1
default_value : 32
flags : 0
VIDIOC_QUERYCTRL(PRIVATE_BASE+0)
id : 134217728
type : INTEGER
name : "Backlight Compensation"
minimum : 0
maximum : 2
step : 1
default_value : 1
flags : 0
VIDIOC_QUERYCTRL(PRIVATE_BASE+1)
id : 134217729
type : MENU
name : "Power Line Frequency"
minimum : 0
maximum : 2
step : 1
default_value : 2
flags : 0
VIDIOC_QUERYCTRL(PRIVATE_BASE+2)
id : 134217730
type : INTEGER
name : "Sharpness"
minimum : 0
maximum : 255
step : 1
default_value : 50
flags : 0
VIDIOC_QUERYCTRL(PRIVATE_BASE+10)
id : 134217738
type : INTEGER
name : "Exposure, Auto"
minimum : 0
maximum : 0
step : 9
default_value : 8
flags : 0
VIDIOC_QUERYCTRL(PRIVATE_BASE+11)
id : 134217739
type : INTEGER
name : "Exposure (Absolute)"
minimum : 1
maximum : 10000
step : 1
default_value : 166
flags : 0
VIDIOC_QUERYCTRL(PRIVATE_BASE+12)
id : 134217740
type : BOOLEAN
name : "White Balance Temperature, Auto"
minimum : 0
maximum : 0
step : 0
default_value : 1
flags : 0
VIDIOC_QUERYCTRL(PRIVATE_BASE+13)
id : 134217741
type : INTEGER
name : "White Balance Temperature"
minimum : 0
maximum : 10000
step : 10
default_value : 4000
flags : 0

### video4linux device info [/dev/video0] ###
general info
VIDIOCGCAP
name : "UVC Camera (046d:08ce)"
type : 0x1 [CAPTURE]
channels : 1
audios : 0
maxwidth : 640
maxheight : 480
minwidth : 48
minheight : 32

channels
ioctl VIDIOCGCHAN: Invalid argument

tuner
ioctl VIDIOCGTUNER: Invalid argument

audio
ioctl VIDIOCGAUDIO: Invalid argument

picture
VIDIOCGPICT
brightness : 45489
hue : 0
colour : 8224
contrast : 8224
whiteness : 0
depth : 16
palette : YUYV

buffer
ioctl VIDIOCGFBUF: Invalid argument

window
VIDIOCGWIN
x : 0
y : 0
width : 352
height : 288
chromakey : 0
flags : 0


**>vlc -vvv v4l:/dev/video0 '#display'

VLC media player 0.8.6c Janus
[00000001] main private debug: checking builtin modules
[00000001] main private debug: checking plugin modules
[00000001] main private debug: loading plugins cache file /home/astinx/.vlc/cache/plugins-04041e.dat
[00000001] main private debug: recursively browsing `modules'
[00000001] main private debug: recursively browsing `/usr/lib/vlc'
[00000001] main private debug: recursively browsing `plugins'
[00000001] main private debug: module bank initialized, found 227 modules
[00000001] main private debug: opening config file /home/astinx/.vlc/vlcrc
[00000001] main private debug: CPU has capabilities 486 586 MMX 3DNow! MMXEXT SSE FPU
[00000001] main private debug: looking for memcpy module: 4 candidates
[00000001] main private debug: using memcpy module "memcpymmxext"
[00000292] main playlist debug: waiting for thread completion
[00000292] main playlist debug: thread 3081137040 (playlist) created at priority 0 (playlist/playlist.c:184)
[00000293] main private debug: waiting for thread completion
[00000293] main private debug: thread 3072744336 (preparser) created at priority 0 (playlist/playlist.c:210)
[00000294] main interface debug: looking for interface module: 1 candidate
[00000294] main interface debug: using interface module "hotkeys"
[00000294] main interface debug: thread 3064351632 (interface) created at priority 0 (interface/interface.c:231)
[00000296] main interface debug: looking for interface module: 1 candidate
[00000296] main interface debug: using interface module "screensaver"
[00000296] main interface debug: thread 3055958928 (interface) created at priority 0 (interface/interface.c:231)
[00000292] main playlist debug: adding playlist item `#display' ( #display )
[00000292] main playlist debug: adding playlist item `v4l:/dev/video0' ( v4l:/dev/video0 )
[00000298] main interface debug: looking for interface module: 5 candidates
[00000298] main interface debug: using interface module "wxwidgets"
[00000298] main interface debug: thread 3026881424 (manager) created at priority 0 (interface/interface.c:216)
[00000298] wxwidgets interface debug: Using last windows config '(-1,0,0,1280,1024)(0,101,172,421,87)(6,0,0,-1,150)'
[00000298] wxwidgets interface debug: id=0 p=(101,172) s=(421,87)
[00000298] wxwidgets interface debug: id=6 p=(0,0) s=(-1,150)
[00000292] main playlist debug: nothing requested, starting
[00000292] main playlist debug: creating new input thread
[00000301] main input debug: waiting for thread completion
[00000301] main input debug: thread 2963630992 (input) created at priority 0 (input/input.c:265)
[00000301] main input debug: creating statistics handler
[00000301] main input debug: `v4l:/dev/video0' gives access `v4l' demux `' path `/dev/video0'
[00000301] main input debug: creating demux: access='v4l' demux='' path='/dev/video0'
[00000303] main demuxer debug: looking for access_demux module: 1 candidate
[00000303] v4l demuxer debug: main device=`/dev/video0'
[00000303] v4l demuxer debug: V4L device UVC Camera (046d:08ce) 1 channels 0 audios 48 < w < 640 32 < h < 480
[00000303] v4l demuxer debug: invalid width 0
[00000303] v4l demuxer debug: invalid height 0
[00000303] v4l demuxer error: cannot get channel infos (Argument invalide)
[00000303] v4l demuxer error: cannot set audio format (16b little endian) (Argument invalide)
[00000303] v4l demuxer debug: V4L device UVC Camera (046d:08ce) 1 channels 0 audios 48 < w < 640 32 < h < 480
[00000303] v4l demuxer debug: invalid width 0
[00000303] v4l demuxer debug: invalid height 0
[00000303] v4l demuxer error: cannot get channel infos (Argument invalide)
[00000303] v4l demuxer debug: openened adev=`/dev/dsp' stereo 44100Hz
[00000303] v4l demuxer debug: v4l grabbing started
[00000303] v4l demuxer debug: new audio es 2 channels 44100Hz
[00000301] main input debug: selecting program id=0
[00000303] main demuxer debug: using access_demux module "v4l"
[00000305] main decoder debug: looking for decoder module: 26 candidates
[00000305] araw decoder debug: samplerate:44100Hz channels:2 bits/sample:16
[00000305] main decoder debug: using decoder module "araw"
[00000305] main decoder debug: thread 2952731536 (decoder) created at priority 0 (input/decoder.c:159)
[00000301] main input debug: `v4l:/dev/video0' successfully opened
[00000305] main decoder debug: no aout present, spawning one
[00000328] main audio output debug: looking for audio output module: 7 candidates
[00000328] alsa audio output debug: opening ALSA device `default'
[00000328] main audio output debug: thread 2944338832 (aout) created at priority 0 (alsa.c:662)
[00000328] main audio output debug: using audio output module "alsa"
[00000328] main audio output debug: output 'fl32' 44100 Hz Stereo frame=1 samples/8 bytes
[00000328] main audio output debug: mixer 'fl32' 44100 Hz Stereo frame=1 samples/8 bytes
[00000328] main audio output debug: no need for any filter
[00000328] main audio output debug: looking for audio mixer module: 3 candidates
[00000328] main audio output debug: using audio mixer module "trivial_mixer"
[00000328] main audio output debug: input 's16l' 44100 Hz Stereo frame=1 samples/4 bytes
[00000328] main audio output debug: filter(s) 's16l'->'fl32' 44100 Hz->44100 Hz Stereo->Stereo
[00000331] main private debug: looking for audio filter module: 24 candidates
[00000331] main private debug: using audio filter module "s16tofloat32"
[00000328] main audio output debug: found a filter for the whole conversion
[00000328] main audio output debug: filter(s) 'fl32'->'fl32' 48510 Hz->44100 Hz Stereo->Stereo
[00000348] main private debug: looking for audio filter module: 24 candidates
[00000348] main private debug: using audio filter module "bandlimited_resampler"
[00000328] main audio output debug: found a filter for the whole conversion


**
** Chargement de l 'interface vlc : Pas d'affichage mais sifflement dans HP
**
** Fermeture de l interface vlc
**

[00000328] main audio output warning: buffer is 40078 late, triggering upsampling
[00000328] main audio output warning: resampling stopped after 9772540 usec (drift: 890)
[00000328] main audio output debug: audio output is starving (23225), playing silence
[00000328] main audio output debug: audio output is starving (23230), playing silence
[00000328] main audio output debug: audio output is starving (23260), playing silence
[00000328] main audio output debug: audio output is starving (23227), playing silence
[00000328] main audio output debug: audio output is starving (23227), playing silence
[00000328] main audio output debug: audio output is starving (23247), playing silence
[00000328] main audio output debug: audio output is starving (23248), playing silence
[00000328] main audio output debug: audio output is starving (23239), playing silence
[00000328] main audio output debug: audio output is starving (23244), playing silence
[00000328] main audio output debug: audio output is starving (23227), playing silence
[00000328] main audio output debug: audio output is starving (23239), playing silence
[00000328] main audio output debug: audio output is starving (23224), playing silence
[00000328] main audio output debug: audio output is starving (23257), playing silence
[00000328] main audio output debug: audio output is starving (23241), playing silence
[00000328] main audio output debug: audio output is starving (23266), playing silence
[00000328] main audio output debug: audio output is starving (23255), playing silence
[00000328] main audio output debug: audio output is starving (23229), playing silence
[00000328] main audio output debug: audio output is starving (23278), playing silence
[00000328] main audio output debug: audio output is starving (23248), playing silence
[00000328] main audio output debug: audio output is starving (23229), playing silence
[00000328] main audio output debug: audio output is starving (23232), playing silence
[00000328] main audio output debug: audio output is starving (23276), playing silence
[00000328] main audio output debug: audio output is starving (23262), playing silence
[00000328] main audio output debug: audio output is starving (23246), playing silence
[00000328] main audio output debug: audio output is starving (23246), playing silence
[00000328] main audio output debug: audio output is starving (23265), playing silence
[00000328] main audio output debug: audio output is starving (23277), playing silence
[00000328] main audio output debug: audio output is starving (23284), playing silence
[00000328] main audio output debug: audio output is starving (23265), playing silence
[00000328] main audio output debug: audio output is starving (23233), playing silence
[00000328] main audio output debug: audio output is starving (23235), playing silence
[00000328] main audio output debug: audio output is starving (23283), playing silence
[00000328] main audio output debug: audio output is starving (23248), playing silence
[00000328] main audio output debug: audio output is starving (23223), playing silence
[00000328] main audio output debug: audio output is starving (23259), playing silence
[00000328] main audio output debug: audio output is starving (23222), playing silence
[00000328] main audio output debug: audio output is starving (23260), playing silence
[00000328] main audio output debug: audio output is starving (23237), playing silence
[00000328] main audio output debug: audio output is starving (23297), playing silence
[00000328] main audio output debug: audio output is starving (23251), playing silence
[00000328] main audio output debug: audio output is starving (23280), playing silence
[00000328] main audio output debug: audio output is starving (23247), playing silence
[00000328] main audio output debug: audio output is starving (23238), playing silence
[00000328] main audio output debug: audio output is starving (23265), playing silence
[00000328] main audio output debug: audio output is starving (23228), playing silence
[00000328] main audio output debug: audio output is starving (23223), playing silence
[00000328] main audio output debug: audio output is starving (23239), playing silence
[00000328] main audio output debug: audio output is starving (23304), playing silence
[00000328] main audio output debug: audio output is starving (23245), playing silence
[00000328] main audio output debug: audio output is starving (23254), playing silence
[00000328] main audio output debug: audio output is starving (23230), playing silence
[00000328] main audio output debug: audio output is starving (23278), playing silence
[00000328] main audio output debug: audio output is starving (23232), playing silence
[00000328] main audio output debug: audio output is starving (23274), playing silence
[00000328] main audio output debug: audio output is starving (23292), playing silence
[00000328] main audio output debug: audio output is starving (23264), playing silence
[00000328] main audio output debug: audio output is starving (23302), playing silence
[00000328] main audio output debug: audio output is starving (23239), playing silence
[00000328] main audio output debug: audio output is starving (23249), playing silence
[00000328] main audio output debug: audio output is starving (23230), playing silence
[00000328] main audio output debug: audio output is starving (23259), playing silence
[00000328] main audio output debug: audio output is starving (23264), playing silence
[00000328] main audio output debug: audio output is starving (23249), playing silence
[00000328] main audio output debug: audio output is starving (23300), playing silence
[00000328] main audio output debug: audio output is starving (23318), playing silence
[00000328] main audio output debug: audio output is starving (23293), playing silence
[00000328] main audio output debug: audio output is starving (23288), playing silence
[00000328] main audio output debug: audio output is starving (23275), playing silence
[00000328] main audio output debug: audio output is starving (23263), playing silence
[00000328] alsa audio output debug: recovered from buffer underrun
[00000001] main private debug: removing all interfaces
[00000298] main interface debug: thread 3026881424 joined (interface/interface.c:258)
[00000298] main interface debug: removing module "wxwidgets"
[00000296] main interface debug: thread 3055958928 joined (interface/interface.c:258)
[00000296] main interface debug: removing module "screensaver"
[00000294] main interface debug: thread 3064351632 joined (interface/interface.c:258)
[00000294] main interface debug: removing module "hotkeys"
[00000001] main private debug: removing playlist handler
[00000293] main private debug: thread 3072744336 joined (playlist/playlist.c:247)
[00000301] main input debug: control type=0
[00000301] main input debug: control: stopping input
[00000301] main input debug: closing input
[00000303] main demuxer debug: removing module "v4l"
[00000305] main decoder debug: removing module "araw"
[00000305] main decoder debug: thread 2952731536 joined (input/decoder.c:191)
[00000305] main decoder debug: killing decoder fourcc `araw', 0 PES in FIFO
[00000331] main private debug: removing module "s16tofloat32"
[00000348] main private debug: removing module "bandlimited_resampler"
[00000328] main audio output debug: thread 2944338832 joined (alsa.c:714)
[00000328] main audio output debug: removing module "alsa"
[00000328] main audio output debug: removing module "trivial_mixer"
[00000301] main input debug: thread 2963630992 joined (input/input.c:412)
[00000292] main playlist debug: thread 3081137040 joined (playlist/playlist.c:248)
[00000292] main playlist: stopping playback
[00000292] main playlist debug: deleting playlist item `v4l:/dev/video0'
[00000292] main playlist debug: deleting playlist item `#display'
[00000001] main private debug: removing all video outputs
[00000001] main private debug: removing all audio outputs
[00000001] main private debug: removing module "memcpymmxext"
[00000001] main private debug: opening config file /home/astinx/.vlc/vlcrc
[00000001] main private debug: saving plugins cache file /home/astinx/.vlc/cache/plugins-04041e.dat