04-15-2015 07:40 PM
Hi,
I just noticed when dropping a IMAQ AVI2 Read Frame vi in place of an older IMAQ AVI Read Frame vi, there is no "data out" terminal. I do make use of this feature to add data to the frames of the AVI. Is there supposed to be an alternative way to store this frame data, using the imaq image custom info perhaps?
Solved! Go to Solution.
04-16-2015 04:04 PM
Hello David,
You are correct in that the data out terminal is no longer available in the AVI2 functions. However you can use the IMAQ Read Custom Data and IMAQ Write Custom Data functions. These allow you to write and read custom data to the IMAQ images using specified keys. In this way you can add miscellaneous data to your images for later use.
04-16-2015 09:38 PM
02-18-2016 08:25 AM
+1 for Frame Data in AVI2. I'm still relying on the AVI frame data feature and, if removing the old AVI VIs set from palette is a step toward obsolescing them, I'd regret its absence.
02-18-2016 02:15 PM
02-18-2016 02:34 PM
@Hatef wrote:
I wonder too why old IMAQ AVI could open more avi format than new one ?
it always told that there is no codec for this avi?!
that is weird
OT perhaps here? Have you seen this thread instead: http://forums.ni.com/t5/Machine-Vision/New-v-s-Old-AVI-VI-s-Codec-Problems/m-p/2999571
02-18-2016 08:52 PM
08-17-2017 06:14 PM
This is not the case, I just tried it finally. I was scared to try due to another commenter saying it's not possible, it turns out he's right. When reading back the video and trying to extract the data using "read custom data", double checking my "key" name, I get the error:
Report
Error Message: IMAQ Read Custom Data IMAQ Vision: (Hex 0xBFF605B5) The key you specified cannot be found in the image. [Error Code: -1074395723] |
So it appears I need to revert (fortunately I use Perforce) and use the original avi tools. However, the reason I was trying to switch over is I am in the midst of transitioning to 64 bit teststand and labview, and I ran into a codec issue. Long story. But I'll try and get away with the original tools.
There absolutely needs to be a fix to this. Seems crazy to get rid of it.
02-08-2018 06:44 PM
FYI, thought I'd post back after I opened a ticket with NI, and what came out of it.
Basically, the the new "AVI2" dropped the custom frame data terminal from AVI1, and it is on their "list" to add it back. If you're code breaks when going to AVI2, and you need to go to AVI2 for any reason (mine was framerate related) and you want frame metadata, you have to code a method yourself outside of the AVI. IMO I thought this was quite surprising to drop functionality like that. We are probably going to migrate to a different AVI method all together outside of NI vision , perhaps OpenCV functions or such.
Thought someone might benefit from this info so they don't spend a lot of time chasing the issue.
Dave