Ignore blank video frames and fix overflow issues