xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.



Version 2 (modified by Antoine Martin, 5 years ago) (diff)

--

http://xpra.org/icons/webcam.png

Webcam

This feature is experimental in version 0.17.

Known limitations and caveats:

  • only support with Linux servers
  • work in progress, see #1030
  • there is no systray menu for it
  • black and white only, low resolution
  • no support for multiple sessions per server..
  • it uses too much bandwidth (mostly wasted too)
  • framerate is low
  • server setup requires an out of tree kernel module
  • etc...

Installation

Clients only rely on opencv and its python bindings.

The server relies on a virtual video device, you must install the v4l2loopback kernel module from https://github.com/umlaeute/v4l2loopback. (build then just modprobe v4l2loopback).

The user running the xpra session must be able to access the video devices (ie: adding the user to the video group)

Usage

The server should work out of the box.

Until a systray menu is added, you must start the client with --webcam=on. (you can also specify which video device to use: --webcam=/dev/video2)

Debugging

  • use the -d webcam debug flag
  • run python ./xpra/platform/xposix/webcam_util.py, the correct output looks like this:
    python ./xpra/platform/xposix/webcam_util.py 
    Found 1 virtual video device:
    /dev/video1