Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

VideoCapture: partially decoded video data?

I've been following the VideoCapture tutorial http://docs.opencv.org/3.2.0/d5/dc4/tutorial_video_input_psnr_ssim.html and it strikes me that only fully decoded frames are analysed.

Is there a way to get hold of lower level information, i.e. partial decodings of an mp4 file? Since this is all I need for my analysis, I hope it would be more efficient than decoding the entire video:

  1. key frames (potentially in their encoded form, but decoded is also fine)
  2. p-frame motion vectors... I know h264 gets a bit more complex with full inter-frame but just forward motion estimation is fine.
  3. the fourier space from AAC (or anything that would resemble the DTFT... I realise this is a bit more ill-defined, it's not as important)

thanks!