I am having problems with MATLAB-videiIO on my 64bit Vista, tried to open AVI file failed, so is "testAll". Here is the errors I am getting, any help is much appreciated.
The videoIO top directory is added to MATLAB path.
>> clear all
>> scorevideo
==> open an AVI file, get error:
??? Invalid MEX-file 'C:\Program Files\MATLAB\videoIO-r720-windowsBin\videoReader_DirectShow.mexw64': The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail.
.
Error in ==> videoReader.videoReader at 151
vr.handle = feval(vr.plugin, 'open',vr.handle, …
Error in ==> scorevideo>getvideofiles at 2836
DAT.vobj = videoReader(pathandfile);
Error in ==> scorevideo>retrievevfinput at 3884
= getvideofiles(FIGM,vfinput);
Error in ==> scorevideo>loadvideofrominput at 3319
vfinput = retrievevfinput(FIGM,loadmode);
Error in ==> scorevideo at 52
loadvideofrominput(FIGM,callbackvar);
??? Error using ==> scorevideo('video_frominput','new')
Invalid MEX-file 'C:\Program Files\MATLAB\videoIO-r720-windowsBin\videoReader_DirectShow.mexw64': The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail.
.
??? Error while evaluating uicontrol Callback
>> cd(fullfile(videoIODir, 'tests'));
>> testAll
testAll…
test_pvtVideoIO_mexName…
??? Error using ==> dlmwrite at 126
Could not open file test_testpvtVideoIOmexName.mexa64
Error in ==> test_pvtVideoIO_mexName at 60
dlmwrite(, );
Error in ==> testAll at 21
test_pvtVideoIO_mexName;
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I did a little extra hunting on the error message and it looks like the problem may be that you need to install the Visual C++ Redistributable Package from Microsoft. Try installing all of these:
I installed the first patch, "VC++ 2008, x64", and it worked!!! I am able to load and play the lab video clips I have. I decided not to install the other patches at the moment, will do that if other problems pop up.
Thanks again for the great support.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am having problems with MATLAB-videiIO on my 64bit Vista, tried to open AVI file failed, so is "testAll". Here is the errors I am getting, any help is much appreciated.
Thanks,
Jhychun
wangjc101@yahoo.com
** environment:
64bit Vista
64bit MATLAB: C:\Program Files\MATLAB\R2007a
32/64bit videoIO: C:\Program Files\MATLAB\videoIO-r720-windowsBin
64bit ffdshow: C:\Program Files\ffdshow
The videoIO top directory is added to MATLAB path.
>> clear all
>> scorevideo
==> open an AVI file, get error:
??? Invalid MEX-file 'C:\Program Files\MATLAB\videoIO-r720-windowsBin\videoReader_DirectShow.mexw64': The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail.
.
Error in ==> videoReader.videoReader at 151
vr.handle = feval(vr.plugin, 'open',vr.handle, …
Error in ==> scorevideo>getvideofiles at 2836
DAT.vobj = videoReader(pathandfile);
Error in ==> scorevideo>retrievevfinput at 3884
= getvideofiles(FIGM,vfinput);
Error in ==> scorevideo>loadvideofrominput at 3319
vfinput = retrievevfinput(FIGM,loadmode);
Error in ==> scorevideo at 52
loadvideofrominput(FIGM,callbackvar);
??? Error using ==> scorevideo('video_frominput','new')
Invalid MEX-file 'C:\Program Files\MATLAB\videoIO-r720-windowsBin\videoReader_DirectShow.mexw64': The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log for more detail.
.
??? Error while evaluating uicontrol Callback
>> cd(fullfile(videoIODir, 'tests'));
>> testAll
testAll…
test_pvtVideoIO_mexName…
??? Error using ==> dlmwrite at 126
Could not open file test_testpvtVideoIOmexName.mexa64
Error in ==> test_pvtVideoIO_mexName at 60
dlmwrite(, );
Error in ==> testAll at 21
test_pvtVideoIO_mexName;
I did a little extra hunting on the error message and it looks like the problem may be that you need to install the Visual C++ Redistributable Package from Microsoft. Try installing all of these:
VC++ 2008, x64 (this is the most important one and may be the only necessary one)
https://www.microsoft.com/downloads/en/details.aspx?FamilyID=7B50FDDF-4798-4FCE-8A8B-A8DFE556C8E4
VC++ 2008 SP1, x86 (just for kicks)
https://www.microsoft.com/downloads/en/details.aspx?familyid=A5C84275-3B97-4AB7-A40D-3802B2AF5FC2&displaylang=en
VC++ 2010, x64 (in case Matlab requires this)
https://www.microsoft.com/downloads/en/details.aspx?familyid=BD512D9E-43C8-4655-81BF-9350143D5867&displaylang=en
VC++ 2010, x86 (least likely to make a difference)
https://www.microsoft.com/downloads/en/details.aspx?FamilyID=a7b7a05e-6de6-4d3a-a423-37bf0912db84
After installing, you'll need to restart Matlab (I'm guessing), and perhaps even reboot.
I installed the first patch, "VC++ 2008, x64", and it worked!!! I am able to load and play the lab video clips I have. I decided not to install the other patches at the moment, will do that if other problems pop up.
Thanks again for the great support.