09-08-2008 05:12 PM
I am doing time laps video. I create an avi file. Periodically I write to it. At the end I close the file.
If the program closes unexpectedly/ungraciously all the video is lost. Most unhappy.
I got the bright idea to close the file and then re-open the avi file. Snake-eyes.
Is it possible to append to an avi file? I would have thought so but you never know...
09-08-2008 05:26 PM
What method are you using to write to the file in the first place? Are you using NI-Vision by any chance?
If you write out pieces of a movie as separate files you can join them after the fact using something like VirtualDub.
09-08-2008 09:08 PM
I am using NI Vsion. I started out with AVI Create->AVI Write->AVI Close. If the program stopped un-gracefully then the entire file was lost.
Next I went to something like AVI Create->AVI Close-> [AVI Open->AVI Write->AVI Close {Repeat Loop}]
and every permutation I could think of. AVI Open seems to actually be "AI Open Read-Only" because writing to a file opened with AVI Open only produced a blank stare from the program.
If there is a secrete way to get AVI open to open for appending that would be great to know.
If not, I suppose I could save each piece and then combine them with windows movie maker. That is a fairly mesolithic solution, but at least it would allow us to (somewhat) walk around upright.
09-09-2008 09:08 AM
09-09-2008 11:56 AM
Hi anonamouse,
It looks like you already have your answer in the Vision forum but I just wanted to say that this is correct. You can no directly append to a AVI in LabVIEW.