Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

AVI Length

Hello,

 

When I run the attached VI for 10 seconds I only get 3 seconds of video.

 

Hopefully someone can set me straight.

 

Thanks

Dan Shangraw, P.E.


   

0 Kudos
Message 1 of 6
(4,904 Views)

Hi Dan,

 

Have you tried setting the Frames per Second to something lower than the default, to something like 15?

 

Also, when playing back the video, is the video cut off or does it appear to be sped up?

 

0 Kudos
Message 2 of 6
(4,875 Views)

What is the size of the resulting AVI? There is currently a limit on the file size of the AVI that you can write of 2GB. When that size is reached, the write VI will return an error, but you should be able to close the AVI and it should be readable.

We are working to see if we can remove that limitation. Sorry, I can't promess a timeline for a potential fix....

0 Kudos
Message 3 of 6
(4,859 Views)

Hello,

 

The AVI file is way less than 2GB.  Thanks for letting me know that restriction.

Dan Shangraw, P.E.


   

0 Kudos
Message 4 of 6
(4,844 Views)

Hi ASTDan,

 

The problem is not with the AVI length. The problem is how u understood the logic.

Frames per sec is not the capture rate, the rate at which u want to play the avi file when opened.

IMAQdx grab u've used will acquire most current image and sends as an output. Which means for every while loop iteration u're adding one image only to avi file.

Please find the attachement i've made for ur requirement.

Don't hesitate to reply back if ur problem is not solved.

Thanks
uday
0 Kudos
Message 5 of 6
(4,785 Views)

I think I solved the problem.

 

My Video acquire and saving was taking longer than .33 ms (inverse of 30 frams per second)

 

I lowered my frame rate and added a Wait until next millisecond multple that corresponded to my new lower frame rate.

 

Works greatGrab and Save to AVI IMAQdx 8_6_BD.png

Dan Shangraw, P.E.


   

0 Kudos
Message 6 of 6
(4,762 Views)