Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How to record video as AVI file?

Snap, Sequence, Grap got official example

 

But how to record video as AVI ?

 

I found related api:

imaqCreateAVI

imaqWriteAVIFrame

imaqCloseAVI

 

I don't know how to input parameter.

Someone know about it ?

0 Kudos
Message 1 of 5
(5,293 Views)

i also need to know how to record video as AVI ... 😞


@cheng_li wrote:

Snap, Sequence, Grap got official example

 

But how to record video as AVI ?

 

I found related api:

imaqCreateAVI

imaqWriteAVIFrame

imaqCloseAVI

 

I don't know how to input parameter.

Someone know about it ?




0 Kudos
Message 2 of 5
(5,166 Views)

Hello,

 

Seems there is no direct example for AVI recording. You can use the help document "NIVisionCSupport.chm" to check for function use.

C:\Program Files (x86)\National Instruments\Vision\Help\NIVisionCSupport.chm

 

Also, I have an example from LabVIEW. Maybe you can follow the using sequence in LabVIEW to modify your code with those AVI functions.

2015-10-16_153259.jpg

0 Kudos
Message 3 of 5
(5,134 Views)

@DaveWei wrote:

Hello,

 

Seems there is no direct example for AVI recording. You can use the help document "NIVisionCSupport.chm" to check for function use.

C:\Program Files (x86)\National Instruments\Vision\Help\NIVisionCSupport.chm

 

Also, I have an example from LabVIEW. Maybe you can follow the using sequence in LabVIEW to modify your code with those AVI functions.

2015-10-16_153259.jpg


do you have vi file for this code ? and anycamera is usefull with it or not?

0 Kudos
Message 4 of 5
(5,130 Views)

Hi,

 

I attached the vis for 1394 cameras and for cameras using NI IMAQ driver. It's possible you need to modify some parts of them.

 

Camera using issue is not directly related to AVI file saving. You can verify if your system can normally use camera first. and then use image acquired to build a AVI file.

 

Download All
0 Kudos
Message 5 of 5
(5,127 Views)