OSDN Git Service

implement encode tester.
[rec10/rec10-git.git] / rec10 / trunk / src / auto_test.py
index 78ddcca..23a7900 100644 (file)
@@ -5,12 +5,13 @@
 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")
@@ -26,7 +27,7 @@ def test_all_ch_encode(option,time):
             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__":