LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Crashing when attempting to change resolution during write to avi

Hello All, I am trying to lower the resolution of an image being saved in order to lower the size of the avi file being produced, but when I try to, the program crashes. When I take away the IMAQ extract or IMAQ resize, it works.

 

Ive attached the current setup; any help would be very much appreciated.

0 Kudos
Message 1 of 4
(2,200 Views)

That might not be the issue but first quick advice would be to put the IMAQ create (image allocation) out of the while loop, you only want to allocate the image buffer once before you enter that while loop.


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 4
(2,195 Views)

Thanks for the help, I actually tried this before, but didnt affect operation. I put it in to show that it was happening when I took the picture. (who knows perhaps my set up of the destination was the problem...)

0 Kudos
Message 3 of 4
(2,188 Views)

To reduce the size of an AVI usually a compression filter (codec) is used. The IMAQ AVI functions let you select the different codecs installed at your system.

There is also an example shipped with LV which compares this codecs so you can see which one fits best.

 

Christian

0 Kudos
Message 4 of 4
(2,163 Views)