From f27f373cbc11241ad6e517d696e700c8d749544c Mon Sep 17 00:00:00 2001 From: gn64_jp Date: Sun, 23 Jan 2011 15:00:09 +0000 Subject: [PATCH] add tar log.(alpha) git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@809 4e526526-5e11-4fc0-8910-f8fd03428081 --- rec10/trunk/src/ts2x264.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rec10/trunk/src/ts2x264.py b/rec10/trunk/src/ts2x264.py index 0a15edd..409dcb5 100644 --- a/rec10/trunk/src/ts2x264.py +++ b/rec10/trunk/src/ts2x264.py @@ -180,7 +180,12 @@ def encodeMencoderSar(pin,pout,size,is24fps,quality,crf,deinterlace=1): encexe=encexe+getX264Commandline(x264preset, x264sar, x264fps, x264profile, x264tune, pout, streampath, x264streamsize, crf=x264crf) #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 encexe=u"nice -n 19 " +encexe+" 2>&1 | "+tee+" \""+logx264+"\"" - recdblist.addCommandSelfLog(pin, encexe) + try: + recdblist.addCommandSelfLog(pin, encexe) + except Exception, inst: + print type(inst) + print str(inst) + print traceback.print_exc(file=sys.stdout) recdblist.printutf8(encexe) txt="" try: -- 2.11.0