mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 15:38:19 -07:00
Tdarr_Plugin_DOOM_NVENC_Tiered_MKV_CleanAll test
This commit is contained in:
parent
8a768ab63a
commit
96de8feba7
2 changed files with 80 additions and 1 deletions
|
|
@ -1,6 +1,5 @@
|
|||
/* eslint-disable */
|
||||
|
||||
// tdarrSkipTest
|
||||
const details = () => {
|
||||
return {
|
||||
id: "Tdarr_Plugin_DOOM_NVENC_Tiered_MKV_CleanAll",
|
||||
|
|
@ -441,10 +440,15 @@ function buildVideoConfiguration(inputs, file, logger) {
|
|||
/* Determine tiered bitrate variables */
|
||||
var tier = tiered[file.video_resolution];
|
||||
|
||||
console.log(file.video_resolution);
|
||||
console.log(tier);
|
||||
|
||||
bitratecheck = parseInt(tier["bitrate"]);
|
||||
if (bitrateprobe !== null && bitrateprobe < bitratecheck) {
|
||||
console.log('here1')
|
||||
bitratetarget = parseInt((bitrateprobe * inputs.target_pct_reduction) / 1000);
|
||||
} else {
|
||||
console.log('here2')
|
||||
bitratetarget = parseInt(tier["bitrate"] / 1000);
|
||||
}
|
||||
bitratemax = bitratetarget + tier["max_increase"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue