LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving / making avi with Vision in CVI

Hi!
How do i save an avi
clip? I have spend some time reading Ni posts, knowledge base, ect. And can’t find any helpful information tied to cvi and avi.

I seem to have a problem when creating the image buffer for incoming frame.The function imaqWriteAVIFrame is telling me : “incompatible image size”, and as I checked more or less it has it point, because the imaqCreateImage function is returning an image of size (0,0). When I tried to change it manually by using imaqsetImageSize to some better size than double 0 for example (640, 480) it started to work – it mades a video, but all the frames in it are empty (black). The size of the video is changing depending on the duration.

I do not use any
compression, ROI or SAW settings. The f. imaqCreateImage  I tried already with all possible parameters and still nothing.
I´m gona be grateful for any help.
 

P4, XP, CVI 8.5, NI-1408, IMAQ 3.7, Vision 8.5, C, PAL

 

 -----------------------------------------------------------------------------------------------------------------------------------------------------------------

<Post orginaly posted @ Machine Vision

http://forums.ni.com/ni/board/message?board.id=200&thread.id=25077 >

0 Kudos
Message 1 of 2
(3,185 Views)
can you shrink your code to the minimum and post it here so that we can have a look at the way you use imaqWriteAVIFrame() ?
0 Kudos
Message 2 of 2
(3,166 Views)