[Help] Write avi to memory from camera use Opencv

I want to write a avi file to memory not save disk. Use Opencv.

I hope you will help me! thanks you so much!
I don't have a ton of experience with OpenCV but I've played with it enough to know that this is a pretty simple task. You open your device as an instance of the "cv::VideoCapture" class and pipe the frames to a "cv::Mat" class with the output operator (>>).

This is from the OpenCV documentation: http://docs.opencv.org/modules/highgui/doc/reading_and_writing_images_and_video.html#videocapture

The only difference is that you seem to want to keep the frames in memory so you would want stuff the cv::Mat classes into a vector or something. There is probably a better class to use, but should be enough to get you started

Thanks you so much!
Topic archived. No new replies allowed.