Skip to content

Error when selecting akvcam virtual camera #208

@philippulus

Description

@philippulus

I have successfully installed akvcam and Linux-Fake-Background-Webcam on my Ubuntu 24.04 system with pipewire virtual environment.

This is how the config ini file look like:

[General]
default_frame=/etc/akvcam/config.jpg

[Cameras]
cameras/size = 2

cameras/1/type = output
cameras/1/mode = mmap, userptr, rw
cameras/1/description = Akvcam (Output device)
cameras/1/formats = 2

cameras/2/type = capture
cameras/2/mode = mmap, rw
cameras/2/description = Akvcam (Capture device)
cameras/2/formats = 1

[Formats]
formats/size = 2

formats/1/format = YUY2
formats/1/width = 1280
formats/1/height = 720
formats/1/fps = 30

formats/2/format = RGB24
formats/2/width = 1280
formats/2/height = 720
formats/2/fps = 30

[Connections]
connections/size = 1
connections/1/connection = 1:2

These are the video devices:

v4l2-ctl --list-devices
Akvcam (Output device) (platform:akvcam-2):
/dev/video2

Akvcam (Capture device) (platform:akvcam-3):
/dev/video3

HD Pro Webcam C920 (usb-0000:c4:00.3-2.1):
/dev/video0
/dev/video1
/dev/media0

This is how I am starting the camera:

Check Loaded Modules:
Verify that the Akvcam module is loaded by running:

lsmod | grep akvcam

If it is not listed, load it manually:

sudo modprobe akvcam

Activate the virtual environment:

source /opt/Linux-Fake-Background-Webcam/virtualenv/bin/activate

Configure and Run the Application:
Use the lfbw command to start the fake background application. You need to specify the input and output video devices:

lfbw -v /dev/video2 --background-image=/etc/akvcam/background.jpg --no-foreground

There are two problems here.

  1. When selecting akvcam as a virtual camera in Cheese, an error message i displayed, that cannot be reverse after selecting back the physical camera. I need to unload akvcam (sudo rmmod akvcam), close and restart cheese for the camera to become activated again:
    Screenshot from 2024-09-12 09-59-44

  2. Background loading seems to be OK.
    Screenshot from 2024-09-12 10-40-40
    Then this changes as shown as soon Cheese is started with the video signal from the physical camera.
    At this stage, I select akvcam in Cheese and loops back to 1. above.

Any idea where the issue is?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions