Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

append to avi file

Is it possible to append to the end of an avi file?

I created a file, wrote to it and then I closed the file.

Later in the program I open the file and then write to it.  After the program is finished running and I the file is viewed and none of the stuff I thought I wrote is there in the file.

Any help/suggestions appreciated. 

0 Kudos
Message 1 of 3
(3,742 Views)

anonamouse -

 

The NI Vision AVI functions do not support directly appending to an existing AVI file.  If you would like to do this, you'll need to create a new file, copy all the existing frames to that file and then add frames to that file before closing it.

 

Hope that helps!

 

Greg Stoll

Vision R&D

National Instruments

Message Edited by gregstoll on 09-09-2008 09:52 AM
Greg Stoll
LabVIEW R&D
Message 2 of 3
(3,740 Views)

Thank you for your help.  Knowing to stop beating my head against a wall is a big relief.  The common causes of abnormal program termination are filling up the hard drive, battery running down on the UPS or notebook, and user malfunction.  I am collecting 30 to 50 gig of uncompressed video, so doing a mouth-wash-swish from one file to another before each recording is prohibitive with current consumer grade hardware.  It will be easy enough to stack them together later.

 

Thanks again.

0 Kudos
Message 3 of 3
(3,735 Views)