3 # Rec10 TS Recording Tools
4 # Copyright (C) 2009 Yukikaze
22 #from ts2x264 import ts2x264
27 __author__ = "yukikaze"
28 __date__ = "$2009/08/01 22:25:13$"
29 path = str(os.path.dirname(os.path.abspath(__file__))) + "/"
30 recpath = "/home/ftpusr/ftp-tmp/Recording/"
31 ftpusr = "/home/ftpusr/ftp-tmp"
32 recordedpath = "/home/ftpusr/ftp5/Series-Finish/"
33 dualtest = ftpusr + "/Encode-Test/DualAudioTest"
34 if __name__ == "__main__":
36 #tspath=basepath.replace(".b25","")
37 #print checker.checkB25Decode(recpath+basepath,recpath+tspath)
38 #print configreader.getdbpath("test")
39 #epgdb.updateall_bak()
40 #import rectime data from SQLite to MySQL
41 #rec10d.rec10db.import_from_SQLite(path+"ch.db")
42 #tnow=datetime.datetime.now()
43 #bt=tnow+datetime.timedelta(seconds=20)
44 #et=bt+datetime.timedelta(seconds=20)
45 #btime=bt.strftime("%Y-%m-%d %H:%M:%S")
46 #etime=et.strftime("%Y-%m-%d %H:%M:%S")
47 #recdb.rec_reckey(recdb.REC_FINAL_RESERVE,u"ใในใ", "hisch", btime, etime, "Sd")
48 #os.system("echo $PATH")
49 #tv2avi.dualaudio2sep(recpath+".ts", recpath+".sa.avi","167")
50 #ts2x264(dualtest + "/new-test/new-delay167sa.avi", dualtest + "/new-test/new-delay167.avi", "SX")
51 #status.setB25Decoding(2)
52 #rec10d.rec10db.new_status()
53 #status.changeBSCSRecording(1)
54 #print rec10d.rec10db.select_all_status()
55 #status.changeBSCSRecording(-1)
56 #print rec10d.rec10db.select_all_status()
57 #print str(status.getBSCSRecording())
58 #print str(status.getTERecording())
59 #xml2db.xml2db("te18.xml", "te20")
60 #classify.detNameType("te#st#25")
61 #classify.detNameType("te#st#32 subtest")
62 #guess.detNameType("",recordedpath)")
63 #doexe = configreader.getpath("tssplitter") + " \"" + "" + "\" \"" + "pout""" + "\" " + str(0)
64 #doexe = "nice -n 18 " + doexe
66 #print zenhan.check_Character_Type()
67 profile.run("epgdb.updatebc(\"te13\")")