11-24-2013 04:24 PM
I've been trying to do work with manipulating AVI files in Labeled, but it seems that mine will not work. Whenever I try to load them I get the error:
Error -1074396005 occurred at IMAQ AVI2 Close
Possible reason(s):
IMAQ Vision: Invalid AVI session.
What's strange is some AVI files will be read in fine. If anyone could explain why I'm seeing this error or how to convert my AVI files to the correct version I'd appreciate it. I've attached two files. The one labeled test will not work. The one labeled Balloon will.
Solved! Go to Solution.
11-24-2013 09:36 PM
Could you attache your code here?
Home--colinzhang.net: My Blog
11-24-2013 09:43 PM
Hi Austin,
Could you attache you code here? Because I can open and read your 2 AVI files directly by LabVIEW.
Home--colinzhang.net: My Blog
11-24-2013 09:48 PM
Huh. I'll see if it's a bug on my end. The code I'm using is kind of messy and specific to my computer. If I can't get it to work I'll post an edited version.
11-24-2013 10:29 PM
I can't find the error. Here is an example of the code I am using.
11-24-2013 11:09 PM
Hi,
The version is higher than mine, i use LV2010.
Anyway, i attache my code here for you reference. This code can open and read your 2 AVI files.
Home--colinzhang.net: My Blog
11-24-2013 11:28 PM
That's more or less what I have allowing for version differences. However, after messing with the timing I've found it might be a codec issue. Here's the error I get now:
IMAQ Vision: (Hex 0xBFF604BE) Error opening AVI file. An appropriate codec to process this file might not have been found. Install the codec that was used to create this AVI.
Attached is a picture of my code.
11-25-2013 01:25 AM
Hi,
Does my code work fine? I attache the vi as well. I modify my code that is very similar with yours, but it is working fine as well. I put here for your reference.
BTW, i can't open your code due to the PNG file without code. You can Save for Previous as 2010 Version, or Edit-->Create VI Snippet... save as png file with code.
Home--colinzhang.net: My Blog
11-25-2013 12:55 PM
Your code appears to work. I've uploaded a 2010 version of my code here.
I'm just trying to figure out why my code works with some AVIs, but not others.
11-25-2013 01:03 PM
However, I can't use your solution in my project as it is incompatable with the IMAQ2 blocks I'm using throughout.