Method for encoding a video stream, the video stream including video data representing sequentially related image frames, wherein the image frames include a predefined first subarea and a predefined second subarea, the method comprising: setting a first bitrate budget, setting a second bitrate budget, and encoding the video stream including: applying the first bitrate budget to video data of the first subarea by checking, after a current image frame has been encoded, if a bitrate of the video data of the first subarea exceeds the first bitrate budget and, upon the first bitrate budget is exceeded, adjusting an encoding setting for the first subarea in order to lower the bitrate of the video data of the first subarea of a next image frame, and encoding the video data of the first subarea of the next image frame using the adjusted encoding setting for the first subarea, applying the second bitrate budget to video data of the second subarea by checking, after the current image frame has been encoded, if a bitrate of the video data of the second subarea exceeds the second bitrate budget and, upon the second bitrate budget is exceeded, adjusting an encoding setting for the second subarea in order to lower the bitrate of the video data of the second subarea of the next image frame, and encoding the video data of the second subarea of the next image frame using the adjusted encoding setting for the second subarea, wherein adjusting the encoding setting includes adjusting a GOP-length of the video data of the subarea for which the encoding setting is to be adjusted. setting a first bitrate budget, setting a second bitrate budget, and encoding the video stream including: applying the first bitrate budget to video data of the first subarea by checking, after a current image frame has been encoded, if a bitrate of the video data of the first subarea exceeds the first bitrate budget and, upon the first bitrate budget is exceeded, adjusting an encoding setting for the first subarea in order to lower the bitrate of the video data of the first subarea of a next image frame, and encoding the video data of the first subarea of the next image frame using the adjusted encoding setting for the first subarea, applying the second bitrate budget to video data of the second subarea by checking, after the current image frame has been encoded, if a bitrate of the video data of the second subarea exceeds the second bitrate budget and, upon the second bitrate budget is exceeded, adjusting an encoding setting for the second subarea in order to lower the bitrate of the video data of the second subarea of the next image frame, and encoding the video data of the second subarea of the next image frame using the adjusted encoding setting for the second subarea, wherein adjusting the encoding setting includes adjusting a GOP-length of the video data of the subarea for which the encoding setting is to be adjusted. applying the first bitrate budget to video data of the first subarea by checking, after a current image frame has been encoded, if a bitrate of the video data of the first subarea exceeds the first bitrate budget and, upon the first bitrate budget is exceeded, adjusting an encoding setting for the first subarea in order to lower the bitrate of the video data of the first subarea of a next image frame, and encoding the video data of the first subarea of the next image frame using the adjusted encoding setting for the first subarea, applying the second bitrate budget to video data of the second subarea by checking, after the current image frame has been encoded, if a bitrate of the video data of the second subarea exceeds the second bitrate budget and, upon the second bitrate budget is exceeded, adjusting an encoding setting for the second subarea in order to lower the bitrate of the video data of the second subarea of the next image frame, and encoding the video data of the second subarea of the next image frame using the adjusted encoding setting for the second subarea, wherein adjusting the encoding setting includes adjusting a GOP-length of the video data of the subarea for which the encoding setting is to be adjusted.