Make video creation optional in group_traj.