Add video encoder base code