Cam and Gear Mechanism

Input is the green gear and cam that rotate regularly. The blue output internal gear rotates with inconstant velocity.