Changes:
* 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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user