Before contours can be found, video is converted to grayscale, background subtraction is performed and results get binarized. Circles are characterized by the aspect ratio of the individual blob.
Video mit FFMPEG verkleinern:ffmpeg -i beer.mkv -s 568x320 -c:a copy shrink.mkv