I am using VideoFileImportDriver which is a sample code provided within the forum post by Milestone Systems.
https://download.milestonesys.com/DevCon22/VideoFileImportDriver.zip
I would like to know how to register more than two devices with VideoImportFileDriver.
The video import using the standalone driver VideoFileImportDriver has been confirmed. Based on this, I created VideoFileImportDriver2 to recognize it as multiple drivers.
The changes made in VideoFileImportDriver2 are as follows. For details, please refer to the attached diff.
[Solution]
Assembly information such as title, product, and GUID
[Constants.cs]
HardwareId
ProductDefinition.Id (same as the assembly GUID)
DriverId
Audio1
Video1
Metadata1
VideoStream1RefId
AudioStream1RefId
[VideoFileImportDriverConfigurationManager.cs]
_firmware
_hardwareName
_serialNumber
macAddress
CameraDeviceDefinition.DisplayName
MetadataDeviceDefinition.DisplayName
MicrophoneDeviceDefinition.DisplayName
StreamDefinition.DisplayName
[VideoFileImportDriverDriverDefinition.cs]
Constructor arguments of DriverInfo
With this, we have confirmed that it can be recognized as different hardware with different drivers. However, when trying to import videos using the camera of Driver2, there is an issue where Accord.Video.FFMPEG.dll cannot be loaded, and an exception occurs. The cause of this issue is unknown. In the case of video imports using the camera of the original driver, there is no issue with loading Accord.Video.FFMPEG.dll.
Please let me know the cause and how to resolve this issue.