"""
"""
- kyoukai=800
+ kyoukai=1200
title=u" "+title+u" "
desc=u" "+desc+u" "
str1=title*2+desc+title*2##タイトルは重視したいので幾度か足す。
print u"ts2epg処理"
bctype = chdb.chsearch(ch)['bctype']
print ch + ":" + bctype
- timet = "10"
+ timet = "90"
if re.search(u'cs', bctype):
mode = "/CS"
- timet = "10"
+ timet = "180"
elif re.search(u'bs', bctype):
mode = "/BS"
- timet = "10"
+ timet = "240"
else:
mode = chdb.bctypesearch(u'te' + ch)['ontv']
epgdump = configreader.getpath("epgdump")
s=s+len("\n")
stxt=stxt[s:]
txt="\n####mencoder-log_"+size+"####\n"+stxt
- f.write(txt)
+ f.write(txt.encode('utf-8'))
f.close()
\ No newline at end of file
txt = txt+commands.getoutput(doexe.encode('utf-8'))
txt = "\n####mkvmerge-log####\n"+txt
f=open(logo,'a')
- f.write(txt)
+ f.write(txt.encode('utf-8'))
f.close()
sys.stdout.flush()
\ No newline at end of file
audiopath=os.path.join(dir,title+u"_audio.mp3")
videopath=os.path.join(dir,title+u"_video.h264")
#doexe = exe.encode('utf-8') + u' \"' + pin.encode('utf-8') + u'\" \"' + pout.encode('utf-8') + u'\"'
- exe1=exe+u" -aviraw audio u'"+pin+u"\'"
+ exe1=exe+u" -aviraw audio \'"+pin+u"\'"
exe2=exe+u" -aviraw video \'"+pin+u"\'"
exefin=exe+u" -new -fps 29.97 -add \'"+videopath+u"\'#video -add \'"+audiopath+u"\'#audio \'"+pout+u"\'"
logo=pin.replace(u".avi",u".log")
os.remove(videopath)
txt = "\n####MP4Box-log####\n"+txt
f=open(logo,'a')
- f.write(txt)
+ f.write(txt.encode('utf-8'))
f.close()
sys.stdout.flush()
time.sleep(10)
os.remove(videopath)
txt = "\n####MKV2MP4-log####\n"+txt
f=open(logo,'a')
- f.write(txt)
+ f.write(txt.encode('utf-8'))
f.close()
sys.stdout.flush()
time.sleep(10)
txt = txt + commands.getoutput(doexe.encode('utf-8'))
logo=pout.replace(".ts.b25",".log")
f=open(logo,'w')
- f.write(txt)
+ f.write(txt.encode('utf-8'))
f.close()
if len(ch) > 2:#BS/CSは100とかCS??とかなので3文字以上
status.changeBSCSRecording(-1)
stxt=stxt[s:]
txt = "\n####b25-log####\n"+stxt
f=open(logo,'a')
- f.write(txt)
+ f.write(txt.encode('utf-8'))
f.close()
def tsmix2ts(pin, pout, csch):#csch=0ならcsの処理をしない
"""if csch==0:
stxt=txt
txt = "\n####tssplit-log####\nCommand:"+doexe+"\nlog:\n"+stxt
f=open(logo,'a')
- f.write(txt)
+ f.write(txt.encode('utf-8'))
f.close()
time.sleep(1)
if os.access(pout, os.F_OK):