Resource icon

WebcamReload: Fix webcam or other USB video device freezes

FlyingFathead

New Member
FlyingFathead submitted a new resource:

WebcamReload: Fix webcam or other USB video device freezes - Refreshes your webcam or other UVC video capture device every x minutes so that it doesn't freeze up

obs = obslua

-- The name of the video source is what the title of it is in your OBS video sources list.
-- For clarity, you can i.e. rename your video source in OBS to 'Cam1', 'Cam2' etc and then just add a variation of this script per each camera that you want to refresh as a source every x minutes.
-- Replace 'UVC Webcam' value below with the name of your video capture source
local source_name = 'UVC Webcam'

-- Replace the value underneath (default: 1) with the number of minutes between...

Read more about this resource...
 

Penwy

New Member
Hi.
Just as a head's up, this script causes a crash on OBS closing, as per this issue.
Removing timers (or any sort of callbacks) in script_unload is unnecessary (they get automatically removed on unload anyways) and currently causes a crash.
 
Top