"""\r
\r
"""\r
- ffmpeg=configreader.getPathSetting("ffmpeg")\r
+ ffmpeg=configreader.getConfPath("ffmpeg")\r
fps=u"-r 29.970030 "\r
x264fps="30000/1001"\r
x264streamsize=""\r
""\r
recdblist.addCommandLog(pin, u"FFmpeg動画エンコード", exe, txt)\r
def getMovieBaseSize(pin):\r
- ffmpeg=configreader.getPathSetting("ffmpeg")\r
+ ffmpeg=configreader.getConfPath("ffmpeg")\r
os.environ['LANG']="ja_JP.UTF-8"\r
exe=ffmpeg+u" -i \""+pin+"\" 2>&1"\r
txts=unicode(commands.getoutput(exe.encode('utf-8')),'utf-8','ignore')\r
sizeMaxY=tY\r
return [sizeMaxX,sizeMaxY]\r
def getMovieBaseSize2(pin):##動画開始後すぐに解像度が変更されたときに対処\r
- ffmpeg=configreader.getPathSetting("ffmpeg")\r
+ ffmpeg=configreader.getConfPath("ffmpeg")\r
os.environ['LANG']="ja_JP.UTF-8"\r
exe=ffmpeg+u" -ss 5 -fs 1 -i \""+pin+"\" \""+pin+".size.ts\" 2>&1"\r
txts=unicode(commands.getoutput(exe.encode('utf-8')),'utf-8','ignore')\r
os.remove(pin+".size.ts")\r
return [sizeMaxX,sizeMaxY]\r
def getMoviePAR(pin):\r
- ffmpeg=configreader.getPathSetting("ffmpeg")\r
+ ffmpeg=configreader.getConfPath("ffmpeg")\r
os.environ['LANG']="ja_JP.UTF-8"\r
exe=ffmpeg+u" -i \""+pin+"\" 2>&1"\r
txts=unicode(commands.getoutput(exe.encode('utf-8')),'utf-8','ignore')\r
pary=tEY\r
return [parx,pary]\r
def getMoviePAR2(pin):\r
- ffmpeg=configreader.getPathSetting("ffmpeg")\r
+ ffmpeg=configreader.getConfPath("ffmpeg")\r
os.environ['LANG']="ja_JP.UTF-8"\r
exe=ffmpeg+u" -ss 5 -fs 1 -i \""+pin+"\" \""+pin+".size.ts\" 2>&1"\r
txts=unicode(commands.getoutput(exe.encode('utf-8')),'utf-8','ignore')\r
os.remove(pin+".size.ts")\r
return [parx,pary]\r
def getMovieDAR(pin):\r
- ffmpeg=configreader.getPathSetting("ffmpeg")\r
+ ffmpeg=configreader.getConfPath("ffmpeg")\r
os.environ['LANG']="ja_JP.UTF-8"\r
exe=ffmpeg+u" -i \""+pin+"\" 2>&1"\r
txts=unicode(commands.getoutput(exe.encode('utf-8')),'utf-8','ignore')\r
dary=tEY\r
return [darx,dary]\r
def getMovieDAR2(pin):\r
- ffmpeg=configreader.getPathSetting("ffmpeg")\r
+ ffmpeg=configreader.getConfPath("ffmpeg")\r
os.environ['LANG']="ja_JP.UTF-8"\r
exe=ffmpeg+u" -ss 5 -fs 1 -i \""+pin+"\" \""+pin+".size.ts\" 2>&1"\r
txts=unicode(commands.getoutput(exe.encode('utf-8')),'utf-8','ignore')\r
tY=-1\r
return [tX,tY]\r
def getX264CoreVersion():\r
- x264=configreader.getPathSetting("x264")\r
+ x264=configreader.getConfPath("x264")\r
t1=commands.getoutput(x264+" --help|grep core")\r
rT=re.compile(u"x264 core:(\d*)[\d]*.*\Z")\r
rM=rT.match(t1)\r
v=int(rM.group(1))\r
return v\r
def getX264Commandline(preset,sar,fps,x264profile,x264tune,pout,pin,x264streamsize,crf=-1,bitrate=0):\r
- x264=configreader.getPathSetting("x264")\r
+ x264=configreader.getConfPath("x264")\r
os.environ['LANG']="ja_JP.UTF-8"\r
x264_sar="--sar "+sar\r
x264preset=u"--preset "+preset\r