@muhkoo/theater-transcoder 0.3.5 → 0.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/transcode.js +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@muhkoo/theater-transcoder",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "Drain a Muhkoo Theater transcode queue with NATIVE ffmpeg. Run it on any machine signed in as you to add transcoding power to your library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/transcode.js
CHANGED
|
@@ -61,7 +61,10 @@ function buildStrategies(codec, rend) {
|
|
|
61
61
|
case "h264_nvenc":
|
|
62
62
|
return [
|
|
63
63
|
{ label: "NVENC (full GPU pipeline)", input: ["-hwaccel", "cuda", "-hwaccel_output_format", "cuda"],
|
|
64
|
-
|
|
64
|
+
// scale_cuda must output nv12 (a GPU 4:2:0 surface NVENC can open) — NOT
|
|
65
|
+
// yuv420p, which the CUDA encoder path rejects ("could not open encoder").
|
|
66
|
+
// The encoded H.264 is still 8-bit 4:2:0, i.e. MSE-safe.
|
|
67
|
+
filter: `scale_cuda=-2:${rend.height}:format=nv12`,
|
|
65
68
|
video: ["-c:v", "h264_nvenc", "-preset", "p4", "-tune", "hq", "-rc", "vbr", ...bv, "-profile:v", "main", ...kf] },
|
|
66
69
|
{ label: "NVENC (GPU encode, CPU scale)", input: ["-hwaccel", "cuda"], filter: scale,
|
|
67
70
|
video: ["-c:v", "h264_nvenc", "-preset", "p4", "-tune", "hq", "-rc", "vbr", ...bv, "-profile:v", "main", "-pix_fmt", "yuv420p", ...kf] },
|