else
commandString << " -r " << hash["VideoFramerate"]
end
+
+ if hash["VideoFrameratePFR"] == 1
+ commandString << " --pfr "
+ end
end
#Audio tracks
#Encoders
case audioTrack["AudioEncoder"]
- when /AC3 /
+ when /AC3 Pass/
+ audioEncoders << "copy:ac3"
+ when /AC3/
audioEncoders << "ac3"
when /AAC/
audioEncoders << "faac"
else
commandString << " -r " << hash["VideoFramerate"]
end
+
+ if hash["VideoFrameratePFR"] == 1
+ commandString << " --pfr "
+ end
end
#Audio tracks
#Encoders
case audioTrack["AudioEncoder"]
- when /AC3 /
+ when /AC3 Pass/
+ audioEncoders << "copy:ac3"
+ when /AC3/
audioEncoders << "ac3"
when /AAC/
audioEncoders << "faac"
commandString << "job->vrate_base = " << "1080000\n "
# Gotta add the rest of the framerates for completion's sake.
end
- commandString << "job->cfr = 1;\n "
+
+ if hash["VideoFrameratePFR"] == 1
+ commandString << "job->cfr = 2;\n "
+ else
+ commandString << "job->cfr = 1;\n "
+ end
end
#Audio tracks
#Encoders
case audioTrack["AudioEncoder"]
- when /AC3 /
+ when /AC3 Pass/
+ audioEncoders << "copy:ac3"
+ when /AC3/
audioEncoders << "ac3"
when /AAC/
audioEncoders << "faac"
end
#Anamorphic
- if hash["PicturePAR"] == 1
- commandString << "anamorphic_mode = 1;\n "
- elsif hash["PicturePAR"] == 2
- commandString << "anamorphic_mode = 2;\n "
- elsif hash["PicturePAR"] == 3
- commandString << "anamorphic_mode = 3;\n "
+ if hash["PicturePAR"] != 0
+ commandString << "if( !anamorphic_mode )\n "
+ commandString << "{\n "
+ if hash["PicturePAR"] == 1
+ commandString << " anamorphic_mode = 1;\n "
+ elsif hash["PicturePAR"] == 2
+ commandString << " anamorphic_mode = 2;\n "
+ elsif hash["PicturePAR"] == 3
+ commandString << " anamorphic_mode = 3;\n "
+ end
+ commandString << "}\n "
end
#Booleans
else
commandString << " -r " << hash["VideoFramerate"]
end
+
+ if hash["VideoFrameratePFR"] == 1
+ commandString << " --pfr "
+ end
end
#Audio tracks
#Encoders
case audioTrack["AudioEncoder"]
- when /AC3 /
+ when /AC3 Pass/
+ audioEncoders << "copy:ac3"
+ when /AC3/
audioEncoders << "ac3"
when /AAC/
audioEncoders << "faac"