Ask Your Question
2

video frames in reverse order

asked 2013-04-14 06:32:57 -0600

theodore gravatar image

Hi i know that there was an issue, relating how to get a frame in a backwards mode.

I am trying to access frames that are before my current frame so what i am doing is to get the position of my current frame by using the CV_CAP_PROP_POS_FRAMES option and set the new position by decreasing this value according to which frame i want to jump back. However, this does not seem to work, because the way that the video compressors compressing the frames into keyframes.

I have the opencv v2.4.5 and it seems that the problem still exists, so does anybody know if this problems is solved or if there is a possible workaround?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-04-15 10:30:08 -0600

I guess this answer still stands : http://stackoverflow.com/questions/11260042/reverse-video-playback-in-opencv.

So basically if you want to do this you need to store the frames, which is quite stupid. However, if you have a limited jumping back, storing the last 5 elements for example could help you.

edit flag offensive delete link more

Comments

thanks Steven, yeap i know, i have seen all these answers. I was just hoping for a more elegant way than buffering the frames, but anyway it seems that this is not the case. Do you know if the developers are planning to solve this frustrating issue possibly in the next versions or it is something that we will have to live with.

theodore gravatar imagetheodore ( 2013-04-15 12:51:11 -0600 )edit

I guess you will have to live with it or write efficient code for it yourself. Have not seen a pull request or issue tracker for this one yet :)

StevenPuttemans gravatar imageStevenPuttemans ( 2013-04-15 13:18:14 -0600 )edit

Question Tools

Stats

Asked: 2013-04-14 06:32:57 -0600

Seen: 4,499 times

Last updated: Apr 15 '13