x264preset=""
x264tune=""
x264_bitrate="5000"
- tsar=getMoviePAR(pin)
+ tsar=getMoviePAR2(pin)
x264sar=str(tsar[0])+":"+str(tsar[1])
if is24fps==1:
ofps="-ofps 24000/1001"
x264streamsize=str(tsize[0])+u"x720"
x264_bitrate="2500"
if deinterlace==0:
- tsize=getMovieBaseSize(pin)
+ tsize=getMovieBaseSize2(pin)
ofps="-ofps 30000/1001"
#fps="-fps 30000/1001"
fps=""
if size == "WVGA_BASE" or size == "QVGA_BASE":
x264profile=" --level 32 --profile baseline "
else:
- x264profile=" --level 42 --profile high "
+ x264profile=" --level 41 --profile high "
x264crf=str(crf)
os.environ['LANG']="ja_JP.UTF-8"
random.seed(pin)
""
os.system("rm "+streampath)
recdblist.addCommandLog(pin, u"Mencoder", encexe, txt)
-
-
def encode_ffmpeg_sar(pin,pout,size,is24fps,quality,crf,deinterlace=1):
"""
x264tune=""
x264_bitrate="2500"
x264_thread="auto"
- tsar=getMoviePAR(pin)
+ tsar=getMoviePAR2(pin)
filter="-deinterlace"
x264sar=str(tsar[0])+":"+str(tsar[1])
if size == "HD":
x264streamsize=str(tsize[0])+u"x720"
x264_bitrate="2500"
if deinterlace==0:
- tsize=getMovieBaseSize(pin)
+ tsize=getMovieBaseSize2(pin)
fps=""
s = "-s "+str(tsize[0])+"x"+str(tsize[1])+" "
x264fps="30000/1001"
except:
""
recdblist.addCommandLog(pin, u"FFmpeg動画エンコード", exe, txt)
-
def getMovieBaseSize(pin):
ffmpeg=configreader.getpath("ffmpeg")
os.environ['LANG']="ja_JP.UTF-8"
os.remove(pin+".size.ts")
return [darx,dary]
def get_par_size(pin,y):
- tSize=getMovieBaseSize(pin)
+ tSize=getMovieBaseSize2(pin)
if tSize[1] != 0 :
tX=tSize[0]*10*y/tSize[1]
tY=y