Various changes:

* Reformatted source code automatically.
* Possible fix for x264 refusing to build lossless videos.
* Allow encoders to add extra options to the command line, such as gpu selection.
This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2020-10-25 18:32:07 +01:00
parent 43952dd162
commit 3b0cdeaaac
4 changed files with 72 additions and 43 deletions
+3 -9
View File
@@ -139,15 +139,9 @@ class h264_nvenc extends encoder {
return this.combinations[index];
}
/*
for (let br of _config.bitrates)
"-b:v", `${br.toFixed(0)}k`,
"-bufsize", `${(br * 2).toFixed(0)}k`,
"-minrate", "0",
"-maxrate", `${br.toFixed(0)}k`,
for (let kfm of _config.keyframe_multiplier)
"-g", (_cache.fps * kfm).toFixed(0),
*/
extra() {
return ["-gpu", settings.gpu];
}
}
module.exports = h264_nvenc;