Ask Your Question

vidark's profile - activity

2016-11-15 09:27:51 -0600 received badge  Enthusiast
2016-11-13 14:00:40 -0600 commented question VideoCapture -> Frames -> VideoCapture: Possible?

@pklab It's not about whether the feed is faster than the processing or not. I don't care very much about speed. I have an input video file, which consists of x frames. What I now want to have is another VideoCapture object with only very specific frames that have been chosen by an algorithm by looping through the first VideoCapture. Basically, I have a list of frames, and I want them to be accessible in a handy way by having them in a videocapture.

2016-11-11 15:41:15 -0600 commented question VideoCapture#grab Source

@LBerger Aw, too bad that the implementation isn't as straightforward as I had hoped. Oh well, guess I need to dig deeper.

2016-11-11 15:39:51 -0600 commented question VideoCapture#grab Source

@LBerger Oh wow you found it thanks!

2016-11-11 15:39:30 -0600 commented question VideoCapture#grab Source

@LBerger I know, but I could not find the implementation of the VideoCapture class. Only its declaration.

2016-11-11 15:33:45 -0600 asked a question VideoCapture#grab Source

Hi,

where can I find the source for the VideoCapture#grab implementation? I'd like to know if I can encoded frames too, instead of having to retrieve() a decoded version. Why: I need to store a certain, large, number of frames (/question/112096/videocapture-frames-videocapture-possible/) and read them one by one. I can't find a way to simply put specific frames of a VideoCapture into another VideoCapture, and I don't want to store them to files first to only read them a bit later.

2016-11-11 14:07:49 -0600 asked a question 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?

2016-11-08 18:38:30 -0600 asked a question Grab frames from online video file

Hi!

Let's assume I have link "xyz". If opened in my browser, that link leads to a video file being played back: Basically, an existing video file is being streamed. I can, of course, also jump around in the video without having to download it completely.

I now need to "emulate" such behaviour in a Java program of mine. What I want to do:

  • Open the stream from link "xyz".
  • Be able to get metadata such as video length and resolution and FPS
  • Grab and decode frame x.

I thought that OpenCV looked nice, but haven't managed to do so yet. Simply typing opening a VideoCapture class with the link does not seem to work.

Help appreciated, thank you very much!