Skip to content

Commit

Permalink
Merge pull request #529 from HaveAGitGat/parser_update
Browse files Browse the repository at this point in the history
Add better estimates for 2 pass hb encoding
  • Loading branch information
HaveAGitGat authored Nov 8, 2023
2 parents ce4f069 + f73157e commit 82b61eb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions FlowPlugins/FlowHelpers/1.0.0/cliParsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 6 additions & 0 deletions FlowPluginsTs/FlowHelpers/1.0.0/cliParsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit 82b61eb

Please sign in to comment.