I wanted to get thumbnails from videos from a point around half way through and I accomplished this by using:
But my solution is very slow and it actually loops in video. It is not a smart solution for larger files.
IContainer.seekKeyFrame looks useful for my problem. Can someone explain how I can use seekKeyFrame for this purpose.
I modified code and exits loop after taking frame from fifth second. Not best but a working solution.