tests: add encoder for h264 format.

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