add bitrate option for encode and decode