1.add encodeh264
2.when module->ref_count is 0, print error and return, or it will call module_close many times.