diff options
author | jstebbins <[email protected]> | 2011-06-09 00:49:31 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-06-09 00:49:31 +0000 |
commit | 23a9452d22e970b75f385276f1fa6156909abcd2 (patch) | |
tree | 26191901d1377742c2a19d69b1949dc3ba306279 /scripts | |
parent | c3c5052550c010732b5ca31acf563ea1e3349d88 (diff) |
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
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/manicure.rb | 36 |
1 files changed, 28 insertions, 8 deletions
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 |