Commit 4b535bd
fix(rpi): Auto-detect and prefer v4l2 for UVC on GStreamer < 1.20
Address `libcamerasrc` instability with USB/UVC capture devices (e.g., MacroSilicon HDMI dongles) on older GStreamer builds (specifically 1.18.x).
- Introduce logic in `publish.py` to check the installed GStreamer version.
- If GStreamer is less than 1.20 and `libcamera` is not explicitly requested, automatically scan `/dev/video*` for known UVC devices.
- Force the use of `v4l2src` for these specific UVC devices to ensure stable video capture.
- This prevents the use of potentially unstable `libcamerasrc` for UVC sources on affected GStreamer versions.
- Remove prior generic `usbcam` detection logic, which is superseded by this targeted approach.
[auto-enhanced]1 parent 41b10b8 commit 4b535bd
1 file changed
Lines changed: 24 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11823 | 11823 | | |
11824 | 11824 | | |
11825 | 11825 | | |
11826 | | - | |
| 11826 | + | |
| 11827 | + | |
| 11828 | + | |
| 11829 | + | |
| 11830 | + | |
| 11831 | + | |
| 11832 | + | |
| 11833 | + | |
| 11834 | + | |
| 11835 | + | |
| 11836 | + | |
| 11837 | + | |
| 11838 | + | |
| 11839 | + | |
| 11840 | + | |
| 11841 | + | |
| 11842 | + | |
| 11843 | + | |
| 11844 | + | |
| 11845 | + | |
| 11846 | + | |
| 11847 | + | |
| 11848 | + | |
| 11849 | + | |
11827 | 11850 | | |
11828 | 11851 | | |
11829 | 11852 | | |
| |||
11846 | 11869 | | |
11847 | 11870 | | |
11848 | 11871 | | |
11849 | | - | |
11850 | | - | |
11851 | | - | |
11852 | | - | |
11853 | | - | |
11854 | 11872 | | |
11855 | 11873 | | |
11856 | 11874 | | |
| |||
0 commit comments