Closed dgudim closed 1 month ago
Modifying get_device_path
to just skip unsupported device types unsurprisingly works. I can open a PR if this is the solution you want to go with
In prep.py
def get_device_path(device: Gst.Device) -> Tuple[str, str]:
type_name = device.__class__.__name__
# GstPipeWireDevice doesn't have dedicated GIR binding yet,
# so we have to access its "device.path" in general GStreamer way
if type_name == 'GstPipeWireDevice':
properties = device.get_properties()
path = properties['device.path']
if not path:
path = properties['api.v4l2.path']
return path, 'pipewiresrc'
if type_name != 'GstV4l2Device':
return '', ''
return device.get_property('device_path'), 'v4l2src'
In app.py
(~line 207)
...
...
cam_name = d.get_display_name()
cam_path, src_type = get_device_path(d)
if not cam_name or len(cam_path) == 0:
logger.error('Not recognize this device.')
continue
...
...
Thank you. I haven't seen GstLibcameraDevice
before. Please create PR.
Nice! Done :)
Thank you.
Does not open with an error: