diff --git a/checks/linux.py b/checks/linux.py index 63ff05e..c7771d6 100644 --- a/checks/linux.py +++ b/checks/linux.py @@ -158,3 +158,20 @@ def checkMissingModules(lines): return [LEVEL_INFO, "Missing Modules (" + str(len(modulesMissingList)) + ")", """You are missing the following default modules:
"] + + +def checkLinuxVCam(lines): + isDistroNix = search('Distribution:', lines) + isFlatpak = search('Flatpak Runtime:', lines) + + if (len(isDistroNix) <= 0) and (len(isFlatpak) <= 0): + return + + hasV4L2Module = search('v4l2loopback not installed', lines) + + if len(hasV4L2Module) > 0: + return [LEVEL_INFO, "VCam not available", + """Using the Virtual Camera requires the v4l2loopback kernel module to be installed.
+ If required, please refer to our Install Instructions on how to install this on your distribution.
+ If the module was not already loaded, OBS will normally ask you for permission to load it when required. This requires a working polkit setup.
+ You can also load the module manually using modprobe v4l2loopback exclusive_caps=1 card_label='OBS Virtual Camera'."""] diff --git a/loganalyzer.py b/loganalyzer.py index 650031f..58a4570 100755 --- a/loganalyzer.py +++ b/loganalyzer.py @@ -189,6 +189,7 @@ def doAnalysis(url=None, filename=None): checkX11Captures(logLines), checkDesktopEnvironment(logLines), checkMissingModules(logLines), + checkLinuxVCam(logLines), checkMacPermissions(logLines) ]) messages.extend(checkVideoSettings(logLines))