11-06-2013 05:39 AM
Hi there,
I created a vi that opens and reads an AVI file, analyses it and saves a certain selection of frames as an image.
My problem is the speed of this vi is not to my satisfaction. My machine is not the best (2 year old notebook) just playing an AVI in LV10 is not very fast. But I noticed something. The display speed of the video is not constant. It begins fast then slows down, slows further down... and suddenly it's quick again for a few seconds just before getting slower again.
I understand that LV uses the CPU to process AVI files. Now, is there a reason why the speed varies so much? Did I oversee something in my vi? To empty the memory after every frame e.g.?
Is there any way to speed this video reading and displaying process up or is it simply a matter of CPU power?
Thanks for any help and opinions!
seasoo
11-06-2013 06:46 PM
Post a code snip from your application, and let's see what you are doing with the image reference.
11-07-2013 03:37 AM
Alright, here's one code snap of the beginning. The code is much more complex now but the problem was there from the beginning...
PS: also attached is the code of the used svi
11-07-2013 12:12 PM
Another problem occurs especially when my vi is reading an HD avi file:
Error 1074395975
Did I miss to empty the used memory after each frame or how could I solve this?
12-12-2013 06:04 AM
Did you install the newest DirectX version?
Regards,
Adilo