diff options
author | jbrjake <[email protected]> | 2008-10-22 21:59:42 +0000 |
---|---|---|
committer | jbrjake <[email protected]> | 2008-10-22 21:59:42 +0000 |
commit | 34e37c1bfd06668b8550d3983b2e6eb31b02fd90 (patch) | |
tree | f25df2eb9a919581a2df818257071c742181bf26 /scripts | |
parent | 736d43ec936b753cd428f3a9957e4ad2343c5aa3 (diff) |
Scripts: adds manicure support for constant fps of 25 and subtitle autoselect (thanks, cvk_b!)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1860 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/manicure.rb | 40 |
1 files changed, 32 insertions, 8 deletions
diff --git a/scripts/manicure.rb b/scripts/manicure.rb index 3e9467e10..4dc86916a 100755 --- a/scripts/manicure.rb +++ b/scripts/manicure.rb @@ -310,6 +310,8 @@ class Display commandString << " -r " << "23.976" elsif hash["VideoFramerate"] == "29.97 (NTSC Video)" commandString << " -r " << "29.97" + elsif hash["VideoFramerate"] == "25 (PAL Film/Video)" + commandString << " -r " << "25" else commandString << " -r " << hash["VideoFramerate"] end @@ -524,8 +526,12 @@ class Display #Subtitles if hash["Subtitles"] != "None" - commandString << " -s " - commandString << hash["Subtitles"] + if hash["Subtitles"] == "Autoselect" + commandString << " --subtitle-scan" + else + commandString << " -s " + commandString << hash["Subtitles"] + end end #Video Filters @@ -643,6 +649,8 @@ class Display commandString << " -r " << "23.976" elsif hash["VideoFramerate"] == "29.97 (NTSC Video)" commandString << " -r " << "29.97" + elsif hash["VideoFramerate"] == "25 (PAL Film/Video)" + commandString << " -r " << "25" else commandString << " -r " << hash["VideoFramerate"] end @@ -858,8 +866,12 @@ class Display #Subtitles if hash["Subtitles"] != "None" - commandString << " -s " - commandString << hash["Subtitles"] + if hash["Subtitles"] == "Autoselect" + commandString << " --subtitle-scan" + else + commandString << " -s " + commandString << hash["Subtitles"] + end end #Video Filters @@ -972,6 +984,8 @@ class Display commandString << "job->vrate_base = " << "1126125;\n " elsif hash["VideoFramerate"] == "29.97 (NTSC Video)" commandString << "job->vrate_base = " << "900900;\n " + elsif hash["VideoFramerate"] == "25 (PAL Film/Video)" + commandString << "job->vrate_base = " << "1080000\n " # Gotta add the rest of the framerates for completion's sake. end commandString << "job->cfr = 1;\n " @@ -1165,8 +1179,12 @@ class Display #Subtitles if hash["Subtitles"] != "None" - commandString << "job->subtitle = " - commandString << ( hash["Subtitles"].to_i - 1).to_s << ";\n " + if hash["Subtitles"] == "Autoselect" + commandString << "subtitle_scan = 1;\n " + else + commandString << "job->subtitle = " + commandString << ( hash["Subtitles"].to_i - 1).to_s << ";\n " + end end #x264 Options @@ -1298,6 +1316,8 @@ class Display commandString << " -r " << "23.976" elsif hash["VideoFramerate"] == "29.97 (NTSC Video)" commandString << " -r " << "29.97" + elsif hash["VideoFramerate"] == "25 (PAL Film/Video)" + commandString << " -r " << "25" else commandString << " -r " << hash["VideoFramerate"] end @@ -1512,8 +1532,12 @@ class Display #Subtitles if hash["Subtitles"] != "None" - commandString << " -s " - commandString << hash["Subtitles"] + if hash["Subtitles"] == "Autoselect" + commandString << " --subtitle-scan" + else + commandString << " -s " + commandString << hash["Subtitles"] + end end #Video Filters |