The total length of the time is thus 29.5 days which is approximately the lunar month (mean length 29.53059 days).
Apogee is the farthest distance of the Moon to the Earth, and so is a stationary point where the angular diameter of the Moon is changing slowly. Choosing to start and end the film near a stationary point prevents obvious sharp jumps in the angular diameter when the film restarts.
The actual period from apogee to apogee (and also perigee to perigee) is the anomalistic month.
The anomalistic month = 27.55450 days (J2000) to 7 digits.
The anomalistic month is not same in period as the lunar month (mean value 29.53059 days (J2000) to 7 digits) nor the sidereal month (mean value 27.32166 days (J2000) to 7 digits).
This side is the near side of the Moon.
The apparent rocking motion is the lunar libration.
The lunar libration is due to the observer seeing slightly different hemispheres as the Moon and Earth move in space. There are actually three effects that add up to the overall lunar libration (see Wikipedia: Lunar libration). Remember "apparent" in astro jargon means as seen from Earth. There's no rocking relative to the inertial frame of the fixed stars---which for most purposes is the same as the Earth-Moon system free-fall frame: i.e., local approximate inertial frame.