A method of recording an event video sequence, wherein the event video sequence comprises - a pre-event video sequence showing a monitored scene during a pre-determined length of time before an event detection, and - a post-event video sequence showing the monitored scene from the time of the event detection, the method comprising the steps of - continuously capturing image frames, - continuously storing, in a pre-event buffer, newly captured image frames, by, without processing them in an image processing unit, adding them to a set of pre-event image frames corresponding to the pre-determined length of time, - receiving a first signal indicating that an event is detected, - upon receiving the first signal, producing the post-event video sequence by: o discontinuing the storing of newly captured image frames in the pre-event buffer, o feeding newly captured image frames to the image processing unit, o performing image processing of the newly captured image frames in the image processing unit, and o storing the processed image frames as the post-event video sequence in a memory, - receiving a second signal indicating that the event has ended, - upon receiving the second signal, producing the pre-event video sequence by: o discontinuing feeding newly captured image frames to the image processing unit, o feeding the set of image frames from the pre-event buffer to the image processing unit, o performing image processing of the set of image frames in the image processing unit, and o storing the processed set of image frames as the pre-event video sequence in the memory, - wherein the step of performing image processing includes one or more of the following: defect pixel correction, white balancing, de-mosaicing, matrixing, gamma correction, sharpening, noise filtering, scaling and encoding. - a pre-event video sequence showing a monitored scene during a pre-determined length of time before an event detection, and - a post-event video sequence showing the monitored scene from the time of the event detection, - continuously capturing image frames, - continuously storing, in a pre-event buffer, newly captured image frames, by, without processing them in an image processing unit, adding them to a set of pre-event image frames corresponding to the pre-determined length of time, - receiving a first signal indicating that an event is detected, - upon receiving the first signal, producing the post-event video sequence by: o discontinuing the storing of newly captured image frames in the pre-event buffer, o feeding newly captured image frames to the image processing unit, o performing image processing of the newly captured image frames in the image processing unit, and o storing the processed image frames as the post-event video sequence in a memory, o discontinuing the storing of newly captured image frames in the pre-event buffer, o feeding newly captured image frames to the image processing unit, o performing image processing of the newly captured image frames in the image processing unit, and o storing the processed image frames as the post-event video sequence in a memory, - receiving a second signal indicating that the event has ended, - upon receiving the second signal, producing the pre-event video sequence by: o discontinuing feeding newly captured image frames to the image processing unit, o feeding the set of image frames from the pre-event buffer to the image processing unit, o performing image processing of the set of image frames in the image processing unit, and o storing the processed set of image frames as the pre-event video sequence in the memory, o discontinuing feeding newly captured image frames to the image processing unit, o feeding the set of image frames from the pre-event buffer to the image processing unit, o performing image processing of the set of image frames in the image processing unit, and o storing the processed set of image frames as the pre-event video sequence in the memory, - wherein the step of performing image processing includes one or more of the following: defect pixel correction, white balancing, de-mosaicing, matrixing, gamma correction, sharpening, noise filtering, scaling and encoding.