A machine comprising a frame, such as a frame supporting a control unit and/or a machine's fluid circuit (4,40,41,42,43), and a capsule handling device (1") mounted in and/or on the frame, the device (1") having an outlet for dispensing an extract of a capsule (2a,2b) handled by the device and optionally a fluid inlet connected to a machine's fluid circuit (4,40,41,42,43) for circulating a fluid into such capsule (2a,2b), the capsule handling device (1") comprising: - a first part that is movable relatively to the frame from a transfer position for inserting and/or removing said capsule (2a,2b) to an extraction position for extracting such capsule and vice versa, optionally a first part has a support with an outlet for letting out an extract of said capsule (2a,2b) e.g. via or along an opening device such as via an opening plate; - a second part that has a capsule receptacle delimiting a cavity for receiving such capsule (2a,2b) and for forming an extraction chamber (21") with the first part in its extraction position, the second part comprising a first portion and a second portion that are relatively movable between a first relative position and a second relative position to change at least one dimension (21da,21db,21ha,21hb) of the cavity and of the extraction chamber (21"), optionally a second part having an inlet for letting a fluid into the chamber (21") to said capsule (2a,2b) e.g. via or along an opening device such as along one or more piercing elements in cavity; and - an actuator (30,300), such as a motor or a handle, connected to the first part for driving the movable first part between the transfer position and the extraction position, for instance an actuator (30,300) that is fixed in or to the frame, the actuator (30,300) being further connected to the second part for driving the first and/or second portions (21a,21b) to relatively move the first and second portions (21a,21b) between their first and second relative positions, optionally the actuator (30,300) driving the first part and the first and second portions (21a,21b): simultaneously; or sequentially; or partly simultaneously and partly sequentially, wherein the capsule handling device (1") comprises a mechanical transmission connecting the actuator (30,300) to the first part and to the second part for driving: - the first part between the transfer position and the extraction position; and - the first and/or second portions (21a,21b) of the second part to relatively move the first and second portions (21a,21b) between their first and second relative positions, the transmission being optionally associated with a travel stop arrangement (1a',32';1a",32"), such as an arrangement for stopping the first part when reaching the transfer position or the extraction position and/or for stopping a relative movement of the first and second portions (21a,21b) when reaching their first relative position and/or their second relative position, the travel stop arrangement comprising for instance one or more stop members (1a',1a") fixed to the frame and one or more interference surfaces (32',32") formed on the mechanical transmission and interfering with the stop member(s) (1a',1a") when the first part reaches the transfer or extraction position or when the first and second portions (21a,21b) reach their first or second relative position. - a first part that is movable relatively to the frame from a transfer position for inserting and/or removing said capsule (2a,2b) to an extraction position for extracting such capsule and vice versa, optionally a first part has a support with an outlet for letting out an extract of said capsule (2a,2b) e.g. via or along an opening device such as via an opening plate; - a second part that has a capsule receptacle delimiting a cavity for receiving such capsule (2a,2b) and for forming an extraction chamber (21") with the first part in its extraction position, the second part comprising a first portion and a second portion that are relatively movable between a first relative position and a second relative position to change at least one dimension (21da,21db,21ha,21hb) of the cavity and of the extraction chamber (21"), optionally a second part having an inlet for letting a fluid into the chamber (21") to said capsule (2a,2b) e.g. via or along an opening device such as along one or more piercing elements in cavity; and - an actuator (30,300), such as a motor or a handle, connected to the first part for driving the movable first part between the transfer position and the extraction position, for instance an actuator (30,300) that is fixed in or to the frame, the actuator (30,300) being further connected to the second part for driving the first and/or second portions (21a,21b) to relatively move the first and second portions (21a,21b) between their first and second relative positions, optionally the actuator (30,300) driving the first part and the first and second portions (21a,21b): simultaneously; or sequentially; or partly simultaneously and partly sequentially, - the first part between the transfer position and the extraction position; and - the first and/or second portions (21a,21b) of the second part to relatively move the first and second portions (21a,21b) between their first and second relative positions,