recdblist.printutf8(encexe)
txt=""
try:
- txt=unicode(commands.getoutput(encexe.encode('utf-8')),'utf-8')
+ txt=unicode(commands.getoutput(encexe.encode('utf-8')),'utf-8','ignore')
except:
""
os.system("rm "+streampath)
txt=""
recdblist.printutf8(exe)
try:
- txt=unicode(commands.getoutput(exe.encode('utf-8')),'utf-8')
+ txt=unicode(commands.getoutput(exe.encode('utf-8')),'utf-8','ignore')
except:
""
recdblist.addCommandLog(pin, u"FFmpeg動画エンコード", exe, txt)
ffmpeg=configreader.getpath("ffmpeg")
os.environ['LANG']="ja_JP.UTF-8"
exe=ffmpeg+u" -i \""+pin+"\" 2>&1"
- txts=unicode(commands.getoutput(exe.encode('utf-8')),'utf-8')
+ txts=unicode(commands.getoutput(exe.encode('utf-8')),'utf-8','ignore')
rT=re.compile(u".*Stream.*#.*:.*\D+([\d]+x[\d]+)\D+PAR\D+(\d+:\d+)\D+.*\Z")
sizeMaxX=0
sizeMaxY=0
ffmpeg=configreader.getpath("ffmpeg")
os.environ['LANG']="ja_JP.UTF-8"
exe=ffmpeg+u" -i \""+pin+"\" 2>&1"
- txts=unicode(commands.getoutput(exe.encode('utf-8')),'utf-8')
+ txts=unicode(commands.getoutput(exe.encode('utf-8')),'utf-8','ignore')
rT=re.compile(u".*Stream.*#.*:.*\D+([\d]+x[\d]+)\D+PAR\D+(\d+:\d+)\D+.*\Z")
#rT=re.compile(u".*Stream.*#.*:.*\D+([\d]+x[\d]+)\D+.*DAR\D+(\d+:\d+)\D+.*\Z")
sizeMaxX=0
ffmpeg=configreader.getpath("ffmpeg")
os.environ['LANG']="ja_JP.UTF-8"
exe=ffmpeg+u" -i \""+pin+"\" 2>&1"
- txts=unicode(commands.getoutput(exe.encode('utf-8')),'utf-8')
+ txts=unicode(commands.getoutput(exe.encode('utf-8')),'utf-8','ignore')
rT=re.compile(u".*Stream.*#.*:.*\D+([\d]+x[\d]+)\D+.*DAR\D+(\d+:\d+)\D+.*\Z")
sizeMaxX=0
darx=0