Ask Your Question

Revision history [back]

How do I make P and B frames in C++?

I have a directory of images (frames of a video) than I'm trying to create to make P frames and B frames. How do I go about this after reading in the directory of frames (I currently have the images stored as grey scale in a vector)? I've been poking around and I think I'm supposed to use goodFeaturesToTrack() and calcOpticalFlowPyrLK(), but I'm not entirely sure how to use these functions since I'm new to opencv. Any tips or links to sample code would be appreciated.

Thanks!