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
#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
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
#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
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 "
#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
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
#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