12-04-2012 10:31 AM
Hello,
I would like to read AVI files with LabVIEW/Vision and I didn't succeed to read them properly. Indeed, the reading is strongly slow down.
1. I tried to compress them using different filters and it doesn't change anything (size from <1Mo to 150Mo).
2. I tried to change the frame rate and it still doesn't change anything (25 to100 img/sec).
3. I put a timer, in vain.
4. I tried to read the AVI files with the LabVIEW example "Read AVI Example.vi" and I have the same problem.
5. When I try to read 2 AVI files at the same time, the time to read them becomes twice longer.
6. On ChristopheC (active participant) advices, I tried to read the AVI file with and w/o timer, with and w/o image display and the problem still remain, with a slight improvement w/o image display. For a 5sec AVI file, LabVIEW reads it in 21 sec with image presentation and in 17 sec w/o image presentation. There is no change with or w/o timer.
I don't think it comes from my computer, because the hardware is very good and I can read the AVI file properly with VLC software.
Nevertheless, I am working with LabVIEW 8.0 for platform standardization reasons, so I hope the problem doesn't come from there.
Thank you in advance for your help!
12-05-2012 04:08 AM
Hello,
Please, find here some links that could help you to get a better performance in reading AVI files.
1) How do I Play an AVI File from LabVIEW?
http://digital.ni.com/public.nsf/allkb/7847D61D7E5385BF8625659200769B75?OpenDocument
2) High CPU Utilization in Vision AVI Playback
http://digital.ni.com/public.nsf/allkb/4E14B3AFF547243886257195006CB0E1?OpenDocument
3) Read AVI File With Buffering example
https://decibel.ni.com/content/docs/DOC-8479
Regards,
MatthieuR
Matthieu RICORD
National Instruments France
Été de LabVIEW 2014
12 présentations en ligne, du 30 juin au 18 juillet