An endoscope is provided having a video compiler and a recorder. The video compiler continuously receives image signals and creates a video file with the image signals. The recorder receives and stores the video file. The video compiler writes a flag into the video file when a first event occurs.