Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

VideoCapture -> Frames -> VideoCapture: Possible?

Hi!

I want to extract a few very specific frames out of a VideoCapture Stream that has been created from a file.

Everytime I extract a frame however, I want to feed it back into another VideoCapture, for two reasons:

  • VideoCapture's make it really easy to navigate through a video and read invidual frames.
  • Performance: Video's are big, frames are too. If I were to keep every single of the uncompressed frames in memory, the memory could easily run out on slower machines. I've thought about temporarily saving every frame to a file and only reading one frame at a time when I need it, but it seems kind of clumsy. Same with writing every of these frames to a VideoWriter (So, save the frames as a video) only to read them in once again - Especially because I'd probably lose a lot of accuracy, seeing how they'll get decoded and encoded multiple times.

What do you think should I do?

click to hide/show revision 2
retagged

VideoCapture -> Frames -> VideoCapture: Possible?

Hi!

I want to extract a few very specific frames out of a VideoCapture Stream that has been created from a file.

Everytime I extract a frame however, I want to feed it back into another VideoCapture, for two reasons:

  • VideoCapture's make it really easy to navigate through a video and read invidual frames.
  • Performance: Video's are big, frames are too. If I were to keep every single of the uncompressed frames in memory, the memory could easily run out on slower machines. I've thought about temporarily saving every frame to a file and only reading one frame at a time when I need it, but it seems kind of clumsy. Same with writing every of these frames to a VideoWriter (So, save the frames as a video) only to read them in once again - Especially because I'd probably lose a lot of accuracy, seeing how they'll get decoded and encoded multiple times.

What do you think should I do?