mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-15 02:05:54 -07:00
Add better estimates for 2 pass hb encoding
This commit is contained in:
parent
ce4f0696bd
commit
f73157eb82
2 changed files with 12 additions and 0 deletions
|
|
@ -21,6 +21,12 @@ var handbrakeParser = function (_a) {
|
||||||
percentage = outputNum;
|
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;
|
return percentage;
|
||||||
};
|
};
|
||||||
exports.handbrakeParser = handbrakeParser;
|
exports.handbrakeParser = handbrakeParser;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
return percentage;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue