Opencv VideoCapture playback, fast frame replay

Opencv C++ tutorial how to playback video frames and video loaded into memory, Fast video replay by slider. Simple described and working tutorial working in Visual studio 2015 with simple installation by Nugets Here or also with classical one..

This is not something special, but useful. Few days earlier, I post in memory video access by vector<Mat>. Great, fast approach but the short video fills RAM memory and crash the program even if you have 8 GB available. Maybe It is to danger and i decided to cancel this article.

In this example, i want to access GOPRO HD faster and skipped frames video and in memory is pure fantasy over minute video length.

Opencv VideoCapture property CV_CAP_PROP_POS_FRAMES

I don't add extra comments. The code is pretty simple. I only highlights the important parts by RED font color.

This is only important part. By the slider_position value set the CV_CAP_PROP_POS_FRAMES value.