From 50f90c1b522eb4445a25d03bc083cbdb5fa5970b Mon Sep 17 00:00:00 2001 From: gn64_jp Date: Tue, 31 Jan 2012 13:15:59 +0000 Subject: [PATCH] fix ffmpeg option. git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/rec10@908 4e526526-5e11-4fc0-8910-f8fd03428081 --- rec10/trunk/src/ts2x264.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rec10/trunk/src/ts2x264.py b/rec10/trunk/src/ts2x264.py index 4e5b0f8..63ef8ff 100644 --- a/rec10/trunk/src/ts2x264.py +++ b/rec10/trunk/src/ts2x264.py @@ -385,7 +385,7 @@ def getMovieBaseSize(pin): def getMovieBaseSize2(pin):##動画開始後すぐに解像度が変更されたときに対処 ffmpeg=configreader.getConfPath("ffmpeg") os.environ['LANG']="ja_JP.UTF-8" - exe=ffmpeg+u" -ss 5 -fs 1 -i \""+pin+"\" \""+pin+".size.ts\" 2>&1" + exe=ffmpeg+u" -ss 5 -fs 1 -t 10 -i \""+pin+"\" \""+pin+".size.ts\" 2>&1" try: recdblist.addCommandSelfLog(pin, exe) except Exception, inst: @@ -442,7 +442,7 @@ def getMoviePAR(pin): def getMoviePAR2(pin): ffmpeg=configreader.getConfPath("ffmpeg") os.environ['LANG']="ja_JP.UTF-8" - exe=ffmpeg+u" -ss 5 -fs 1 -i \""+pin+"\" \""+pin+".size.ts\" 2>&1" + exe=ffmpeg+u" -ss 5 -fs 1 -t 10 -i \""+pin+"\" \""+pin+".size.ts\" 2>&1" try: recdblist.addCommandSelfLog(pin, exe) except Exception, inst: @@ -505,7 +505,7 @@ def getMovieDAR(pin): def getMovieDAR2(pin): ffmpeg=configreader.getConfPath("ffmpeg") os.environ['LANG']="ja_JP.UTF-8" - exe=ffmpeg+u" -ss 5 -fs 1 -i \""+pin+"\" \""+pin+".size.ts\" 2>&1" + exe=ffmpeg+u" -ss 5 -fs 1 -t 10 -i \""+pin+"\" \""+pin+".size.ts\" 2>&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 -- 2.11.0