LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write AVI file with XVID codec in Labview

Hello Vincent,

 

Does the Shipping Example mentioned the post above list the codec?

Can you share the VI you are using?

Can you share an NI MAX Report?

http://digital.ni.com/public.nsf/allkb/271F252B4EF0A2E0862570E70056A1E4?OpenDocument

 

Thanks for your cooperation!

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 11 of 14
(1,088 Views)

Hello Thierry,

 

Sorry. I worked on others projects. Here's my MAX Report.

 

Kind Regards,

Vincent

0 Kudos
Message 12 of 14
(1,059 Views)

Hello Vincent,

 

Can you also provide answers to the following two questions?

1) Does the Shipping Example mentioned the post above list the codec?

2) Can you share the VI you are using?

Kind Regards,
Thierry C - CLA, CTA - Senior R&D Engineer (Former Support Engineer) - National Instruments
If someone helped you, let them know. Mark as solved and/or give a kudo. 😉
0 Kudos
Message 13 of 14
(1,036 Views)

Hi, the reason is that you have a grayscale image and Xvid is for color images.
"IMAQ AVI2 Get Codec Names" will only show you compatible AVI compression codecs...
Use "RGB (U32)" in "IMAQ Create" and load with "IMAQ ReadFile 2" a color image. Now "IMAQ AVI2 Get Codec Names" will also show "Xvid MPEG-4 Codec".

You can store a grayscale image with Xvid MPEG-4 Codec, but I think LabVIEW will convert it to RGB first. This needs extra time. Consider a pipelined structure with "IMAQ Cast Image 2" vi.


Greetings
Andreas

 

Message 14 of 14
(593 Views)