add hardware encoder