fix bitrate setting and add bitrate validation