Cosmological parameters and power spectrum from peculiar velocities