From 32547c08103f922dec1830c5c266b3e2f219a71e Mon Sep 17 00:00:00 2001 From: gn64_jp Date: Thu, 24 Jun 2010 06:19:25 +0000 Subject: [PATCH] implement encode tester. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@636 4e526526-5e11-4fc0-8910-f8fd03428081 --- rec10/trunk/src/auto_test.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rec10/trunk/src/auto_test.py b/rec10/trunk/src/auto_test.py index 78ddcca..23a7900 100644 --- a/rec10/trunk/src/auto_test.py +++ b/rec10/trunk/src/auto_test.py @@ -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__": -- 2.11.0