for fn in rawlist:\r
if int(time.time()-os.path.getmtime(fn))>3000:\r
m2vpath=unicode(fn.replace(".264",".m2v"),'utf-8')\r
- x264path=fn\r
+ x264path=os.path.split(fn)[1]\r
+ folderpath=unicode(os.path.split(fn)[0],'utf-8')\r
x264path=re.sub("\\[","[",x264path)\r
x264path=re.sub("\[","\\\[",x264path)\r
x264path=re.sub("\\]","]",x264path)\r
x264path=re.sub("]","\\]",x264path)\r
- #x264path=x264path.replace("[^\\]\]","\\\]")\r
tspath=unicode(x264path.replace(".264",".ts"),'utf-8')\r
m2vpath=unicode(x264path.replace(".264",".m2v"),'utf-8')\r
x264path=unicode(x264path,'utf-8')\r
os.environ['LANG']="ja_JP.UTF-8"\r
ktmp=[]\r
- ktmp.append(u"ps auxww | grep \""+x264path+u"\" | egrep -v grep | egrep -v \"sh -c\" | grep x264 | awk '{print $2}'")\r
- ktmp.append(u"ps auxww | grep \""+tspath+u"\" | egrep -v grep | egrep -v \"sh -c\" | grep mencoder | awk '{print $2}'")\r
- ktmp.append(u"ps auxww | grep \""+m2vpath+u"\" | egrep -v grep | egrep -v \"sh -c\" | grep ffmpeg | awk '{print $2}'")\r
+ ktmp.append(u"ps auxww | grep \""+folderpath+"\" | grep \""+x264path+u"\" | egrep -v grep | egrep -v \"sh -c\" | grep x264 | awk '{print $2}'")\r
+ ktmp.append(u"ps auxww | grep \""+folderpath+"\" | grep \""+tspath+u"\" | egrep -v grep | egrep -v \"sh -c\" | grep mencoder | awk '{print $2}'")\r
+ ktmp.append(u"ps auxww | grep \""+folderpath+"\" | grep \""+m2vpath+u"\" | egrep -v grep | egrep -v \"sh -c\" | grep ffmpeg | awk '{print $2}'")\r
recdblist.printutf8(u"エンコード処理異常終了タスク終了")\r
for istr in ktmp:\r
recdblist.printutf8(istr)\r