you do not want to do it using mirroring, the quality will be very poor.
(the imac will decode the movie to play it on the screen, it will then be re-encoded in a much lower quality to be airplayed to the aTV. The aTV can handle the much higher quality file directly)