You are not logged in.

#1 2013-08-04 12:05:33

Daving
Member
Registered: 2013-08-04
Posts: 1

Installing Webcam

Hi all,

Im having some problems getting my webcam to work with Arch. As far as I can tell, the webcam is using gspca (on the wiki) it mentions that "This driver does not have V4L1 support." but when I'm trying to take an image, it's using V4L2. I've included the output of a few common commands below, hopefully someone can help.

Thanks smile

lsusb:

Bus 001 Device 005: ID 093a:2468 Pixart Imaging, Inc. SoC PC-Camera

dmesg | tail -n 15:

[    4.355371] bcm2708_rng_init=df2c6000
[    4.464748] systemd-udevd[76]: starting version 204
[    4.701857] systemd-modules-load[68]: Inserted module 'snd_bcm2835'
[    5.242091] Linux media interface: v0.10
[    5.522524] Linux video capture interface: v2.00
[    5.682131] gspca_main: v2.14.0 registered
[    5.705351] gspca_main: pac207-2.14.0 probing 093a:2468
[    5.759463] input: pac207 as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/input/input2
[    5.763230] usbcore: registered new interface driver pac207
[    5.939764] bcm2708_i2c bcm2708_i2c.0: BSC0 Controller at 0x20205000 (irq 79) (baudrate 100k)
[    5.957020] bcm2708_i2c bcm2708_i2c.1: BSC1 Controller at 0x20804000 (irq 79) (baudrate 100k)
[    5.976629] bcm2708_spi bcm2708_spi.0: master is unqueued, this is deprecated
[    5.976893] bcm2708_spi bcm2708_spi.0: SPI Controller at 0x20204000 (irq 80)
[    6.188805] Registered led device: led0
[   10.198843] smsc95xx 1-1.1:1.0: eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1

Attempting to get a single frame from the webcam:

ffmpeg -f v4l2 -i /dev/video0 -vframes 1 output.jpg

ffmpeg version 2.0 Copyright (c) 2000-2013 the FFmpeg developers
  built on Aug  1 2013 16:34:32 with gcc 4.7.2 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static --enable-avresample --enable-dxva2 --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-pic --enable-postproc --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab
  libavutil      52. 38.100 / 52. 38.100
  libavcodec     55. 18.102 / 55. 18.102
  libavformat    55. 12.100 / 55. 12.100
  libavdevice    55.  3.100 / 55.  3.100
  libavfilter     3. 79.101 /  3. 79.101
  libavresample   1.  1.  0 /  1.  1.  0
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
[video4linux2,v4l2 @ 0x8c5ca0] Cannot find a proper format for codec 'none' (id 0), pixel format 'none' (id -1)
Assertion *codec_id != AV_CODEC_ID_NONE failed at libavdevice/v4l2.c:792
Aborted (core dumped)

Last edited by Daving (2013-08-04 12:06:53)

Offline

Board footer

Powered by FluxBB