

We need to install the following prerequisite libraries (if they are not yet installed) I will assume that they have been extracted to ~/Downloads/*. Make sure in particular to have the matching opencv/opencv-contrib versions.ĭownload everything as above and extract the zip/tar files.


I need it here to install the Dense_flow package (for computing Optical flow). They can be quite useful for some more experimental/state-of-the-art methods.

In fact, in this case, the only route is by building both OpenCV and FFMpeg from source: however, this led to a convoluted search on the web through multiple tutorials. The opencv-python package hits almost all of the boxes in a convenient pip install, but does not allow access to non-open-source Video encoders, namely x264 which is what I needed. Strangely enough, I could not find an easy description of how to achieve the above.
