ingnoura Posted April 28, 2010 Report Share Posted April 28, 2010 Hey everyone, Can someone tell me why NI Vision assisstant doesn't accept all video (.avi) although they have same properties (RGB, 30fps) and same type(.avi). I am working on video processing with LabVIEW8.6 but My program work on some AVI and doesn't accept others AVI. Thank you in advance. reply Quote Link to comment
bmoyer Posted April 28, 2010 Report Share Posted April 28, 2010 Were these videos created on the computer you're doing the processing on? My guess is that they were created using a video compression format that is not on your computer. The AVI format is like a container and can have different internal formats (codecs) making one AVI compatible with one computer that is not compatible on another because of the internal format (wish there was an easy way to determine which compressors were used to save an AVI, not sure if there is). http://en.wikipedia.org/wiki/Audio_Video_Interleave Bruce Quote Link to comment
ingnoura Posted April 28, 2010 Author Report Share Posted April 28, 2010 Thank you Bruce, I used my computer for saving all avi that I have tryed, in fact I used Ulead Video Studio for converting those vides to avi format, so it uses the same compressor(I think called PCM). Have you any idea what sall I do? Thank you Noura Quote Link to comment
bmoyer Posted April 28, 2010 Report Share Posted April 28, 2010 I don't have Ulead Video Studio but if you are sure the formats and settings are exactly the same from file to file and some work and others don't, then I don't know how to help. PCM is usually used for audio. Try disabling all compression (both video and audio) when saving your AVI to see if you have the problem still. If you have some very small examples, then you could post them, but videos are usually quite large. Bruce Quote Link to comment
asbo Posted April 28, 2010 Report Share Posted April 28, 2010 I would use something like GSpot to actually confirm the video data is encoded the same. Failing that, you're going to have to elucidate as to what "work" and "doesn't accept" really mean in your situation. Quote Link to comment
crelf Posted April 28, 2010 Report Share Posted April 28, 2010 Can you post the two videos for us to look at? Quote Link to comment
ingnoura Posted April 29, 2010 Author Report Share Posted April 29, 2010 Hey every one, I have tryed with GSpot but it doesn't work. I mean that my program display an "Error -1074396120 occurred at IMAQ Extract Single Color Plane Not an image" when I used the full video, but the program works with part of this video that I have extracted with Ulead Video Studio. I have looked for this error in NI forums, but no solution has solved it. even I used "IMAQ create" as it was said. I couldn't attach the videos while they were too long. Here an attachement of my program which consists on doing an OCR on .avi video. To mention i used vision assistant to generate the labVIEW VI, I attached the script that I have made as sub VI. Have any one any idea what's all about? Thank you very much. Noura Quote Link to comment
bmoyer Posted April 29, 2010 Report Share Posted April 29, 2010 If you post the VIs you used to create this screen shots we may be able to help determine what is causing the error. Please post your VIs. Thanks, Bruce Quote Link to comment
ingnoura Posted April 29, 2010 Author Report Share Posted April 29, 2010 Thank you Bruce, The first one is the main VI and the second one is the subVI that I have generate with Vision Assistant. Noura RPM extraction.vi subVIRPM.vi Quote Link to comment
ingnoura Posted April 29, 2010 Author Report Share Posted April 29, 2010 wwwoooooooowwwwwwwww........ I have found the solution. I have downloaded a software called "VirtualDub" and convert the video to "segmented avi" and it works with my VI... Thank youuu alllll for the help. If their's any suggestions to ameliorate my program I wil be so glad to hear from youuu.. Quote Link to comment
bmoyer Posted April 29, 2010 Report Share Posted April 29, 2010 wwwoooooooowwwwwwwww........ I have found the solution. I have downloaded a software called "VirtualDub" and convert the video to "segmented avi" and it works with my VI... Thank youuu alllll for the help. If their's any suggestions to ameliorate my program I wil be so glad to hear from youuu.. That's great because I didn't see anything wrong with the code. I guess the source of your problems was in the AVI file itself. Bruce Quote Link to comment
ingnoura Posted April 30, 2010 Author Report Share Posted April 30, 2010 That's great because I didn't see anything wrong with the code. I guess the source of your problems was in the AVI file itself. Bruce Thank youuuu Bruce,I really appreciate your help....and all of you friends... thank youuu.. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.