* Added configurable scenecut.
* Removed bframes 0 and 1 from nvenc default config.
* Added b_ref_mode configuration option.
* Fixed path parallelization.
* Attempted libvmaf parallelization.
This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2020-10-25 22:26:04 +01:00
parent ccc0483115
commit 6e2ac5e513
5 changed files with 190 additions and 110 deletions
+15
View File
@@ -1,6 +1,7 @@
const path = require('path');
const process = require('process');
const child_process = require('child_process');
const os = require('os');
function parse_duration(str) {
// Duration is in the form HH:MM:SS.fraction
@@ -152,6 +153,20 @@ class ffmpeg {
})
});
}
consolify(_file) {
//_file = path.resolve(_file);
if (os.platform() == 'win32') {
// Need to turn:
// C:\myfiles\model.pkl
// into:
// C\\:/myfiles/model.pkl
_file = _file.replace(/\\/g, '/').replace(':', '\\\\:');
} else {
// No further work needs to be done?
}
return _file;
}
}
module.exports = ffmpeg;