Can I get compressed data from cvCapture, which is stored into buffer after cvGrabFrame, before using cvRetrieveFrame? I need to keep them in the an archive of compressed frames.
I use cvCaptureFromFile for getting rtsp stream from Axis IP camera.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As far as I see it it’s not possible. CvCapture is a black box structure. There is not really a possibility to access the data inside.
There is the function cv::imencode to compress images. It is not optimal to compress the image again but it should work.
By the way, you’re using the old C API and there is a newer API for C++ that makes capturing more elegant: cv::VideoCapture.