H264 encoder library