Seeking In-Band Logitech C920 USB Webcam Manual Focus Control Strategy: Out of band workaround described.
Posted: Sun Aug 20, 2017 3:49 am
Hello world,
I'm trying to figure out how to manually control focus, sharpness, etc. of my Logitech C920 USB webcam, preferably from within ZoneMinder and preferably on a time-varying basis.
I see 3 potential strategies:
1)I've been fiddling with uvcdynctrl and find it promising, it allows access to the needed controls without interference with/from ZM. In theory I could run uvcdynctrl from RC files and crontab entries and achieve my goals. But I would appreciate some advice as to where to put my initial RC-file type scripting. My fear is that if I roll my own with no advice, I'll come up with something that seems stable but may fail if the system boots out-of-sequence. Haven't tested to see if ZM loads the camera with ZM defaults (might fiddle with it tonight).
2)Go the orthodox route and come up with Python control scripts: but I don't know Python and seems overblown for my purposes.
3)On each of the Monitor Feeds, I find a Settings link. This link brings up a table populated with Brightness, Contrast, Hue, and Colour controls (note Hue is not supported by the C920, the fact of which leads to periodic warnings in ZM top level log.) And sure enough, modifications in this table are accurately reflected when polling the cameras with uvcdynctrl. But I can't find any information as to how this table is built or how to modify it. Any tips for me?
I'm trying to figure out how to manually control focus, sharpness, etc. of my Logitech C920 USB webcam, preferably from within ZoneMinder and preferably on a time-varying basis.
I see 3 potential strategies:
1)I've been fiddling with uvcdynctrl and find it promising, it allows access to the needed controls without interference with/from ZM. In theory I could run uvcdynctrl from RC files and crontab entries and achieve my goals. But I would appreciate some advice as to where to put my initial RC-file type scripting. My fear is that if I roll my own with no advice, I'll come up with something that seems stable but may fail if the system boots out-of-sequence. Haven't tested to see if ZM loads the camera with ZM defaults (might fiddle with it tonight).
2)Go the orthodox route and come up with Python control scripts: but I don't know Python and seems overblown for my purposes.
3)On each of the Monitor Feeds, I find a Settings link. This link brings up a table populated with Brightness, Contrast, Hue, and Colour controls (note Hue is not supported by the C920, the fact of which leads to periodic warnings in ZM top level log.) And sure enough, modifications in this table are accurately reflected when polling the cameras with uvcdynctrl. But I can't find any information as to how this table is built or how to modify it. Any tips for me?