videoinput issues for supported format between matlab environment and standalone applications with matlab run time

4 ビュー (過去 30 日間)
Feng Zhou
Feng Zhou 2016 年 10 月 11 日
コメント済み: Feng Zhou 2016 年 11 月 15 日
Hi there,
I have experienced an issue for the function videoinput in different computers with the same camera.
Basically I am using
vid = videoinput('winvideo', 1, 'RGB24_640x480');
which worked in one computer but not working in the other computer with the same camera.
The one that worked is within the matlab environment while the one that is not working is after I created a standalone applications with matlab runtime.
The problem I found out is that the format 'RGB24_640x480' is not supported by the other computer after I created the standalone applications.
So I used the function info = imaqhwinfo('winvideo') in the matlab environment
AdaptorDllName: 'C:\ProgramData\MATLAB\SupportPackages\R2016a\toolbox\imaq\sup…'
AdaptorDllVersion: '5.1 (R2016a)'
AdaptorName: 'winvideo'
DeviceIDs: {[1]}
DeviceInfo: [1×1 struct]
info.DeviceInfo.SupportedFormats has 72 results
And I also want to show what is supported in the standalone applications in the other computer, it showed only two options RGB24_1920x1440 and RGB24_320x240
So my question is what limited the format options when I created a standalone applications on other computers when I am using the exactly the same camera (plug and unplug the same camera between two computers for testing) and how can I extend the format options.
Thank you for your help!

回答 (2 件)


Madhura Suresh
Madhura Suresh 2016 年 11 月 15 日
Hi Feng,
"winvideo" uses directshow drivers, that are present on your machine by default - however this might change between different Win operating systems. Are there any differences between the 2 machines in terms of the Operating Systems?
  1 件のコメント
Feng Zhou
Feng Zhou 2016 年 11 月 15 日
One is Win7 and the other is Win 10. That's probably the reason.

サインインしてコメントする。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by