[new feature] support encode type B frame