import os
import os.path
import time
+import optparse
import configreader
import chdb
import tv2mp4
import tv2ts
-def test_all_ch_encode(option,time):
+def test_all_ch_encode(option,stime):
chl=chdb.getall()
print chl
path= configreader.getpath("test")
print t
pathname=os.path.join(tpatht,t['chtxt'])
print pathname
- tv2ts.tv2ts(pathname+".ts",t['ch'],t['csch'], time)
+ tv2ts.tv2ts(pathname+".ts",t['ch'],t['csch'], stime)
tv2mp4.ts2mp4(pathname+".ts", pathname+".mp4", option)
time.sleep(2)
if __name__ == "__main__":