From: meino.cramer@gmx.de
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] webcam on Gentoo Logitech C270
Date: Mon, 22 Dec 2014 04:00:57 +0100 [thread overview]
Message-ID: <20141222030057.GE14158@solfire> (raw)
In-Reply-To: <20141222024901.GB4154@syscon7>
Joseph <syscon780@gmail.com> [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
next prev parent reply other threads:[~2014-12-22 3:01 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-21 16:51 [gentoo-user] webcam on Gentoo Logitech C270 Joseph
2014-12-21 17:00 ` Joseph
2014-12-21 17:32 ` wabenbau
2014-12-21 17:56 ` meino.cramer
2014-12-21 18:22 ` Joseph
2014-12-21 18:44 ` meino.cramer
2014-12-21 18:49 ` Joseph
2014-12-21 20:08 ` Alexander Kapshuk
2014-12-22 2:45 ` Joseph
2014-12-22 2:49 ` Joseph
2014-12-22 3:00 ` meino.cramer [this message]
2014-12-22 3:25 ` Joseph
2014-12-22 3:58 ` Daniel Frey
2014-12-22 4:26 ` [gentoo-user] webcam on Gentoo Logitech C270 - almost there Joseph
2014-12-21 18:30 ` [gentoo-user] webcam on Gentoo Logitech C270 Joseph
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141222030057.GE14158@solfire \
--to=meino.cramer@gmx.de \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox