exe = "export LANG=ja_JP.UTF-8 && nice -n 15 " + epgdump + " " + mode + " " + pout + ".ts " + pout\r
recdblist.printutf8(exe)\r
recdblist.addCommonlogEX(u"通常", "write_time(ts2epg.py)", exe,"",log_level=500)\r
- os.system(exe)\r
+ unicode(commands.getoutput(exe),'utf-8','ignore')\r
time.sleep(10)\r
\r
temptime=temptime % 9697\r
random.jumpahead(temptime)\r
streampath=os.path.join(os.path.dirname(pin),str(random.randint(10000, 99999999)))\r
- os.system(u"mkfifo "+streampath)\r
+ unicode(commands.getoutput(u"mkfifo "+streampath),'utf-8','ignore')\r
encexe=mencoder+u" \""+pin+u"\" -vfm ffmpeg -quiet "+encvf+u",format=i420 "+fps+" "+ofps+" -oac mp3lame -ovc raw -of rawvideo -o \""+streampath+"\" & "\r
encexe=encexe+getX264Commandline(x264preset, x264sar, x264fps, x264profile, x264tune, pout, streampath, x264streamsize, crf=x264crf)\r
#encexe=encexe+u" nice -n 19 "+x264+" "+x264_sar+" "+x264crf+u" "+x264_addline+u" --threads "+x264_thread+" "+x264profile+x264preset+" "+x264tune+" "+x264fps+" -o \""+pout+"\" "+streampath+" "+x264streamsize\r
txt=unicode(commands.getoutput(encexe.encode('utf-8')),'utf-8','ignore')\r
except:\r
""\r
- os.system("rm "+streampath)\r
+ os.remove(streampath)\r
recdblist.addCommandLog(pin, u"Mencoder", encexe, txt)\r
def encodeFfmpegSar(pin,pout,size,is24fps,quality,crf,deinterlace=1):\r
"""\r
status.changeBSCSRecording(-1)
else:
status.changeTERecording(-1)
-def tv2b25ts_b25(pout, ch, time):
- exe = configreader.getConfPath('recpt1')
- doexe = exe + ' --b25 ' + ch + ' ' + time + ' \'' + pout + '\''
- os.system(doexe)
def b252tsmix(pin, pout):
if not (os.path.exists(pout) and os.path.getsize(pin)>os.path.getsize(pout)*0.95 and os.path.getsize(pin)<os.path.getsize(pout)*1.05):
exe=""