Skip to content

MmfVideo ConnectInternal failed with frame grabber UGREEN #1265

@Francisca97691

Description

@Francisca97691

Hello everyone,

I am getting a connection error when trying to initialize a video stream from a USB frame grabber using the PLUS Toolkit (fCal) for temporal calibration. When I launch fCal, the logs show that the device is found and lists 1920x1080 YUY2 60fps as a supported format. However, it fails to initialize and it connects with my laptop camera. How can I solve this?

My setup:
Windows 11
Frame grabber:
Image
PlusApp-2.8.0.20190617-Win64

What I have already tried (without success):

  1. Changed VideoFormat from YUY2 to MJPG.
  2. Verified that absolutely no other background applications (like OBS, Zoom, or Windows Camera) are using the device.
  3. Checked Windows Privacy settings to ensure desktop apps have permission to access the camera.
  4. Tried to reduce the frame size.

My DeviceSet XML:

<Device
  Id="VideoDevice" 
  Type="MmfVideo"
  DeviceIndex="0"
  DeviceName="UGREEN 25773" 
  FrameSize="1920 1080"
  FrameRate="60"
  VideoFormat="YUY2" >
  <DataSources>
    <DataSource Type="Video" Id="Video" PortUsImageOrientation="MF" ImageType="BRIGHTNESS" />
  </DataSources>
  <OutputChannels>
    <OutputChannel Id="VideoStream" VideoDataSourceId="Video" />
  </OutputChannels>
</Device>

It throws the following errors:
|INFO|004.527000| Connect to devices| in E:\D\PSNP64b\PlusApp\fCal\Toolboxes\QConfigurationToolbox.cxx(158)
|INFO|004.660000| Selected US image orientation: MF| in E:\D\PSNP64b\PlusLib\src\PlusDataCollection\vtkPlusDataSource.cxx(301)
|WARNING|004.893000|> Unable to init capture device with requested details: device ID: 0 (UGREEN 25773) stream 0, 1920x480, 30Hz, YUY2| in E:\D\PSNP64b\PlusLib\src\PlusDataCollection\MicrosoftMediaFoundation\vtkPlusMmfVideoSource.cxx(313)
|INFO|004.927000|> Supported vide formats for Device Id 0 (UGREEN 25773)| in E:\D\PSNP64b\PlusLib\src\PlusDataCollection\MicrosoftMediaFoundation\vtkPlusMmfVideoSource.cxx(680)
|INFO|004.928000|> Stream index 0 - Frame size: 1920x1080, video format: YUY2, frame rate: 60| in E:\D\PSNP64b\PlusLib\src\PlusDataCollection\MicrosoftMediaFoundation\vtkPlusMmfVideoSource.cxx(685)
[...]
|ERROR|004.966000|> Unable to initialize capture device with default details: device ID: 0 (UGREEN 25773) stream 0, 640x480, 30Hz, YUY2|
[...]
|ERROR|005.038000| VideoDevice: Cannot connect to data source, ConnectInternal failed|
|ERROR|005.038000| Unable to connect device: VideoDevice.|
|ERROR|005.038000| Unable to start collecting data!|

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions