LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why do some AVI formats not work properly with IMAQ?

Solved!
Go to solution

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.

0 Kudos
Message 1 of 15
(7,273 Views)

Could you attache your code here? 

Colin Zhang
------------------
LV7.1/8.2/8.2.1/8.5/8.6/9.0/2010/2011/2013/2015/2016/2020; test system development; FPGA; PCB layout; circuit design...
Please Mark the solution as accepted if your problem is solved and donate kudoes


Home--colinzhang.net: My Blog

iTestGroup: One-step test solution provider!
ONTAP.LTD : PCBA test solution provider!
0 Kudos
Message 2 of 15
(7,254 Views)

Hi Austin,

Could you attache you code here? Because I can open and read your 2 AVI files directly by LabVIEW. 

Colin Zhang
------------------
LV7.1/8.2/8.2.1/8.5/8.6/9.0/2010/2011/2013/2015/2016/2020; test system development; FPGA; PCB layout; circuit design...
Please Mark the solution as accepted if your problem is solved and donate kudoes


Home--colinzhang.net: My Blog

iTestGroup: One-step test solution provider!
ONTAP.LTD : PCBA test solution provider!
0 Kudos
Message 3 of 15
(7,253 Views)

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.

0 Kudos
Message 4 of 15
(7,249 Views)

I can't find the error. Here is an example of the code I am using.

0 Kudos
Message 5 of 15
(7,239 Views)

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. 

 

 

Colin Zhang
------------------
LV7.1/8.2/8.2.1/8.5/8.6/9.0/2010/2011/2013/2015/2016/2020; test system development; FPGA; PCB layout; circuit design...
Please Mark the solution as accepted if your problem is solved and donate kudoes


Home--colinzhang.net: My Blog

iTestGroup: One-step test solution provider!
ONTAP.LTD : PCBA test solution provider!
0 Kudos
Message 6 of 15
(7,231 Views)

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.

0 Kudos
Message 7 of 15
(7,227 Views)

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. 

Colin Zhang
------------------
LV7.1/8.2/8.2.1/8.5/8.6/9.0/2010/2011/2013/2015/2016/2020; test system development; FPGA; PCB layout; circuit design...
Please Mark the solution as accepted if your problem is solved and donate kudoes


Home--colinzhang.net: My Blog

iTestGroup: One-step test solution provider!
ONTAP.LTD : PCBA test solution provider!
0 Kudos
Message 8 of 15
(7,218 Views)

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.

0 Kudos
Message 9 of 15
(7,186 Views)

However, I can't use your solution in my project as it is incompatable with the IMAQ2 blocks I'm using throughout.

0 Kudos
Message 10 of 15
(7,182 Views)