A method for controlling a Pan-Tilt-Zoom (PTZ) camera , comprising: providing, by the PTZ camera , a video stream comprising a main image and a smaller picture-in-picture overlay , characterized in that the main image and the overlay show the same view and wherein the overlay has both a higher frame rate and a lower resolution compared to the main image , wherein the video stream is created by: receiving image data captured by the PTZ camera , using the received image data as image data of a main image , scaling down the received image data to create an overlay picture having a desired size and resolution, positioning the first overlay picture onto the main image , and encoding the main image and overlay picture as a series of intra-frame and inter-frame pictures to create the video stream, wherein encoding the main image comprises encoding the main image at a first frame rate as an intra-frame, followed by a series of inter-frames, until a group of pictures length has been reached, and wherein encoding overlay picture comprises encoding the overlay at a second, faster, frame rate as a series of inter-frames, referencing the most recent intra-frame or inter-frame for the main image , until a group of pictures length has been reached; and receiving, by the PTZ camera , a movement control instruction in response to an evaluation of at least one of the main image and the overlay . providing, by the PTZ camera , a video stream comprising a main image and a smaller picture-in-picture overlay , characterized in that the main image and the overlay show the same view and wherein the overlay has both a higher frame rate and a lower resolution compared to the main image , wherein the video stream is created by: receiving image data captured by the PTZ camera , using the received image data as image data of a main image , scaling down the received image data to create an overlay picture having a desired size and resolution, positioning the first overlay picture onto the main image , and encoding the main image and overlay picture as a series of intra-frame and inter-frame pictures to create the video stream, wherein encoding the main image comprises encoding the main image at a first frame rate as an intra-frame, followed by a series of inter-frames, until a group of pictures length has been reached, and wherein encoding overlay picture comprises encoding the overlay at a second, faster, frame rate as a series of inter-frames, referencing the most recent intra-frame or inter-frame for the main image , until a group of pictures length has been reached; and receiving image data captured by the PTZ camera , using the received image data as image data of a main image , scaling down the received image data to create an overlay picture having a desired size and resolution, positioning the first overlay picture onto the main image , and encoding the main image and overlay picture as a series of intra-frame and inter-frame pictures to create the video stream, wherein encoding the main image comprises encoding the main image at a first frame rate as an intra-frame, followed by a series of inter-frames, until a group of pictures length has been reached, and wherein encoding overlay picture comprises encoding the overlay at a second, faster, frame rate as a series of inter-frames, referencing the most recent intra-frame or inter-frame for the main image , until a group of pictures length has been reached; and receiving, by the PTZ camera , a movement control instruction in response to an evaluation of at least one of the main image and the overlay . <EOS>