encoder: Add init method + encoder_info param