LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to write AVI fast - Gigabit Ethernet camera FullHD

Hi Matt W,

 

How did you interagte the Codec? Are you using NI Vision or do you use another toolkit?

 

Thanx

0 Kudos
Message 11 of 13
(1,125 Views)

You can specify a Codec as an input to the IMAQ AVI Create VI.  Below is a tutorial on how to accomplish this.  Keep in mind that these codecs are only those that are installed on the current computer.  So if you don't see a codec there that you're interested in, you'll have to install it on your computer first.

 

http://digital.ni.com/public.nsf/allkb/0A4D5BF47FD3FF0186256E9A004FD671

 

Hope that helps,

Stephen McClanahan

0 Kudos
Message 12 of 13
(1,118 Views)

When call the IMAQ AVI Create Node I pass "ffdshow Video Codec" as the compression filter. In the ffdshow VFW configuration (should be on the start menu) I set encoder to HuffYUV, FOURCC to HFYU, Colorspace to YV12, predictor to Plane (some other may be better depending on what your compressing), and I turn on Adaptive huffman tables.

 

I forget whether this was necessary or not. It's been a while since I set this all up (I exported the settings to a reg file and use that now to reset it if I need a reinstall)

In the video decoder configuration, under DirectShow settings. Under Use ffdshow only in, add LabVIEW.exe and any compiled executables that may need to use ffdshow.

 

The saved videos can be opened with VLC. But I usually use mencoder to compress them with the XviD codec after I'm done streaming, since I don't typically need a loss less video (this saves a lot of hard drive space).

0 Kudos
Message 13 of 13
(1,115 Views)