I’m working on a video file to do some processes on its frames. Size of the video is 1280*720 and hereby it is a bit difficult get a good performance(about 1 million pixels for per frame).
So I wanted to reduce its size (640*360 is enough for me) by SetCaptureProperty method of Opencv but it does not work (the Opencv2.2 says it works with only camera captures, not with video files)
I could use resize method of Opencv but I think it is not an efficient way to do it to resize for every frame.
Can you suggest a better way to handle this issue?
Thanks in advance!
You could use the ffpmeg util to convert the video into a lower resolution.