Skip to content

Fork of Freedesktop UVC gadget C library with libcamera parameters handling

Notifications You must be signed in to change notification settings

trikimiki/uvc-gadget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

145 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a (yet another) fork of Freedesktop UVC gadget library.

Original library cannot utilize libcamera advanced camera control parameters, such as AWB, Autofocus and etc modes - this heavily limits customization options when using RPi with Camera Module as an Plug-and-play OTG webcam.

The goal is to add parameters to uvc-gadget binary that will pass those control options to libcamera.

I am not an expert with development in this use case (C, UVC cameras, RPi), so expect hacky solutions - I did this for personal usage.

Changes are tested with RPi Zero 2 W, Camera Module 3 (IMX708, basic module with no IR or wide lense), Pi OS Bookworm, and libcamera v0.5.2+99-bfd68f78.

You can find full guide here, with specific systemd fixes required for Bookworm here (thank you f4mi for inspiration and fixes!). The updated systemd script of mine could be found here.

uvcgadget - UVC gadget C library

uvcgadget is a pure C library that implements handling of UVC gadget functions.

Utilities

  • uvc-gadget - Sample test application

Build instructions:

To compile:

$ meson build
$ ninja -C build

Cross compiling instructions:

Cross compilation can be managed by meson. Please read the directions at https://mesonbuild.com/Cross-compilation.html for detailed guidance on using meson.

In brief summary:

$ meson build --cross <meson cross file>
$ ninja -C build

About

Fork of Freedesktop UVC gadget C library with libcamera parameters handling

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 8