btime = bt.strftime("%Y-%m-%d %H:%M:%S")
etime = et.strftime("%Y-%m-%d %H:%M:%S")
recdb.rec_reckey(recdb.REC_ENCODE_QUE, title, chtxt, btime, etime, opt)
- print "b25check " + recpath + "/" + title + ".ts.b25 " + recpath + "/" + title + ".ts"
print checker.checkB25Decode(recpath + "/" + title + ".ts.b25", recpath + "/" + title + ".ts")
if checker.checkB25Decode(recpath + "/" + title + ".ts.b25", recpath + "/" + title + ".ts") == 1:
os.remove(recpath + "/" + title + ".ts.b25")
import os
import shutil
import time
+import sys
import configreader
import status
os.system(doexe)
def b252tsmix(pin, pout):
exe = configreader.getpath('b25')
- doexe = exe.encode('utf-8') + u' \'' + pin.encode('utf-8') + u'\' \'' + pout.encode('utf-8') + u'\''
+ #doexe = exe.encode('utf-8') + u' \"' + pin.encode('utf-8') + u'\" \"' + pout.encode('utf-8') + u'\"'
+ doexe = exe + u' \"' + pin + u'\" \"' + pout + u'\"'
doexe = "nice -n 17 " + doexe
+ print doexe
+ sys.stdout.flush()
txt = commands.getoutput(doexe)
+ f=open(pin+".log",'w')
+ f.write(txt)
+ f.close()
def tsmix2ts(pin, pout, csch):#csch=0ならcsの処理をしない
if csch == "0":
time.sleep(1)
doexe = configreader.getpath("tssplitter_lite") + " \"" + pin + "\" \"" + pout + "\" " + str(csch)
doexe = "nice -n 18 " + doexe
print doexe
+ sys.stdout.flush()
os.system(doexe)
time.sleep(1)
if os.access(pout, os.F_OK):