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