Add better estimates for 2 pass hb encoding

This commit is contained in:
HaveAGitGat 2023-11-08 05:58:01 +00:00
parent ce4f0696bd
commit f73157eb82
2 changed files with 12 additions and 0 deletions

View file

@ -21,6 +21,12 @@ var handbrakeParser = function (_a) {
percentage = outputNum;
}
}
if (str.includes('task 1 of 2')) {
percentage /= 2;
}
else if (str.includes('task 2 of 2')) {
percentage = 50 + (percentage / 2);
}
return percentage;
};
exports.handbrakeParser = handbrakeParser;

View file

@ -28,6 +28,12 @@ const handbrakeParser = ({
}
}
if (str.includes('task 1 of 2')) {
percentage /= 2;
} else if (str.includes('task 2 of 2')) {
percentage = 50 + (percentage / 2);
}
return percentage;
};