Codec, bitrate and file size are linked: the codec sets how video is compressed, bitrate sets how much data each second uses, ...