Input: orange crank rotating regularly.
Output: grey bar linearly reciprocating with adjustable stroke length.
Yellow lower slider has revolution joint with pink slider.
Adjust position of the pink slider on the fixed runway to get various stroke lengths of the output.
The video shows stroke length reducing process when the mechanism is running.