ccextractor/linux/api_testing.py

13 lines
377 B
Python
Raw Normal View History

import ccextractorapi as cc
s = cc.api_init_options()
cc.checking_configuration_file(s)
params = ['-parsePAT','/vagrant/ClosedCaptionEIA.ts']
for item in params:
cc.api_add_param(s,str(item))
compile_ret = cc.compile_params(s,len(params));
#for item in xrange(cc.api_param_count(s)):
# params = cc.api_param(s,item)
# print item,params
start_ret = cc.api_start(s);