Virtual Camera

Use the Camera Board on the Rpi as a (virtual) camera plugged into another PC

Here we go:

  1. install UV4L and the MJPEGStream driver on your PC (download the packages for Ubuntu, or the generic archive), then upgrade UV4L on the Rpi to the latest version;
  2. make sure the UV4L Streaming ServerĀ is running on the Rpi;
  3. make a virtual Video4Linux2 device on your PC from the above stream with the following command:
mypc ~ $ uv4l --driver mjpegstream --auto-video_nr --uri http://raspberrypi:8080/stream/video.jpeg

Now you have a device registered as /dev/video0 (or higher) on your PC that you can use as you prefer, for example:

mypc ~ $ LD_PRELOAD=/usr/lib/uv4l/uv4lext/x86_64/libuv4lext.so jitsi

or

mypc ~ $ vlc v4l2:///dev/video0

The LD_PRELOAD environment variable has to be set for some applications. If you are in doubt, always specify it. Jitsi is a video-conferencing application which can be downloaded at https://jitsi.org/

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close