03-16-2010 12:13 PM
I am having a problem capturing and saving video at high speeds. I have images of size 2448 x 2050 x 8bit, which are being acquired at 15 frames/second. I can successfully write this to disk as an uncompressed AVI in labview, and not miss any frames for the length of an experiment (5-10 minutes). However, I would prefer to write individual frames to uncompressed tiff files and have so far been unsuccessful in getting the same performance. Is there some reason that writing to tiff is inherently slower. Does anyone have any suggestions for improving performance? With the tiff writing I can get 8-10 frame/second.
I've attached a picture of my code with the tiff writing in place (the avi version basically just replaces "write file" with "avi write frame").
Any help is appreciated.
Ken
Solved! Go to Solution.
03-16-2010 01:00 PM
Loolk like HDD is your bottleneck.
In worst case 2448 x 2050 x 1 byte x 15 = 75 276 000 or approx. 75 MB. Tiff file can be compressed, but this take additional time. So, your hard drive should be able to write at least 75 MB/s. Commonly you will get 50-60 MB/s, ant this is probably reason. Try to add several HDDs in RAID0.
Andrey.
03-16-2010 01:09 PM
Andrey, thanks for the response. We are close to limited by our HD speed, but I still thought it was weird that I can write 15fps for an AVI but not for a TIFF. Both are uncompressed in our case. Our hard drive spec says 78MB/second sustained data transfer rate, so we still would benefit from a RAID array.
Ken
03-16-2010 01:15 PM
03-18-2010 12:10 PM
03-10-2011 06:11 PM
I can vouch that it is indeed the overhead of opening and closing the tiff each time. I had a beastly machine put together for just such an application (similar image size and write speed), and it could only keep up for a minute or so before dropping frames. Write to AVI, then convert later.
03-12-2011 09:36 AM
ooops,,,didn't notice this post was almost a year old 🙂