From 23a9452d22e970b75f385276f1fa6156909abcd2 Mon Sep 17 00:00:00 2001 From: jstebbins Date: Thu, 9 Jun 2011 00:49:31 +0000 Subject: Refresh "Normal" preset - Changes "Normal" to use x264 --preset veryfast --profile main Nearly doubles it's speed for little loss of file size or quality. - remove dummy average bitrate values from all built-in presets - adds Large File Size to the High Profile preset git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4035 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- scripts/manicure.rb | 36 ++++++++++++++++++++++++++++-------- 1 file changed, 28 insertions(+), 8 deletions(-) (limited to 'scripts/manicure.rb') diff --git a/scripts/manicure.rb b/scripts/manicure.rb index 5ca5b8b26..4fca512ba 100755 --- a/scripts/manicure.rb +++ b/scripts/manicure.rb @@ -287,6 +287,8 @@ class Display commandString << "x264" when /Theora/ commandString << "theora" + when /MPEG/ + commandString << "ffmpeg2" end end @@ -311,10 +313,13 @@ class Display else commandString << " -r " << hash["VideoFramerate"] end - - if hash["VideoFrameratePFR"] == 1 + # not same as source: pfr, else default (cfr) + if hash["VideoFramerateMode"] == "pfr" commandString << " --pfr " end + # same as source: cfr, else default (vfr) + elsif hash["VideoFramerateMode"] == "cfr" + commandString << " --cfr " end #Audio tracks @@ -536,6 +541,8 @@ class Display commandString << "x264" when /Theora/ commandString << "theora" + when /MPEG/ + commandString << "ffmpeg2" end end @@ -560,10 +567,13 @@ class Display else commandString << " -r " << hash["VideoFramerate"] end - - if hash["VideoFrameratePFR"] == 1 + # not same as source: pfr, else default (cfr) + if hash["VideoFramerateMode"] == "pfr" commandString << " --pfr " end + # same as source: cfr, else default (vfr) + elsif hash["VideoFramerateMode"] == "cfr" + commandString << " --cfr " end #Audio tracks @@ -779,6 +789,8 @@ class Display commandString << "HB_VCODEC_X264;\n " when /Theora/ commandString << "HB_VCODEC_THEORA;\n " + when /MPEG/ + commandString << "HB_VCODEC_FFMPEG_MPEG2;\n " end end @@ -802,12 +814,15 @@ class Display commandString << "job->vrate_base = " << "1080000\n " # Gotta add the rest of the framerates for completion's sake. end - - if hash["VideoFrameratePFR"] == 1 + # not same as source: pfr, else default (cfr) + if hash["VideoFramerateMode"] == "pfr" commandString << "job->cfr = 2;\n " else commandString << "job->cfr = 1;\n " end + # same as source: cfr, else default (vfr) + elsif hash["VideoFramerateMode"] == "cfr" + commandString << "job->cfr = 1;\n " end #Audio tracks @@ -1061,6 +1076,8 @@ class Display commandString << "x264 " when /Theora/ commandString << "theora " + when /MPEG/ + commandString << "ffmpeg2 " end end @@ -1085,10 +1102,13 @@ class Display else commandString << " -r " << hash["VideoFramerate"] end - - if hash["VideoFrameratePFR"] == 1 + # not same as source: pfr, else default (cfr) + if hash["VideoFramerateMode"] == "pfr" commandString << " --pfr " end + # same as source: cfr, else default (vfr) + elsif hash["VideoFramerateMode"] == "cfr" + commandString << " --cfr " end #Audio tracks -- cgit v1.2.3