OSDN Git Service

stop using trunk or dist directory in rec10 project.
[rec10/rec10-git.git] / dist / trunk / rec10 / auto_test.py
diff --git a/dist/trunk/rec10/auto_test.py b/dist/trunk/rec10/auto_test.py
deleted file mode 100755 (executable)
index 0a81861..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/usr/bin/python\r
-# coding: UTF-8\r
-# Rec10 TS Recording Tools\r
-# Copyright (C) 2009-2011 Yukikaze\r
-import os\r
-import os.path\r
-import time\r
-import optparse\r
-import sys\r
-import datetime\r
-\r
-import configreader\r
-import chdb\r
-import tv2mp4\r
-import tv2ts\r
-def testAllCHEncode(option,stime):\r
-    chl=chdb.getAllCH()\r
-    print chl\r
-    path= configreader.getConfPath("test")\r
-    tpath=os.path.join(path, "encode_test")\r
-    if not os.path.exists(tpath):\r
-        os.mkdir(tpath)\r
-    dnowt=datetime.datetime.now().strftime("%Y-%m-%d_%H-%M-%S")+"_"+option+""\r
-    tpatht=os.path.join(tpath,dnowt)\r
-    if not os.path.exists(tpatht):\r
-        os.mkdir(tpatht)\r
-    if len(chl)>0:\r
-        for t in chl:\r
-            print t\r
-            pathname=os.path.join(tpatht,t['chtxt'])\r
-            print pathname\r
-            tv2ts.tv2ts(pathname+".ts",t['ch'],t['csch'], stime)\r
-            tv2mp4.ts2mp4(pathname+".ts", pathname+".mp4", option)\r
-            time.sleep(2)\r
-if __name__ == "__main__":\r
-    usage="usage: "\r
-    version="%prog 0.9.7"\r
-    parser=optparse.OptionParser(usage=usage,version=version)\r
-    parser.add_option("-e","--Encode",action="store",type="string",dest="encode_option",default="",metavar="TITLE",help="encode test(option)")\r
-    (opts,args)=parser.parse_args(sys.argv)\r
-    if opts.encode_option != "":##-sの場合\r
-        print "test_all_ch_encode"\r
-        testAllCHEncode(opts.encode_option, "10")\r