Skip to content
This repository was archived by the owner on Apr 26, 2023. It is now read-only.
This repository was archived by the owner on Apr 26, 2023. It is now read-only.

Autosplit does not work properly with v4l2loopback virtual devices #55

@Gamebuster19901

Description

@Gamebuster19901

Using v4l2loopback, I have created a virtual device, and piped my capture card's output into the new virtual device.

https://askubuntu.com/a/1244152/1061866

Virtual devices created with v4l2loopback can be accessed by multiple programs simultaneously. I'm trying to allow both OBS and Auto-Split to access the new virtual device at /dev/video5

In autosplit, I see two devices with the same name as my capture card:

image

When selecting either of these devices, I get the following error:

Traceback (most recent call last):

  File "/home/gamebuster/Desktop/autosplit/src/capture_method/CaptureMethodBase.py", line 56, in __read_loop
    self._last_captured_frame, self.__is_old_image = self._read_action(autosplit)

  File "/home/gamebuster/Desktop/autosplit/src/capture_method/VideoCaptureDeviceCaptureMethod.py", line 39, in _read_action
    result, image = self.capture_device.read()

cv2.error: OpenCV(4.7.0) /io/opencv/modules/videoio/src/cap.cpp:349: error: (-2:Unspecified error)  in function 'grab'

Other programs are able to access /dev/video5 simultaneously just fine (in the image below, you see VLC has the device open, and OBS also has it open at the same time.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    LinuxSpecific to LinuxbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions