Laniru Posted July 17, 2006 Report Share Posted July 17, 2006 Hello! Now I have another problem. I have an avi video, the first thing that I want is open this video and then I want to take x images and make an image processing. Finally I want to make a video with the images processed. If you can help I will be really greatefull 'cos I don't know hot to begin. Thank you!!! Quote Link to comment
Chris Davis Posted July 17, 2006 Report Share Posted July 17, 2006 Hello!Now I have another problem. I have an avi video, the first thing that I want is open this video and then I want to take x images and make an image processing. Finally I want to make a video with the images processed. If you can help I will be really greatefull 'cos I don't know hot to begin. Thank you!!! I can't remember from your other posts if you have IMAQ Vision Toolkit. If you do, this should be fairly easy, since there are AVI read / write VIs from National installed with the IMAQ Vision Toolkit. If not you might want to start checking NIs web site for links like this. If you are serious about doing image processing in LabView, but don't want to pay for the IMAQ Vision Toolkit, you might want to check out Irene He's IVision Toolkit which is priced lower, but is still very useful. There are also some other options, but you'll have to work even harder to get them into labview... Quote Link to comment
Laniru Posted July 17, 2006 Author Report Share Posted July 17, 2006 I have the IMAQ Vision Toolkit, and I can see the icons of AVI read/write VIs. But when I put them at the diagram block, I don't know what is happening that appears me the problems, I path with an AVI video and seems that I can read it but then the problems begins. If somebody can attach an example of open an AVI, make something on it (like a threshold) and then save it, then I will be really happy. Thank you! Quote Link to comment
crelf Posted July 17, 2006 Report Share Posted July 17, 2006 ...then the problems begins. What are the problems? Is it that you are having difficulty working with AVIs, or that you are having difficulty working with LabVIEW? Can you post an example of the code you've already tried? Quote Link to comment
Laniru Posted July 18, 2006 Author Report Share Posted July 18, 2006 Here I attched something that I do Download File:post-5503-1153219131.vi. The problem that appears is: Incomptaible size image. And when this problem will be solutionated, how I make an image processing and then how I save it like a new video? Sorry but I can attached the video!! Quote Link to comment
Laniru Posted July 18, 2006 Author Report Share Posted July 18, 2006 After a large day I can attach somenthing better than before, but at the end the problem is the same: Error 1074395993 occured at IMAQ AVI Open File I/O error :headbang: What am I doing wrong? Thank you Download File:post-5503-1153249641.vi Quote Link to comment
crelf Posted July 18, 2006 Report Share Posted July 18, 2006 Error 1074395993 occured at IMAQ AVI Open File I/O error Hmmmmmm - looks like IMAQ AVI Open File doesn't like your avi file - can you upload it for us to have a look at it? Can you play it with a media player (eg: Windows Media Player)? It's possibly a codec issue... Quote Link to comment
Laniru Posted July 18, 2006 Author Report Share Posted July 18, 2006 I can see the video correctly with the windows media player. Sorry I don't know what hapens but I can't attach the video. So you should help me without my video!!! Quote Link to comment
Cool-LV Posted July 19, 2006 Report Share Posted July 19, 2006 I can see the video correctly with the windows media player. Sorry I don't know what hapens but I can't attach the video. So you should help me without my video!!! Hi, Have you tried the other AVI video file ? Do they open failed ? and I found your sample there are logical problem, why you put the stop button outside the while loop ??? and AVI reference not been closed etc. Quote Link to comment
crelf Posted July 19, 2006 Report Share Posted July 19, 2006 Sorry I don't know what hapens but I can't attach the video. Zip it up first - *.avi files aren't permitted to be uploaded to the forum. Quote Link to comment
Chris Davis Posted July 19, 2006 Report Share Posted July 19, 2006 I can see the video correctly with the windows media player. Sorry I don't know what hapens but I can't attach the video. So you should help me without my video!!! The last time I used the NI AVI read / write routines in IMAQ, they had trouble with certain codecs. But it has been awhile since I used those VIs from NI. You might consider changing the codec of the AVI file to one that is more common. One codec that should work without problems is called "Cinepak". It is installed by default on every Windows distribution from 95 to XP SP2, in fact I believe it was on 3.1.1 as well ! Anyway, you may need an AVI converter to recompress the video, in which case I would reccomend VideoMach from Gromada.com. For others on the list they also make a free video player that allows the user to step through a movie frame by frame, (something that windows media player lost a long time ago) and save individual frames as individual images. It also contains no advertisements or liscense restrictions that I'm aware of, and I've found it to be a worthwhile investment :thumbup: BTW, they also claim that thier software runs on linux using wine with no problems. Quote Link to comment
Laniru Posted July 19, 2006 Author Report Share Posted July 19, 2006 Thank you to all who help me. Now I can open the AVI file and see the frame, all it's ok. But now I don't know how to save each frame and make a video with them, 'cos my program only save tha last frame that he processed. I think that if you can say me how to do this, then, more or less I finish the program that I need. Thank you for your collaboration!!! 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.