Closed WatskeBart closed 2 years ago
I would not replace it. For example: you use a usb webcam and change the port, by-id would also fit after the change. By-path would not fit and have to be modified.
For me to use my HDMI-to-CSI platform-3f801000.csi-video-index0 -> ../../video0
, /dev/v4l/by-path/ is the only option.
So, I thinkered around that. Replacing by-id isnt an Option for me, because its mainly made to support webcams and not hdmi2csi hats, besides the fact I dont know why you want to use a hdmi source as feed for a webcam daemon. But I dont want to give it up, maybe as additional input for the logging function, but it is last on my todo for now. As a reminder, if you use moonrakers update Manager to update crowsnest it will fail if you modify files. Regards
@WatskeBart
Please checkout the new branch https://github.com/mainsail-crew/crowsnest/tree/feat/csi-adaptors and test the changes. If you report success, I will merge it ASAP. Shouldnt you react in any form on this I will drop it.
Regards
Is your feature request related to a problem? Please describe
When using a HDMI-to-CSI module (eg B101 or C780), these devices or not found by logging.sh.
These kind of devices are not listed in /dev/v4l/by-id/ (only USB devices are)
Describe the solution you'd like
Instead of using /dev/v4l/by-id/ try
/dev/v4l/by-path/
This way all possible video devices are enumerated.
Describe alternatives you've considered
In my setup i've changed line 88 to
/dev/v4l/by-path/
and everything works as expected.Additional information
Example of /dev/v4l/by-path/:
Example of /dev/v4l/by-id/:
I really like the crowsnest addon because of ustreamer. Previously I used mjpg-streamer as part of KIAUH, but it slower and more limited then ustreamer.