tests: add encoder for h264 format 2.

Signed-off-by: Zhong Cong <congx.zhong@intel.com>