01-06-2019 12:08 AM
Hi all,
I am using Labwindows/CVI 2017 to capture video and save them into a *.avi file.
When I use the imaqCreateAVI and the imaqWriteAVIFrame functions, the program goes well and generate a movie.avi file.
The code is:
aviSession = imaqCreateAVI("movie.avi", NULL, IMAQ_USE_DEFAULT_QUALITY, 30, 0);
imaqWriteAVIFrame (image, aviSession, NULL, 0);
However, I cannot open the saved movie.avi file with the Windows Media Player with the message "Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file."
So I tried the AVI2 functions as:
avi2Session = imaqCreateAVI2("movie2.avi", NULL, IMAQ_USE_DEFAULT_QUALITY, 30);
imaqWriteAVIFrame2 (image, avi2Session);
but the following error occurred.
NON-FATAL RUN-TIME ERROR: "FullSystem.c", line 84, col 27, thread id 5964: Function imaqCreateAVI2: (errorCode == -1074396157 [0xbff60403]). Unlicensed copy of NI Vision Development Module or NI Vision Runtime.
I am wondering if the AVI2 functions run on the same license as the AVI functions? Why I can use AVI functions but not AVI2 functions?
I have the full development system and the Vision Acquisition software licenses.
Any suggestions are appreciated.
Solved! Go to Solution.
01-07-2019
01:47 PM
- last edited on
01-03-2025
10:34 AM
by
Content Cleaner
I haven't heard of the imaqCreateAVI2 function. Where did you find this? A quick google search for that function doesn't bring up any results.
Vision Acquisition Software (VAS) is included in the Vision Development Module (VDM), so there's a chance that there's something in VDM that you're missing. You could download a trial version to see if it solves the issue. However, I suspect it might just be an issue with the function not being read properly rather than a licensing issue.
01-07-2019
06:03 PM
- last edited on
01-03-2025
10:34 AM
by
Content Cleaner
Hi Francine,
Thank you for the reply. The imaqCreateAVI2 function is under the library tree NI Vision->File I/O and is defined in nivision.h. Please find below the two screenshots for the function.
Here is a link about the AVI2 functions, but it is based on Labview, not LabWindows.
I will try VDM and let you know the results.
BTW, do you know why I cannot open the avi file generated by the imaqCreateAVI function with the Windows Media Player?
Thank you.
Kind regards,
Sipei
01-08-2019 07:31 AM - edited 01-08-2019 07:34 AM
Thanks for the info!
Can you try running a built-in example program that creates an AVI file, and see if you can play those files? If you search the keyword "AVI" in the Example Finder you can find relevant examples.
How large is the file? The IMAQ AVI VIs have a 2GB limitation in LabVIEW and I'd guess that the same is true for CVI.
01-17-2019 06:03 PM
This issue has been solved.
The AVI2 functions are under the license of VDM, so we need to install the vision development module first.