Hi All,
I'm trying to get my USB3 basler camera running in a docker container. I got all the gstreamer stuff and related plugin installed, as well as plyon5. I run my docker container with --privileged. When I run lsusb I can see that the camera is detected by the container.
Bus 003 Device 024: ID 2676:ba03 Basler AG
However, when I try to start a gstreamer pipeline, the debug window tells me that there's no device connected.
0:00:00.030106101 1785 0x12d82c0 DEBUG pylonsrc gstpylonsrc.c:406:gst_pylonsrc_init:GstPylonsrc@0x12db2e0 Initialising defaults
0:00:00.030305032 1785 0x12d82c0 DEBUG pylonsrc gstpylonsrc.c:490:gst_pylonsrc_set_property: Setting a property.
0:00:00.030354757 1785 0x12d82c0 DEBUG pylonsrc gstpylonsrc.c:490:gst_pylonsrc_set_property: Setting a property.
0:00:00.030371261 1785 0x12d82c0 DEBUG pylonsrc gstpylonsrc.c:490:gst_pylonsrc_set_property: Setting a property.
0:00:00.030518459 1785 0x12d82c0 DEBUG pylonsrc gstpylonsrc.c:490:gst_pylonsrc_set_property: Setting a property.
0:00:00.046894329 1785 0x12d82c0 DEBUG pylonsrc gstpylonsrc.c:908:gst_pylonsrc_get_caps: Received a request for caps.
0:00:00.046998730 1785 0x12d82c0 DEBUG pylonsrc gstpylonsrc.c:910:gst_pylonsrc_get_caps: Could not send caps - no camera connected.
0:00:00.047203802 1785 0x12d82c0 DEBUG pylonsrc gstpylonsrc.c:908:gst_pylonsrc_get_caps: Received a request for caps.
0:00:00.047263152 1785 0x12d82c0 DEBUG pylonsrc gstpylonsrc.c:910:gst_pylonsrc_get_caps: Could not send caps - no camera connected.
0:00:00.048256673 1785 0x12d82c0 DEBUG pylonsrc gstpylonsrc.c:908:gst_pylonsrc_get_caps: Received a request for caps.
0:00:00.048294306 1785 0x12d82c0 DEBUG pylonsrc gstpylonsrc.c:910:gst_pylonsrc_get_caps: Could not send caps - no camera connected.
0:00:00.048375466 1785 0x12d82c0 DEBUG pylonsrc gstpylonsrc.c:908:gst_pylonsrc_get_caps: Received a request for caps.
0:00:00.048404863 1785 0x12d82c0 DEBUG pylonsrc gstpylonsrc.c:910:gst_pylonsrc_get_caps: Could not send caps - no camera connected.
0:00:00.048961188 1785 0x12d82c0 DEBUG pylonsrc gstpylonsrc.c:908:gst_pylonsrc_get_caps: Received a request for caps.
0:00:00.048996337 1785 0x12d82c0 DEBUG pylonsrc gstpylonsrc.c:910:gst_pylonsrc_get_caps: Could not send caps - no camera connected.
0:00:00.049733303 1785 0x12d82c0 DEBUG pylonsrc gstpylonsrc.c:908:gst_pylonsrc_get_caps: Received a request for caps.
0:00:00.049844406 1785 0x12d82c0 DEBUG pylonsrc gstpylonsrc.c:910:gst_pylonsrc_get_caps: Could not send caps - no camera connected.
0:00:00.050082880 1785 0x12d82c0 DEBUG pylonsrc gstpylonsrc.c:908:gst_pylonsrc_get_caps: Received a request for caps.
0:00:00.050120296 1785 0x12d82c0 DEBUG pylonsrc gstpylonsrc.c:910:gst_pylonsrc_get_caps: Could not send caps - no camera connected.
Setting pipeline to PAUSED ...
0:00:00.329791603 1785 0x12d82c0 DEBUG pylonsrc gstpylonsrc.c:990:gst_pylonsrc_start: pylonsrc: found 0 Basler device(s).
0:00:00.329856942 1785 0x12d82c0 ERROR pylonsrc gstpylonsrc.c:992:gst_pylonsrc_start: No devices connected, canceling initialisation.
0:00:00.329864056 1785 0x12d82c0 WARN pylonsrc gstpylonsrc.c:993:gst_pylonsrc_start: error: Failed to initialise the camera
0:00:00.329869502 1785 0x12d82c0 WARN pylonsrc gstpylonsrc.c:993:gst_pylonsrc_start: error: No camera connected
ERROR: Pipeline doesn't want to pause.
Does anyone have any idea where I should go from here?
BR,
SC
I've never personally used a USB3 Vision camera in a container, didn't even know it was possible actually, I thought containers (at least VMs) only passed through USB2. Are you able to see the camera with the Pylon Viewer? I'd also give Aravis a try.
ok, so I got it working by forwarding all usb ports to the docker container.
Does anyone know where the usb camera gets mounted?
It didn't look like it showed up anywhere in /dev.
It is unclear to me from the dmesg log where the usb camera is actually mounted.
Does anyone have any idea?
BR.
SC