Motion detection C++ source code with Xcode project added. OpenCV and ffmpeg needed for compile.