3 # Rec10 TS Recording Tools
4 # Copyright (C) 2009-2010 Yukikaze
15 def test_all_ch_encode(option,stime):
18 path= configreader.getpath("test")
19 tpath=os.path.join(path, "encode_test")
20 if not os.path.exists(tpath):
22 dnowt=datetime.datetime.now().strftime("%Y-%m-%d_%H:%M:%S")+"("+option+")"
23 tpatht=os.path.join(tpath,dnowt)
24 if not os.path.exists(tpatht):
29 pathname=os.path.join(tpatht,t['chtxt'])
31 tv2ts.tv2ts(pathname+".ts",t['ch'],t['csch'], stime)
32 tv2mp4.ts2mp4(pathname+".ts", pathname+".mp4", option)
34 if __name__ == "__main__":
37 parser=optparse.OptionParser(usage=usage,version=version)
38 parser.add_option("-e","--Encode",action="store",type="string",dest="encode_option",default="",metavar="TITLE",help="encode test(option)")
39 (opts,args)=parser.parse_args(sys.argv)
40 if opts.encode_option != "":##-sの場合
41 test_all_ch_encode(opts.encode_option, 10)