Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

slow down of AVI reading

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!

0 Kudos
Message 1 of 2
(3,281 Views)

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

0 Kudos
Message 2 of 2
(3,266 Views)