Significantly improved the video processing performance (an order of magnitude faster) by using ffmpeg's built-in frame de-duplication