Gentoo Archives: gentoo-user

From: Joseph <syscon780@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] webcam on Gentoo Logitech C270
Date: Mon, 22 Dec 2014 03:25:14
Message-Id: 20141222032523.GC4154@syscon7
In Reply to: Re: [gentoo-user] webcam on Gentoo Logitech C270 by meino.cramer@gmx.de
1 On 12/22/14 04:00, meino.cramer@×××.de wrote:
2 >Joseph <syscon780@×××××.com> [14-12-22 03:52]:
3 >> On 12/21/14 22:08, Alexander Kapshuk wrote:
4 >> > grep '^CONFIG.*V4L' /usr/src/linux/.config
5 >> > CONFIG_VIDEO_V4L2=m
6 >> > CONFIG_V4L_PLATFORM_DRIVERS=y
7 >> > CONFIG_MEDIA_SUPPORT=m
8 >> > CONFIG_USB_VIDEO_CLASS=m
9 >> > CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y
10 >> > CONFIG_USB_GSPCA=m
11 >> > CONFIG_MEDIA_PCI_SUPPORT=y
12 >> > grep -s ^LD_PRELOAD .*
13 >> > .bash_profile:LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so
14 >> > Also, you may want to try plugging you webcam into a USB2 port, if
15 >> > available, instead of a USB3 one, as suggested here,
16 >> >
17 >> >[6]http://linux-kernel.2935.n7.nabble.com/3-15-8-USB-issue-with-uvc-cam
18 >> > -td920378.html.
19 >> > Hope this helps.
20 >>
21 >> When I try to run: guvcview
22 >>
23 >> I get:
24 >> guvcview 1.6.1
25 >> ALSA lib
26 >> /var/tmp/portage/media-libs/alsa-lib-1.0.28/work/alsa-lib-1.0.28/src/pcm/pcm.c:2239:(snd_pcm_open_noupdate)
27 >> Unknown PCM cards.pcm.rear
28 >> ALSA lib
29 >> /var/tmp/portage/media-libs/alsa-lib-1.0.28/work/alsa-lib-1.0.28/src/pcm/pcm.c:2239:(snd_pcm_open_noupdate)
30 >> Unknown PCM cards.pcm.center_lfe
31 >> ALSA lib
32 >> /var/tmp/portage/media-libs/alsa-lib-1.0.28/work/alsa-lib-1.0.28/src/pcm/pcm.c:2239:(snd_pcm_open_noupdate)
33 >> Unknown PCM cards.pcm.side
34 >> ALSA lib
35 >> /var/tmp/portage/media-libs/alsa-lib-1.0.28/work/alsa-lib-1.0.28/src/pcm/pcm_route.c:947:(find_matching_chmap)
36 >> Found no matching channel map
37 >> video device: /dev/video0 ERROR opening V4L2 interface for /dev/video0
38 >> unable to detect video devices on your system (0)
39 >> ERROR opening V4L interface: Permission denied
40 >> Init video returned -1
41 >> VIDIOC_REQBUFS - Failed to delete buffers: Inappropriate ioctl for
42 >> device (errno 25)
43 >> cleaned allocations - 100%
44 >> Closing portaudio ...OK
45 >>
46 >> --
47 >> Joseph
48 >>
49 >
50 >Hi Joseph,
51 >
52 >in conjucntion with the C920 I found that guvcview does not plai well
53 >with it.
54 >
55 >First try to get anything from your webcam, before trying Skype or
56 >such - so you have to fight against too many "open ends" or failure
57 >sources.
58 >
59 >Do you have gstreamer installed?
60 >
61 >Try this command/shell script:
62 >You have to adopt the device options to you setup.
63 >It will record and display the video stream.
64 >
65 >#! /bin/zsh
66 >td=`date +%Y-%m-%d-%Hh%Mh%Ss`
67 >fn=c920-$td.mp4
68 >gst-launch-1.0 v4l2src device=/dev/video1 ! video/x-h264,width=1920,height=1080,framerate=30/1 ! h264parse ! muxout. alsasrc device="hw:3,0" ! queue ! audioconvert ! lamemp3enc ! muxout. matroskamux name=muxout streamable=true ! filesink location=$fn &
69 >mplayer $fn &
70 >
71 >HTH!
72 >Best regards,
73 >Meino
74
75 I can get a video when I run "guvcview" with banch of errors:
76
77 vid:046d
78 pid:0825
79 driver:uvcvideo
80 mapping control for Pan (relative)
81 UVCIOC_CTRL_MAP - Error: No such file or directory
82 mapping control for Tilt (relative)
83 UVCIOC_CTRL_MAP - Error: No such file or directory
84 mapping control for Pan Reset
85 UVCIOC_CTRL_MAP - Error: No such file or directory
86 mapping control for Tilt Reset
87 UVCIOC_CTRL_MAP - Error: No such file or directory
88 mapping control for Focus (absolute)
89 UVCIOC_CTRL_MAP - Error: No such file or directory
90 mapping control for LED1 Mode
91 UVCIOC_CTRL_MAP - Error: No such file or directory
92 mapping control for LED1 Frequency
93 UVCIOC_CTRL_MAP - Error: No such file or directory
94 mapping control for Disable video processing
95 UVCIOC_CTRL_MAP - Error: No such file or directory
96 mapping control for Raw bits per pixel
97 UVCIOC_CTRL_MAP - Error: No such file or directory
98 mapping control for Off
99 UVCIOC_CTRL_MAP - Error: Inappropriate ioctl for device
100 checking format: 1196444237
101 VIDIOC_G_COMP:: Inappropriate ioctl for device
102 fps is set to 1/25
103 drawing controls
104
105 Checking video mode 640x480@32bpp : OK
106 Could not grab image (select timeout): Resource temporarily unavailable
107
108 When I try to record anything bunch of errors messages popping up in command line:
109
110 (guvcview:5004): GConf-WARNING **: error creating revert set: Client failed to connect to the D-BUS daemon:
111 Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout
112 expired, or the network connection was broken.
113
114 I don't think this web-cam is Linux friendly :-/
115 Are there any alternative, web-cam that support Linux 100%
116
117 --
118 Joseph