X-Git-Url: http://git.osdn.net/view?p=rec10%2Frec10-git.git;a=blobdiff_plain;f=rec10%2Ftrunk%2Fsrc%2Fts2x264.py;h=8f77cc97a4dee9fc9f87e43201b25508563d308b;hp=63ef8ff46287c7693bb91c5e172ac598d45b387a;hb=ce981efe4240288caf1d4f84ee2a1fa6a3c742f7;hpb=50f90c1b522eb4445a25d03bc083cbdb5fa5970b diff --git a/rec10/trunk/src/ts2x264.py b/rec10/trunk/src/ts2x264.py index 63ef8ff..8f77cc9 100644 --- a/rec10/trunk/src/ts2x264.py +++ b/rec10/trunk/src/ts2x264.py @@ -360,28 +360,6 @@ def encodeFfmpegSar(pin,pout,size,is24fps,quality,crf,deinterlace=1,usebluray=0, zip.addFile2FileZip(log_x264, recdblist.getLogTitle(pin+".log.zip")) os.remove(log_ffmpeg) os.remove(log_x264) -def getMovieBaseSize(pin): - ffmpeg=configreader.getConfPath("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','ignore') - rT=re.compile(u".*Stream.*#.*:.*\D+([\d]+x[\d]+)\D+PAR\D+(\d+:\d+)\D+.*\Z") - sizeMaxX=0 - sizeMaxY=0 - txtls=txts.split("\n") - for t in txtls: - rM=rT.match(t) - if rM: - sizetxt=rM.group(1) - partxt=rM.group(2) - tX=int(sizetxt.split("x")[0]) - tY=int(sizetxt.split("x")[1]) - tEX=int(partxt.split(":")[0]) - tEY=int(partxt.split(":")[1]) - if sizeMaxX&1" - 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 - parx=0 - pary=0 - txtls=txts.split("\n") - for t in txtls: - rM=rT.match(t) - if rM: - sizetxt=rM.group(1) - dartxt=rM.group(2) + if rM2: + sizetxt=rM2.group(1) tX=int(sizetxt.split("x")[0]) tY=int(sizetxt.split("x")[1]) - tEX=int(dartxt.split(":")[0]) - tEY=int(dartxt.split(":")[1]) if sizeMaxX&1" - 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 - dary=0 - txtls=txts.split("\n") - for t in txtls: - rM=rT.match(t) - if rM: - sizetxt=rM.group(1) - dartxt=rM.group(2) - tX=int(sizetxt.split("x")[0]) - tY=int(sizetxt.split("x")[1]) - tEX=int(dartxt.split(":")[0]) - tEY=int(dartxt.split(":")[1]) - if sizeMaxX&1" - 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 - dary=0 - txtls=txts.split("\n") - for t in txtls: - rM=rT.match(t) - if rM: - sizetxt=rM.group(1) - dartxt=rM.group(2) - tX=int(sizetxt.split("x")[0]) - tY=int(sizetxt.split("x")[1]) - tEX=int(dartxt.split(":")[0]) - tEY=int(dartxt.split(":")[1]) - if sizeMaxX