From 7adb0cbb154defc2807a6d352b446298e547fab8 Mon Sep 17 00:00:00 2001 From: gn64_jp Date: Sat, 6 Mar 2010 08:00:39 +0000 Subject: [PATCH] fix some miss. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@456 4e526526-5e11-4fc0-8910-f8fd03428081 --- rec10/trunk/src/rec10.conf | 2 +- rec10/trunk/src/ts2x264.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rec10/trunk/src/rec10.conf b/rec10/trunk/src/rec10.conf index bbf814d..9a0636e 100644 --- a/rec10/trunk/src/rec10.conf +++ b/rec10/trunk/src/rec10.conf @@ -54,5 +54,5 @@ cs = 0 make_mp4 = 1 #エンコードの重さの設定 大きければ大きいほど(1-6)速度は遅くなるが同じ画質でもサイズが小さくなる。 x264_preset=4 -crf=22 +crf=24 animation_crf=20 diff --git a/rec10/trunk/src/ts2x264.py b/rec10/trunk/src/ts2x264.py index 9e8a3a0..3af75e9 100644 --- a/rec10/trunk/src/ts2x264.py +++ b/rec10/trunk/src/ts2x264.py @@ -114,7 +114,7 @@ def encode(pin,pout,size,is24fps,quality,crf): streampath=os.path.join(os.path.dirname(pin),str(random.randint(10000, 999999))) os.system(u"mkfifo "+streampath) encexe=u"mencoder \""+pin+u"\" -vfm ffmpeg -quiet -sws 9 "+encvf+u",format=i420 "+fps+" "+ofps+" -oac mp3lame -ovc raw -of rawvideo -o \""+streampath+"\" &" - encexe=encexe+u" nice -n 19 x264 "+x264crf+" --vbv-bufsize 30000 --vbv-maxrate 15000 --level 41 --profile high "+x264preset+" "+x264tune+" "+x264fps+" -o \""+pout+"\" "+streampath+" "+x264streamsize + encexe=encexe+u" nice -n 19 x264 "+x264crf+" --vbv-bufsize 15000 --vbv-maxrate 10000 --level 41 --profile high "+x264preset+" "+x264tune+" "+x264fps+" -o \""+pout+"\" "+streampath+" "+x264streamsize encexe=u"nice -n 19 " +encexe recdblist.printutf8(encexe) txt=txt+"Cmd : "+encexe+"\n" @@ -168,7 +168,7 @@ def encode_ffmpeg(pin,pout,size,is24fps,quality,crf): txt="" os.environ['LANG']="ja_JP.UTF-8" exe=ffmpeg+u" -y -i \""+pin+"\" -vsync 400 -vcodec rawvideo -pix_fmt yuv420p "+s+fps+"-deinterlace -an -f rawvideo - |" - exe=exe+u" nice -n 19 x264 "+x264crf+" --vbv-bufsize 30000 --vbv-maxrate 10000 --level 41 --profile high "+x264preset+" "+x264tune+" "+x264fps+" -o \""+pout+"\" - "+x264streamsize + exe=exe+u" nice -n 19 x264 "+x264crf+" --vbv-bufsize 15000 --vbv-maxrate 10000 --level 41 --profile high "+x264preset+" "+x264tune+" "+x264fps+" -o \""+pout+"\" - "+x264streamsize txt=txt+"Cmd : "+exe+"\n" exe = "nice -n 19 " + exe txt=txt+"Cmd : "+exe+"\n" -- 2.11.0