Usage: python3 example.py 192.168.1.3 1 10 out.264
is a clue of how to run from the command line if that is any help.
C/C++ extensions in python libraries are usual compiled & built with python3 setup.py build
from the command line in the directory that is the top of the downloaded package and then installed with sudo python3 setup.py install
at least on many systems however a check on the website gave the following.
How to configure and build the code on Unix (including Linux, Mac OS X, QNX, and other Posix-compliant systems)
The source code package can be found (as a ".tar.gz" file) here. Use "tar -x" and "gunzip" (or "tar -xz", if available) to extract the package; then cd to the "live" directory. Then run ./genMakefiles where is your target platform - e.g., "linux" or "solaris" - defined by a "config." file. This will generate a Makefile in the "live" directory and each subdirectory. Then run "make". If the "make" fails, you may need to make small modifications to the appropriate "config." file, and then re-run "genMakefiles ". (E.g., you may need to add another "-I" flag to the COMPILE_OPTS definition.) Some people (in particular, FreeBSD users) have reported that the GNU version of "make" - often called "gmake" - works better than their default, pre-installed version of "make". (In particular, you should try using "gmake" if you encounter linking problems with the "ar" command.) If you're using "gcc" version 3.0 or greater: You may also wish to add the -Wno-deprecated flag to CPLUSPLUS_FLAGS. If no "config." file exists for your target platform, then try using one of the existing files as a template. If you wish, you can also 'install' the headers, libraries, and applications by running "make install".
I would also suggest taking a look at pyopencv
as well.