From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0FF6E1389E2 for ; Mon, 22 Dec 2014 03:25:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DE956E0810; Mon, 22 Dec 2014 03:25:08 +0000 (UTC) Received: from mail101c7.megamailservers.com (mail771.megamailservers.com [69.49.98.81]) (using TLSv1.1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AD3C0E07F7 for ; Mon, 22 Dec 2014 03:25:07 +0000 (UTC) X-POP-User: admin@sys-concept.com X-VIP: 69.49.109.100 Received: from syscon7.localdomain (S01060050da7ae68c.ed.shawcable.net [68.149.90.13]) by mail101c7.megamailservers.com (8.13.6/8.13.1) with ESMTP id sBM3P4WJ013970 for ; Sun, 21 Dec 2014 22:25:06 -0500 Received: by syscon7.localdomain (Postfix, from userid 1000) id DA12E2025DA; Sun, 21 Dec 2014 20:25:23 -0700 (MST) Date: Sun, 21 Dec 2014 20:25:23 -0700 From: Joseph To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] webcam on Gentoo Logitech C270 Message-ID: <20141222032523.GC4154@syscon7> References: <20141221165128.GA4092@syscon7> <20141221170040.GB4092@syscon7> <20141221183211.7aabb7d4@hal9000.localdomain> <20141221175643.GB14158@solfire> <20141221182218.GA4071@syscon7> <20141221184910.GA3912@syscon7> <20141222024901.GB4154@syscon7> <20141222030057.GE14158@solfire> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Disposition: inline In-Reply-To: <20141222030057.GE14158@solfire> User-Agent: Mutt/1.5.22 (2013-10-16) X-CTCH-RefID: str=0001.0A020205.54978F13.00EA,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.1 cv=Kql0hwmN c=1 sm=1 tr=0 a=C3ZDv51cNVt4vJz/79I2xQ==:117 a=C3ZDv51cNVt4vJz/79I2xQ==:17 a=SDcUNfBxAAAA:8 a=BDKbP5mgAAAA:8 a=Unq3plm5DvEA:10 a=M1kyBYkWWGkA:10 a=8nJEP1OIZ-IA:10 a=pGLkceISAAAA:8 a=A92cGCtB03wA:10 a=9I5xiGouAAAA:8 a=UP4GTUUaj5UVvfMorgMA:9 a=wPNLvfGTeEIA:10 X-Origin-Country: CA X-Archives-Salt: 74a7542a-9db6-4988-a523-a339d33a3956 X-Archives-Hash: 8395a08114a0cece173fed0bcf360382 On 12/22/14 04:00, meino.cramer@gmx.de wrote: >Joseph [14-12-22 03:52]: >> On 12/21/14 22:08, Alexander Kapshuk wrote: >> > grep '^CONFIG.*V4L' /usr/src/linux/.config >> > CONFIG_VIDEO_V4L2=m >> > CONFIG_V4L_PLATFORM_DRIVERS=y >> > CONFIG_MEDIA_SUPPORT=m >> > CONFIG_USB_VIDEO_CLASS=m >> > CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y >> > CONFIG_USB_GSPCA=m >> > CONFIG_MEDIA_PCI_SUPPORT=y >> > grep -s ^LD_PRELOAD .* >> > .bash_profile:LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so >> > Also, you may want to try plugging you webcam into a USB2 port, if >> > available, instead of a USB3 one, as suggested here, >> > >> >[6]http://linux-kernel.2935.n7.nabble.com/3-15-8-USB-issue-with-uvc-cam >> > -td920378.html. >> > Hope this helps. >> >> When I try to run: guvcview >> >> I get: >> guvcview 1.6.1 >> ALSA lib >> /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) >> Unknown PCM cards.pcm.rear >> ALSA lib >> /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) >> Unknown PCM cards.pcm.center_lfe >> ALSA lib >> /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) >> Unknown PCM cards.pcm.side >> ALSA lib >> /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) >> Found no matching channel map >> video device: /dev/video0 ERROR opening V4L2 interface for /dev/video0 >> unable to detect video devices on your system (0) >> ERROR opening V4L interface: Permission denied >> Init video returned -1 >> VIDIOC_REQBUFS - Failed to delete buffers: Inappropriate ioctl for >> device (errno 25) >> cleaned allocations - 100% >> Closing portaudio ...OK >> >> -- >> Joseph >> > >Hi Joseph, > >in conjucntion with the C920 I found that guvcview does not plai well >with it. > >First try to get anything from your webcam, before trying Skype or >such - so you have to fight against too many "open ends" or failure >sources. > >Do you have gstreamer installed? > >Try this command/shell script: >You have to adopt the device options to you setup. >It will record and display the video stream. > >#! /bin/zsh >td=`date +%Y-%m-%d-%Hh%Mh%Ss` >fn=c920-$td.mp4 >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 & >mplayer $fn & > >HTH! >Best regards, >Meino I can get a video when I run "guvcview" with banch of errors: vid:046d pid:0825 driver:uvcvideo mapping control for Pan (relative) UVCIOC_CTRL_MAP - Error: No such file or directory mapping control for Tilt (relative) UVCIOC_CTRL_MAP - Error: No such file or directory mapping control for Pan Reset UVCIOC_CTRL_MAP - Error: No such file or directory mapping control for Tilt Reset UVCIOC_CTRL_MAP - Error: No such file or directory mapping control for Focus (absolute) UVCIOC_CTRL_MAP - Error: No such file or directory mapping control for LED1 Mode UVCIOC_CTRL_MAP - Error: No such file or directory mapping control for LED1 Frequency UVCIOC_CTRL_MAP - Error: No such file or directory mapping control for Disable video processing UVCIOC_CTRL_MAP - Error: No such file or directory mapping control for Raw bits per pixel UVCIOC_CTRL_MAP - Error: No such file or directory mapping control for Off UVCIOC_CTRL_MAP - Error: Inappropriate ioctl for device checking format: 1196444237 VIDIOC_G_COMP:: Inappropriate ioctl for device fps is set to 1/25 drawing controls Checking video mode 640x480@32bpp : OK Could not grab image (select timeout): Resource temporarily unavailable When I try to record anything bunch of errors messages popping up in command line: (guvcview:5004): GConf-WARNING **: error creating revert set: Client failed to connect to the D-BUS daemon: 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 expired, or the network connection was broken. I don't think this web-cam is Linux friendly :-/ Are there any alternative, web-cam that support Linux 100% -- Joseph