[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Webcam in an i386 chroot (on an amd64)



Davide Mancusi ha scritto:
I recently upgraded my system to amd64 and now I am trying to set up an i386 jail for those programs that do not run natively on amd64. I want to use my webcam, which works well outside the chroot; however, 32-bit programs do not manage to access the device.

Examples of error messages:
$ schroot -p xawtv
I: [sid32-8d1fa3f9-ee58-4f25-b3e6-5453ba4d40c3 chroot] Running command: "xawtv"
This is xawtv-3.95.dfsg.1, running on Linux/i686 (2.6.21-amd64-bootsplash)
xinerama 0: 1152x864+0+0
/dev/video0 [v4l]: ioctl VIDIOCGCAP: Invalid argument
no video grabber device available

$ schroot -p camorama
[Pop-up window: Could not connect to video device. Please check connection]

$ schroot -p motion
I: [sid32-9c74ac33-34ee-4ec6-b1f3-e448cc3da0e2 chroot] Running command: "motion"
[0] Processing thread 0 - config file /etc/motion/motion.conf
[1] Thread is from /etc/motion/motion.conf
[1] Thread started
[1] ioctl (VIDIOCGCAP): Invalid argument
[1] Capture error calling vid_start
[1] Thread finishing...

I have tried to STFW, but no luck. Any suggestion?

Davide


Maybe the following info could be more useful. Compare the output of the following commands:

(on amd64)
$ v4lctl -v2 webcam ~/prova.jpg
Xvideo: 1 adaptors available.
Xvideo: ATI Radeon Video Overlay: input image, ports 115-115
Xvideo: no usable video port found
vid-open: trying: v4l2-old...
vid-open: failed: v4l2-old
vid-open: trying: v4l2...
ioctl: VIDIOC_QUERYCAP(driver="";card="";bus_info="";version=0.0.0;capabilities=0x0 []): Unknown error 515
vid-open: failed: v4l2
vid-open: trying: v4l...
v4l: open: /dev/video0 (Logitech QuickCam USB)
  capabilities:  capture
  size    : 160x120 => 324x248
  channels: 1
ioctl: VIDIOCGCHAN(channel=0;name="Camera";tuners=0;flags=0x0 [];type=CAMERA;norm=0): ok
    Camera: 0  camera
  audios  : 0
ioctl: VIDIOCSCHAN(channel=0;name="Camera";tuners=0;flags=0x0 [];type=CAMERA;norm=0): ok PALioctl: VIDIOCSCHAN(channel=0;name="Camera";tuners=0;flags=0x0 [];type=CAMERA;norm=1): ok NTSCioctl: VIDIOCSCHAN(channel=0;name="Camera";tuners=0;flags=0x0 [];type=CAMERA;norm=2): ok SECAMioctl: VIDIOCSCHAN(channel=0;name="Camera";tuners=0;flags=0x0 [];type=CAMERA;norm=3): ok AUTOioctl: VIDIOCSCHAN(channel=0;name="Camera";tuners=0;flags=0x0 [];type=CAMERA;norm=0): ok

ioctl: VIDIOCGFBUF(base=(nil);height=0;width=0;depth=0;bytesperline=0): ok
  fbuffer : base=0x(nil) size=0x0 depth=0 bpl=0
ioctl: VIDIOCGPICT(brightness=32768;hue=32768;colour=32768;contrast=32768;whiteness=32768;depth=24;palette=RGB24): ok
  picture : brightness=32768 hue=32768 colour=32768 contrast=32768
  picture : whiteness=32768 depth=24 palette=rgb24
ioctl: VIDIOCGMBUF(size=321408;frames=1;offsets=0): ok
  mbuf: size=321408 frames=1
  v4l: using mapped buffers for capture
vid-open: ok: v4l
freq: reading /usr/share/xawtv/Index.map
ioctl: VIDIOCGCHAN(channel=0;name="Camera";tuners=0;flags=0x0 [];type=CAMERA;norm=0): ok ioctl: VIDIOCGPICT(brightness=32768;hue=32768;colour=32768;contrast=32768;whiteness=32768;depth=24;palette=RGB24): ok ioctl: VIDIOCGPICT(brightness=32768;hue=32768;colour=32768;contrast=32768;whiteness=32768;depth=24;palette=RGB24): ok ioctl: VIDIOCGPICT(brightness=32768;hue=32768;colour=32768;contrast=32768;whiteness=32768;depth=24;palette=RGB24): ok ioctl: VIDIOCGPICT(brightness=32768;hue=32768;colour=32768;contrast=32768;whiteness=32768;depth=24;palette=RGB24): ok
cmd: "webcam" "/home/davide/prova.jpg"
v4l: setformat
ioctl: VIDIOCGCAP(name="Logitech QuickCam USB";type=0x1 [CAPTURE];channels=1;audios=0;maxwidth=324;maxheight=248;minwidth=160;minheight=120): ok
v4l: capture probe 24 bit TrueColor (BE: rgb)...        failed
setformat: 24 bit TrueColor (BE: rgb) (0x0): failed
v4l: setformat
ioctl: VIDIOCGCAP(name="Logitech QuickCam USB";type=0x1 [CAPTURE];channels=1;audios=0;maxwidth=324;maxheight=248;minwidth=160;minheight=120): ok v4l: capture probe 24 bit TrueColor (LE: bgr)... ioctl: VIDIOCMCAPTURE(frame=0;height=120;width=160;format=4): ok
ioctl: VIDIOCSYNC(int=0): ok
ok
setformat: 24 bit TrueColor (LE: bgr) (0x0): ok
v4l: setformat
ioctl: VIDIOCGCAP(name="Logitech QuickCam USB";type=0x1 [CAPTURE];channels=1;audios=0;maxwidth=324;maxheight=248;minwidth=160;minheight=120): ok
v4l: getimage
ioctl: VIDIOCMCAPTURE(frame=0;height=0;width=0;format=4): Invalid argument
v4l: close



(on i386)
$ schroot -p -- v4lctl -v2  webcam ~/prova.jpg
I: [sid32-25de803f-d813-4394-b7ae-35dc3b557e1a chroot] Running command: "v4lctl
-v2 webcam /home/davide/prova.jpg"
Xvideo: 1 adaptors available.
Xvideo: ATI Radeon Video Overlay: input image, ports 115-115
Xvideo: no usable video port found
vid-open: trying: v4l2-old...
vid-open: failed: v4l2-old
vid-open: trying: v4l2...
ioctl: VIDIOC_QUERYCAP(driver="";card="";bus_info="";version=0.0.0;capabilities=
0x0 []): Invalid argument
vid-open: failed: v4l2
vid-open: trying: v4l...
vid-open: failed: v4l
no grabber device available


Davide

--
A tautology is a thing which is tautological.
--
Time flies like an arrow.  Fruit flies like a banana.



Reply to: