else:\r
f=open(logpath,'w')\r
tc=command+u"\n\n"\r
- f.write(tc.encode('utf-8','ignore'))\r
+ tc=unicode(tc)\r
+ f.write(tc.encode("utf-8"))\r
+ #f.write(tc.encode('utf-8','ignore'))\r
f.close()\r
def getLogTitle(tspath):\r
logo=tspath\r
def ts2single_audio(pts,opts):\r
paac=pts.replace(".ts",".aac")\r
ffmpeg=configreader.getConfPath("ffmpeg")\r
- e0=ffmpeg+" -i \""+pts+"\" -y -vn -f aac -acodec copy \""+paac+"\""\r
+ e0=ffmpeg+" -i \""+pts+"\" -y -vn -acodec copy \""+paac+"\""\r
p0=subprocess.Popen(e0,shell=True)\r
os.waitpid(p0.pid, 0)\r
if p0.poll==None:#実行中\r
if os.path.exists(basefile):
th=zipfile.ZipFile(basefile,'a',zipfile.ZIP_DEFLATED)
else:
- th=zipfile.ZipFile(basefile,'w')
+ th=zipfile.ZipFile(basefile,'w',zipfile.ZIP_DEFLATED)
if os.path.exists(addfile):
th.write(addfile,os.path.basename(addfile))
th.close()