OSDN Git Service

implement encode tester.
authorgn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Thu, 24 Jun 2010 06:19:25 +0000 (06:19 +0000)
committergn64_jp <gn64_jp@4e526526-5e11-4fc0-8910-f8fd03428081>
Thu, 24 Jun 2010 06:19:25 +0000 (06:19 +0000)
git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@636 4e526526-5e11-4fc0-8910-f8fd03428081

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__":