A device and method of controlling bitrate in video coding of a sequence of frames including series of Inter frames separated by Intra frames, wherein the coded frames are validated in a video buffering device prior to transmission of the coded frames and wherein the method comprises: measuring frame complexity in the sequence of frames; for each Inter frame, calculating a target buffer level of the video buffering device in relation to a distance between the Inter frame and a next Intra frame; for each Inter frame, calculating a target frame size in relation to the distance between the Inter frame and the next Intra frame, the measured frame complexity, a current buffer level of the video buffering device and the calculated target buffer level of the video buffering device; and using the calculated target frame size to control bitrate in video coding of the sequence of frames.
展开▼