I am thinking of using TTree to store captured video frames (with some associated data). Are there recommendation or examples regarding using TTree with large data sets such as video frames? Is it an appropriate method for storing such data (i.e. instead of writing the frames out using other video compression frameworks).
For our application, it would be useful to consolidate the data with the video frames, and then process the single tree file for analysis. I’ve implemented a branch in a tree to store a class that contains the video frame data, however I’m finding it to be slow while writing to the disk (because of compression?), and I am uncertain about the best way to read the data later…
- Is there a recommended ROOT class to store the video data (which is just a stream of unsigned char bytes)? Or would storing the byte stream as an array, within a class associated with a branch, suffice?
- If the video data per frame is typically about 400-700KB, are there any recommendations about splitting the branch, and about how to specify the buffer size?