I want to decode the MPEG motion vectors using OpenCV in C++.
Is there any function in OpenCV through which we can get this?
Brightness may not be constant through out the video in my case.

I am referring paper Efficient camera motion characterization for MPEG video indexing

It says use partial decoding to get motion vectors from MPEG-compressed video sequence. But I am unable to determine how to do this using OpenCV. How to proceed?

share|improve this question
feedback

1 Answer

up vote 0 down vote accepted

OpenCV uses ffmpeg, v4linux or QuickTime as backend video encoder/decoder. It cannot access internal data or partial decoding results, because it is just a wrapper over other libraries. All it does is to handle frames from the backend and convert them to IplImage or cv::Mat.

If you want to access internal data, you should play with the ffmpeg code.

share|improve this answer
Thanks @vasile. – rajiv shah Jul 31 at 8:54
feedback

Your Answer

 
or
required, but never shown
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.