Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

I want to play video on my computer to make some analysis to frames,the problem that I face ,I can't change video frame rate using labview,but I can change frame rate to the video out of labview using some program

HI All

I want to play video on my computer to make some analysis to it's frames,the problem that I face ,I can't change video frame rate using labview,but I can change frame rate to the video out of labview using some program .

I used IMAQ AVI Read Frame VI

for example I have avi video It's frame rate is 25 fbs ,my image processing code is very fast that can process more 25 fbs,so I want to accelerate video acquisition

 

0 Kudos
Message 1 of 4
(4,396 Views)

Hi abdelhady,

 

Could you please clarify where you're doing the image processing and would like the code to be faster? Are you trying to read a 25fps file into LabVIEW faster than 25fps? Or do you have a file that you read into LabVIEW at 25fps and you're trying to write it out of LabVIEW faster than 25fps for another program to read?

 

Thanks!

Emily C
Applications Engineer
National Instruments
0 Kudos
Message 2 of 4
(4,378 Views)

Emily C

thank you for your replay

I want to read 25fbs file into labview faster than 25fbs

0 Kudos
Message 3 of 4
(4,368 Views)

Hi abdelhady,

 

I looked into this further, and reading an AVI file into LabVIEW faster than its frames per second won't be possible. LabVIEW could read in frames faster than 25fps, but because it will be pulling the available frame at that point in time this would just give you duplicate frames. If you want to be able to read in frames at faster than 25fps, you would need to speed up your AVI file before reading into LabVIEW.

 

There's a good shipping example to show how to read in from an AVI file, "Read AVI File.vi". You'll notice that they add timing to make sure that the while loop runs at the right speed to match up with the frames per second of the file being read. This is to make sure you're not reading duplicate frames.

 

Thank you,

Emily C
Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(4,349 Views)