Lecture recording plays an important role in online learning and distance education. Most of they are recorded by a cameraman or a static camera. In this paper, we propose an automatic lecture recording system. A Pan-Tilt-Zoom (PTZ) camera is shooting as it operated by a cameraman. Three partsare developed in this system. The first one is preprocessing for detecting the position of the lecturer and the screen. The second part is designed to track their motion to define the lecture information. According to the tracking result, we can control the PTZ camera in the third part based on the camera action table designed beforehand.