Input: pink gear rotating one way.
Output: brown table to which a rack is fixed linearly reciprocating.
Positions of orange stoppers that are fixed to the table decide length stroke of the table.
Snap mechanism (green and violet T-shaped levers, red spring, blue stoppers) ensures that yellow semi clutches do not stop at their neutral positions.
Green V-shaped handle is for pausing the table without stopping the input (see last scene of the video).
This mechanism can be used for planing machines like in following video: