diff --git a/backend/go.mod b/backend/go.mod index 0faa90c9a..e061ebc8a 100644 --- a/backend/go.mod +++ b/backend/go.mod @@ -20,9 +20,9 @@ require ( github.com/google/go-cmp v0.7.0 github.com/google/uuid v1.6.0 github.com/gtsteffaniak/go-cache v1.1.0 - github.com/gtsteffaniak/go-ffmpeg v1.6.2 + github.com/gtsteffaniak/go-ffmpeg v1.6.3 github.com/gtsteffaniak/go-logger v1.1.0 - github.com/gtsteffaniak/go-media v1.3.1 + github.com/gtsteffaniak/go-media v1.3.2 github.com/kovidgoyal/imaging v1.9.0 github.com/pquerna/otp v1.5.0 github.com/spf13/afero v1.15.0 @@ -35,7 +35,7 @@ require ( golang.org/x/oauth2 v0.37.0 golang.org/x/sync v0.25.0 golang.org/x/sys v0.50.0 - golang.org/x/term v0.47.0 + golang.org/x/term v0.48.0 golang.org/x/text v0.44.0 golang.org/x/time v0.16.0 golang.org/x/tools v0.52.0 @@ -55,10 +55,10 @@ require ( github.com/dustin/go-humanize v1.1.0 // indirect github.com/fxamacker/cbor/v2 v2.9.6 // indirect github.com/gabriel-vasile/mimetype v1.4.16 // indirect - github.com/gen2brain/gav1d v0.2.7 // indirect - github.com/gen2brain/h265 v0.2.5 // indirect - github.com/gen2brain/jxl v0.2.1 // indirect - github.com/gen2brain/vpx v0.2.2 // indirect + github.com/gen2brain/gav1d v0.2.10 // indirect + github.com/gen2brain/h265 v0.2.7 // indirect + github.com/gen2brain/jxl v0.2.2 // indirect + github.com/gen2brain/vpx v0.2.3 // indirect github.com/go-asn1-ber/asn1-ber v1.5.8 // indirect github.com/go-errors/errors v1.5.1 // indirect github.com/go-jose/go-jose/v4 v4.1.6 // indirect diff --git a/backend/go.sum b/backend/go.sum index f49c1e63f..f2c5d360a 100644 --- a/backend/go.sum +++ b/backend/go.sum @@ -66,12 +66,20 @@ github.com/gen2brain/folio v0.2.8 h1:9iDI7h+zt4mjwEnzm1x8Pl9BrWqLwUwB74X/fnc1PZs github.com/gen2brain/folio v0.2.8/go.mod h1:4/PcXfaXIYmW1nwQ4bJeE+aG5ybG58Aw9xrwODXaXII= github.com/gen2brain/gav1d v0.2.7 h1:ehu3jWt+0/46Is5llW/ZyX2OA3hTBJNukKnebzuk8KU= github.com/gen2brain/gav1d v0.2.7/go.mod h1:ReFKjHq7pvRhEk+pgRPAo9gOlcrf51sdzVcAbbX7e0E= +github.com/gen2brain/gav1d v0.2.10 h1:27Qhi4hgaaoh4Nkv3ZbG6WG9aT+QQUuiWnh+UiBb2PQ= +github.com/gen2brain/gav1d v0.2.10/go.mod h1:5tgr8NUHPGhwU8PcIMDnP1iESRIsxYRgm/HAUg8WwlY= github.com/gen2brain/h265 v0.2.5 h1:D3qCPx5GU+gHpinvLJtYMLSmQy64RGOm4fzMNGQcA1g= github.com/gen2brain/h265 v0.2.5/go.mod h1:kefpLxLhGpNCUG/q/aabJcD6GqB9Nhet3fNi9xX9Wzw= +github.com/gen2brain/h265 v0.2.7 h1:PGGRPSZ5K0RsKhmk7UBk+j55HtWh/8mJgJk4ns8U3ho= +github.com/gen2brain/h265 v0.2.7/go.mod h1:xR/WG8zUmzFC4GpeiRwBX/ERtlu3hamQcAgD76/8rcI= github.com/gen2brain/jxl v0.2.1 h1:74+8uw2RxUHGDVrDp+727PZ2hvAd5/psyV/mpsOQea0= github.com/gen2brain/jxl v0.2.1/go.mod h1:d7VMurg9ek62xfuyZyVAumFcuaQf9U8NlW57j/k5MQI= +github.com/gen2brain/jxl v0.2.2 h1:Lq2F88CkWIPmhUIANthY3W2UfYMeq7NjciKnNC9c6qU= +github.com/gen2brain/jxl v0.2.2/go.mod h1:8TXnWS8wDSmYunyyhUgl5LYPiBsrWIDD02OmgOMFtrE= github.com/gen2brain/vpx v0.2.2 h1:kRCIx6Y2LsTe8hercAfhER2QbeHYnBOetovy4pkC4V0= github.com/gen2brain/vpx v0.2.2/go.mod h1:EVIdqguMSiapbtjDm4AWgFgYYJ4d+k8trXqjxYZ/4XE= +github.com/gen2brain/vpx v0.2.3 h1:ywoNilxbHh6b+OaN67E+IylL/IsgjfSoUd90HXY5A3A= +github.com/gen2brain/vpx v0.2.3/go.mod h1:637bQw2nk+PKT34NnIaZTzHeUWkIFReUn9S/4szqS6M= github.com/go-asn1-ber/asn1-ber v1.5.8 h1:H9AZkK22UOmfX8J84ubyaZxKJZ3FMHVwn8swoMML7iQ= github.com/go-asn1-ber/asn1-ber v1.5.8/go.mod h1:hEBeB/ic+5LoWskz+yKT7vGhhPYkProFKoKdwZRWMe0= github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q= @@ -163,12 +171,18 @@ github.com/gtsteffaniak/go-cache v1.1.0 h1:ni/2cJpCxpGmaMZd92iTDIGOy+yUcMcxQuW7b github.com/gtsteffaniak/go-cache v1.1.0/go.mod h1:rHUZvf4huhMX/bnNK4/oQ3sNAE2fYC2jFpAWZiBPWac= github.com/gtsteffaniak/go-ffmpeg v1.6.2 h1:gtvBg3G4PHO1Z/ZIPEK/XP4XT/g+l9S0Rpmmq6v5tnA= github.com/gtsteffaniak/go-ffmpeg v1.6.2/go.mod h1:FefhoD+KZzHWqBaUpntcKp6lXtUzdFW00F74axnENUQ= +github.com/gtsteffaniak/go-ffmpeg v1.6.3 h1:3bL93fsYpVJmS5BKt8pVBFJHXFPelXgZyNPEjpAl3f4= +github.com/gtsteffaniak/go-ffmpeg v1.6.3/go.mod h1:FefhoD+KZzHWqBaUpntcKp6lXtUzdFW00F74axnENUQ= +github.com/gtsteffaniak/go-ffmpeg v1.7.0 h1:CJ8l5Ei+TawfWirVLiqX2sTS9uFz9Ge1Guk0YeDMgCQ= +github.com/gtsteffaniak/go-ffmpeg v1.7.0/go.mod h1:FefhoD+KZzHWqBaUpntcKp6lXtUzdFW00F74axnENUQ= github.com/gtsteffaniak/go-logger v1.1.0 h1:baFds+iibuLLNpNLwygz32bDqdsunI6dGWcdxwMIVKI= github.com/gtsteffaniak/go-logger v1.1.0/go.mod h1:rapapTju4D7bwt6h4JOdZNUXDjnp0WkTBd6TN5yWglI= github.com/gtsteffaniak/go-media v1.3.0 h1:EOxoaOQq05V3OUPo5NndnPZ0/VYt4gFEwa6l7MdR6rk= github.com/gtsteffaniak/go-media v1.3.0/go.mod h1:x8k0z759GiawTtKBTXDNXF/pT1UQDhR4e70/eypXpOk= github.com/gtsteffaniak/go-media v1.3.1 h1:bnY1e6TM7s00OCiZK8B8VQCJKLQRKIi7bUA8gUHC62g= github.com/gtsteffaniak/go-media v1.3.1/go.mod h1:x8k0z759GiawTtKBTXDNXF/pT1UQDhR4e70/eypXpOk= +github.com/gtsteffaniak/go-media v1.3.2 h1:V+NBnRwsTTvGxBLQfhx9/LlDmnjbBgX4AKsQ3UOH6b0= +github.com/gtsteffaniak/go-media v1.3.2/go.mod h1:OqnFJYum+7At6bdiv7vSO1iJDYp7u6zke+DjF4TQXBs= github.com/gtsteffaniak/go-vpx v1.0.1 h1:9lSI8yoz6omDChaeV0AJrhdfe2YTrWvJrDENI/bnkAM= github.com/gtsteffaniak/go-vpx v1.0.1/go.mod h1:tRCdDZ15oZZTsiwmQAwyH56PTt1jn1C1O0P03oOkoJ8= github.com/hashicorp/go-uuid v1.0.3 h1:2gKiV6YVmrJ1i2CKKa9obLvRieoRGviZFL26PcT/Co8= @@ -298,6 +312,8 @@ golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9sn golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.47.0 h1:cpyOwQkr2Nzxe2p6KnrTG7Ei2wtzjsuSjhpXXepZ/BM= golang.org/x/term v0.47.0/go.mod h1:efAfAuG6RKABvg1ArGebRkvX6LXul14SM67o2e4mUCY= +golang.org/x/term v0.48.0 h1:G6UU1eiSB8nl3DzeUGt7Mg+2SctI8tPS6Z5/mBt6cOk= +golang.org/x/term v0.48.0/go.mod h1:BRDLHCZr2SUjIeBHHpRyQeC9xzSAVbzY2rvKgafnHf4= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= diff --git a/backend/internal/ffmpeg/accel_device_options_test.go b/backend/internal/ffmpeg/accel_device_options_test.go index fe32c11b9..b15f63f9e 100644 --- a/backend/internal/ffmpeg/accel_device_options_test.go +++ b/backend/internal/ffmpeg/accel_device_options_test.go @@ -8,23 +8,18 @@ import ( "github.com/gtsteffaniak/go-ffmpeg/platform" ) -func TestAccelDeviceOptionsOmitsAuto(t *testing.T) { +func TestAccelDeviceOptionsIncludesAuto(t *testing.T) { s := &Service{} opts := s.AccelDeviceOptions() - for _, opt := range opts { - if opt.ID == "auto" { - t.Fatalf("options must not include auto: %+v", opts) - } - } - if len(opts) != 1 || opts[0].ID != "software" { - t.Fatalf("without capabilities want software only, got %+v", opts) + if len(opts) != 2 || opts[0].ID != "auto" || opts[1].ID != "software" { + t.Fatalf("without capabilities want auto + software, got %+v", opts) } } func TestResolveAccelDeviceWithoutCapabilities(t *testing.T) { s := &Service{} - if got := s.ResolveAccelDevice("auto"); got != "software" { - t.Fatalf("ResolveAccelDevice(auto) = %q, want software", got) + if got := s.ResolveAccelDevice("auto"); got != "auto" { + t.Fatalf("ResolveAccelDevice(auto) = %q, want auto", got) } if got := s.ResolveAccelDevice("/dev/dri/renderD128"); got != "/dev/dri/renderD128" { t.Fatalf("ResolveAccelDevice(explicit) = %q", got) @@ -69,14 +64,12 @@ func wslCaps() *capabilities.Capabilities { // list it once, whether it is resolved through enumeration or the WSL default. func TestAccelDeviceOptionsWSLListsNVIDIAOnce(t *testing.T) { gpus := []platform.GPUDevice{{Name: "NVIDIA GeForce RTX 3050", Vendor: "nvidia", DeviceClass: "dgpu"}} - label, id, opts := resolvedAccelDeviceOptions(wslCaps(), gpus) - if id == "" || label == "" { - t.Fatalf("expected a resolved default, got %q/%q", id, label) + label, _, opts := resolvedAccelDeviceOptions(wslCaps(), gpus) + if label == "" { + t.Fatalf("expected an auto label, got %q", label) } - for _, o := range opts { - if o.ID == id || strings.Contains(o.Label, "RTX 3050") { - t.Fatalf("device listed twice: default=%q opts=%+v", id, opts) - } + if len(opts) != 1 || !strings.Contains(opts[0].Label, "RTX 3050") { + t.Fatalf("want one NVIDIA option, got %+v", opts) } } @@ -87,8 +80,15 @@ func TestAccelDeviceOptionsKeepsDistinctGPUs(t *testing.T) { } caps := capabilities.NewCapabilities() caps.Platform.Details = map[string]string{"render_device": "/dev/dri/renderD128"} - _, id, opts := resolvedAccelDeviceOptions(caps, gpus) - if id != "/dev/dri/renderD128" || len(opts) != 1 || opts[0].ID != "/dev/dri/renderD129" { - t.Fatalf("id=%q opts=%+v", id, opts) + caps.DeviceChain = []platform.GPUChoice{ + {Name: "Intel UHD Graphics", Vendor: "intel", Integrated: true, RenderDevice: "/dev/dri/renderD128"}, + {Name: "NVIDIA GeForce RTX 3050", Vendor: "nvidia"}, + } + label, _, opts := resolvedAccelDeviceOptions(caps, gpus) + if !strings.Contains(label, "renderD128") && !strings.Contains(label, "UHD") { + t.Fatalf("auto label should prefer integrated chain device, got %q", label) + } + if len(opts) != 2 { + t.Fatalf("want both GPUs listed, got %+v", opts) } } diff --git a/backend/internal/ffmpeg/service.go b/backend/internal/ffmpeg/service.go index 2c19c563d..f1ad65682 100644 --- a/backend/internal/ffmpeg/service.go +++ b/backend/internal/ffmpeg/service.go @@ -171,14 +171,13 @@ type AccelDeviceOption struct { } // AccelDeviceOptions lists concrete acceleration devices for the admin UI. -// The default auto-selected GPU (when stored as "auto") is included by name; -// there is no separate "auto" entry. +// The first entry is always id "auto" (optional chain hint in the label). func (s *Service) AccelDeviceOptions() []AccelDeviceOption { - out := []AccelDeviceOption{} + out := []AccelDeviceOption{{ID: "auto", Label: "auto"}} if caps := s.Capabilities(); caps != nil { - defaultLabel, defaultID, gpuOpts := resolvedAccelDeviceOptions(caps, s.gpuList()) - if defaultID != "" { - out = append(out, AccelDeviceOption{ID: defaultID, Label: defaultLabel}) + defaultLabel, _, gpuOpts := resolvedAccelDeviceOptions(caps, s.gpuList()) + if defaultLabel != "" { + out[0].Label = "auto (" + defaultLabel + ")" } out = append(out, gpuOpts...) } @@ -186,84 +185,73 @@ func (s *Service) AccelDeviceOptions() []AccelDeviceOption { return out } -// ResolveAccelDevice maps stored "auto"/empty to the concrete device the UI -// should display; explicit software aliases and device IDs are unchanged. +// ResolveAccelDevice normalizes stored acceleration device values. "auto" and +// empty stay auto so go-ffmpeg keeps the full device chain (iGPU → dGPU → software). func (s *Service) ResolveAccelDevice(device string) string { dev := strings.TrimSpace(device) switch strings.ToLower(dev) { case "software", "cpu", "none": return "software" - } - if dev != "" && !strings.EqualFold(dev, "auto") { + case "", "auto": + return "auto" + default: return dev } - caps := s.Capabilities() - if caps == nil { - return "software" - } - defaultLabel, defaultID, gpuOpts := resolvedAccelDeviceOptions(caps, s.gpuList()) - if defaultID != "" { - return defaultID - } - if len(gpuOpts) == 1 { - return gpuOpts[0].ID - } - for _, opt := range gpuOpts { - if opt.Label == defaultLabel { - return opt.ID - } - } - if id, _ := wslNVIDIAAccelDefault(caps); id != "" { - return id - } - return "software" } // resolvedAccelDeviceOptions labels the default auto-selected GPU and lists // every other enumerated device. func resolvedAccelDeviceOptions(caps *capabilities.Capabilities, gpus []platform.GPUDevice) (autoLabel, resolvedID string, opts []AccelDeviceOption) { - resolved := caps.Platform.Details["render_device"] - autoAccel := autoGPUAccel(caps) - wslID, wslLabel := wslNVIDIAAccelDefault(caps) + autoLabel = autoDeviceChainLabel(caps, gpus) seen := map[string]bool{} for _, g := range gpus { label := gpuClassLabel(g) + " (" + gpuDisplayName(g) + ")" - if seen[accelDeviceID(g)] { + id := accelDeviceID(g) + if id == "" || seen[id] { continue } - seen[accelDeviceID(g)] = true - switch { - case resolvedID == "" && wslID != "" && g.Vendor == "nvidia" && g.RenderNode == "" && resolved == "" && autoAccel.Vendor == "": - // WSL exposes the NVIDIA GPU without a DRM node; the enumerated - // entry is the auto default, so it must not be listed twice. - autoLabel, resolvedID = label, accelDeviceID(g) - continue - case g.RenderNode != "" && g.RenderNode == resolved: - autoLabel, resolvedID = label, g.RenderNode - continue - case resolvedID == "" && autoAccel.Vendor != "" && g.Vendor == autoAccel.Vendor: - // Vendor-level default for platforms without a render node (macOS, - // synthetic GPUs): this device backs the preferred hardware encoder, - // so it is the resolved auto selection, not an extra option. - autoLabel, resolvedID = label, accelDeviceID(g) - continue - } - if id := accelDeviceID(g); id != "" { - opts = append(opts, AccelDeviceOption{ID: id, Label: label}) - } + seen[id] = true + opts = append(opts, AccelDeviceOption{ID: id, Label: label}) } - if autoLabel == "" { - autoLabel = autoAccel.Name - } - if resolvedID == "" { - if wslID != "" { - if autoLabel == "" { - autoLabel = wslLabel + return autoLabel, "", opts +} + +func autoDeviceChainLabel(caps *capabilities.Capabilities, gpus []platform.GPUDevice) string { + if caps != nil { + for _, c := range caps.DeviceChain { + if c.SoftwareOnly { + continue + } + if c.Name != "" { + return gpuClassLabelFromChoice(c) + " (" + c.Name + ")" + } + if c.Label != "" { + return c.Label } - resolvedID = wslID } } - return autoLabel, resolvedID, opts + for _, g := range gpus { + if g.Integrated || g.DeviceClass == "igpu" { + return gpuClassLabel(g) + " (" + gpuDisplayName(g) + ")" + } + } + if len(gpus) > 0 { + g := gpus[0] + return gpuClassLabel(g) + " (" + gpuDisplayName(g) + ")" + } + if caps != nil { + if id, label := wslNVIDIAAccelDefault(caps); id != "" { + return label + } + } + return "" +} + +func gpuClassLabelFromChoice(c platform.GPUChoice) string { + if c.Integrated { + return "Integrated GPU" + } + return "Dedicated GPU" } // wslNVIDIAAccelDefault exposes dgpu when WSL has an NVIDIA driver but no DRM nodes. @@ -313,31 +301,6 @@ func gpuDisplayName(g platform.GPUDevice) string { return g.RenderNode } -// autoGPUAccel describes the GPU driving the detected default hardware -// encoder (e.g. Apple VideoToolbox → "Apple GPU"/vendor "apple"). -func autoGPUAccel(caps *capabilities.Capabilities) capabilities.AccelGPU { - var fallback capabilities.AccelType - for _, opt := range caps.EncodeOptions { - if !opt.Available || opt.Accel == "" || opt.Accel == capabilities.AccelNone { - continue - } - if opt.Codec != capabilities.CodecH264 { - continue - } - if opt.Default { - if gpu := capabilities.GPUForAccel(caps, opt.Accel); gpu.Name != "" { - return gpu - } - } - fallback = opt.Accel - } - gpu := capabilities.GPUForAccel(caps, fallback) - if gpu.Name == "CPU" || gpu.Vendor == "software" { - return capabilities.AccelGPU{} - } - return gpu -} - // EncoderBackendOption is one selectable entry in the encoder backend list. type EncoderBackendOption struct { ID string `json:"id"` @@ -528,7 +491,7 @@ func logCapabilities(svc *goffmpeg.Service, wantsHardware bool, accelDevice stri // report the fallback at info. func warnIfAccelDeviceUnavailable(caps *capabilities.Capabilities, accelDevice string) { if reason, ok := accelDeviceFallbackReason(accelDevice); ok { - logger.Warningf("ffmpeg accel device %q is unavailable (%s); using automatic selection instead", strings.TrimSpace(accelDevice), reason) + logger.Warningf("ffmpeg accel device %q is unavailable (%s); using auto instead", strings.TrimSpace(accelDevice), reason) } } diff --git a/backend/internal/transcoding/engine.go b/backend/internal/transcoding/engine.go index 476b972f8..d44c057a3 100644 --- a/backend/internal/transcoding/engine.go +++ b/backend/internal/transcoding/engine.go @@ -374,7 +374,7 @@ func logEncoderChoice(realPath string, profile Profile, p encode.VideoProfile, e if software { if requested != "" && requested != "auto" && requested != "cpu" { - logger.Warningf("transcode: encoder backend %q is unavailable for profile %s; falling back to automatic selection (%s)", requested, profile, realPath) + logger.Warningf("transcode: encoder backend %q is unavailable for profile %s; falling back to auto (%s)", requested, profile, realPath) } else if hardwareEncodeAvailable(svc.Capabilities()) { logger.Infof("transcode: using software encoder %q (%s) for profile=%s though hardware encode is available; check the configured accel device and encoder backend (%s)", encoderName, requestedLabel(requested), profile, realPath) diff --git a/backend/internal/web/settings.go b/backend/internal/web/settings.go index 4a40faa83..89df2a104 100644 --- a/backend/internal/web/settings.go +++ b/backend/internal/web/settings.go @@ -502,7 +502,6 @@ func settingsMediaGetHandler(w http.ResponseWriter, r *http.Request, d *Context) var accelDeviceOptions []ffmpeg.AccelDeviceOption var encoderBackendOptions []ffmpeg.EncoderBackendOption if svc != nil { - media.AccelDevice = svc.ResolveAccelDevice(media.AccelDevice) accelDeviceOptions = svc.AccelDeviceOptions() encoderBackendOptions = svc.EncoderBackendOptions() } diff --git a/backend/pkg/settings/unix_umask_stub.go b/backend/pkg/settings/unix_umask_stub.go deleted file mode 100644 index 05596d1df..000000000 --- a/backend/pkg/settings/unix_umask_stub.go +++ /dev/null @@ -1,7 +0,0 @@ -//go:build !unix - -package settings - -func unixUmask(mask int) int { - return 0 -} diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 1b772c8dd..dec0bf86e 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -224,9 +224,6 @@ "arm64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT OR Apache-2.0", "optional": true, "os": [ @@ -244,9 +241,6 @@ "arm64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT OR Apache-2.0", "optional": true, "os": [ @@ -264,9 +258,6 @@ "x64" ], "dev": true, - "libc": [ - "glibc" - ], "license": "MIT OR Apache-2.0", "optional": true, "os": [ @@ -284,9 +275,6 @@ "x64" ], "dev": true, - "libc": [ - "musl" - ], "license": "MIT OR Apache-2.0", "optional": true, "os": [ @@ -334,6 +322,7 @@ "version": "2.0.0-beta.2", "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-2.0.0-beta.2.tgz", "integrity": "sha512-MzCVoWtcg4Pm2B3je5mMvYMvj3MmBKw+fU7vbsJc9/iT8ip6/eYIHo/Dsm/mr+wsHB6SEyJDuxB09Yy6r/8+4A==", + "dev": true, "license": "MIT", "optional": true, "dependencies": { @@ -345,6 +334,7 @@ "version": "2.0.0-beta.2", "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-2.0.0-beta.2.tgz", "integrity": "sha512-JcrSPzPvZuNZvJqPTF9Fw25LbOJ8avzFVlaf2grmH4Cku0oGP47tRgqPZadcfj3YoZMHkFVnCYFbQM8I+i5QEw==", + "dev": true, "license": "MIT", "optional": true, "dependencies": { @@ -355,6 +345,7 @@ "version": "2.2.0", "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-2.2.0.tgz", "integrity": "sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==", + "dev": true, "license": "MIT", "optional": true, "dependencies": { @@ -368,6 +359,7 @@ "cpu": [ "ppc64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -384,6 +376,7 @@ "cpu": [ "arm" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -400,6 +393,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -416,6 +410,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -432,6 +427,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -448,6 +444,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -464,6 +461,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -480,6 +478,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -496,6 +495,7 @@ "cpu": [ "arm" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -512,6 +512,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -528,6 +529,7 @@ "cpu": [ "ia32" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -544,6 +546,7 @@ "cpu": [ "loong64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -560,6 +563,7 @@ "cpu": [ "mips64el" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -576,6 +580,7 @@ "cpu": [ "ppc64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -592,6 +597,7 @@ "cpu": [ "riscv64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -608,6 +614,7 @@ "cpu": [ "s390x" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -624,6 +631,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -640,6 +648,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -656,6 +665,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -672,6 +682,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -688,6 +699,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -704,6 +716,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -720,6 +733,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -736,6 +750,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -752,6 +767,7 @@ "cpu": [ "ia32" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -768,6 +784,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -1521,6 +1538,7 @@ "version": "1.2.6", "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.2.6.tgz", "integrity": "sha512-mRyDmEw9/fCDXCGfL1sbgIw/GUK0PVxRW4YwgPN61F3LQ+fSyoBFarJVzgGyhF6kRzEQZ0FejDqm4WLXSeqQmw==", + "dev": true, "license": "MIT", "optional": true, "dependencies": { @@ -1591,6 +1609,7 @@ "cpu": [ "arm" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -1607,6 +1626,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -1623,6 +1643,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -1639,6 +1660,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -1655,6 +1677,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -1671,6 +1694,7 @@ "cpu": [ "arm" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -1687,9 +1711,7 @@ "cpu": [ "arm64" ], - "libc": [ - "glibc" - ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -1706,9 +1728,7 @@ "cpu": [ "arm64" ], - "libc": [ - "musl" - ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -1725,9 +1745,7 @@ "cpu": [ "ppc64" ], - "libc": [ - "glibc" - ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -1744,9 +1762,7 @@ "cpu": [ "s390x" ], - "libc": [ - "glibc" - ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -1763,9 +1779,7 @@ "cpu": [ "x64" ], - "libc": [ - "glibc" - ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -1782,9 +1796,7 @@ "cpu": [ "x64" ], - "libc": [ - "musl" - ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -1801,6 +1813,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -1817,6 +1830,7 @@ "cpu": [ "wasm32" ], + "dev": true, "license": "MIT", "optional": true, "dependencies": { @@ -1835,6 +1849,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -1851,6 +1866,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MIT", "optional": true, "os": [ @@ -1893,6 +1909,7 @@ "version": "0.10.5", "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.5.tgz", "integrity": "sha512-dOGOPxlaNV+G046mZzN+9C0dAcQZeSKcXiVaM0TYy/LM4ttTmgSBDxYfovcYI8Em3+eAbiAYpvWLOv8+ZVRJKA==", + "dev": true, "license": "MIT", "optional": true, "dependencies": { @@ -1927,7 +1944,7 @@ "version": "26.6.6", "resolved": "https://registry.npmjs.org/@types/node/-/node-26.6.6.tgz", "integrity": "sha512-MzQj+8Kx3XI40OmUAE6Qoh58ZMNstNNMwn2nfd3qWsfe7nDNSqJNzes4njhz6AHwrSHOffSLwXU6yb474Q4aog==", - "devOptional": true, + "dev": true, "license": "MIT", "dependencies": { "undici-types": "~8.9.0" @@ -3171,6 +3188,7 @@ "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, "hasInstallScript": true, "license": "MIT", "optional": true, @@ -3572,6 +3590,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -3592,6 +3611,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -3612,6 +3632,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -3632,6 +3653,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -3652,6 +3674,7 @@ "cpu": [ "arm" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -3672,9 +3695,7 @@ "cpu": [ "arm64" ], - "libc": [ - "glibc" - ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -3695,9 +3716,7 @@ "cpu": [ "arm64" ], - "libc": [ - "musl" - ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -3718,9 +3737,7 @@ "cpu": [ "x64" ], - "libc": [ - "glibc" - ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -3741,9 +3758,7 @@ "cpu": [ "x64" ], - "libc": [ - "musl" - ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -3764,6 +3779,7 @@ "cpu": [ "arm64" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -3784,6 +3800,7 @@ "cpu": [ "x64" ], + "dev": true, "license": "MPL-2.0", "optional": true, "os": [ @@ -4541,6 +4558,7 @@ "version": "2.9.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.9.1.tgz", "integrity": "sha512-a4Ux9VKuIMHsOS7ENbEq6hK2ZGYIT27Rtl0E4eD9KqwxhKiQeMZE/9xb3IdYwWaSOyIBQLExhQgXDTYoiCxnWA==", + "dev": true, "license": "0BSD", "optional": true }, @@ -4584,7 +4602,7 @@ "version": "8.9.0", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.9.0.tgz", "integrity": "sha512-KTDyRTYX8sWmKXAikPHHSyc63CRPETMctyjKFupcC6OBLXT3xsN0e9aF7m+mIXutFWpUXuedtowG7iLOzp0kQg==", - "devOptional": true, + "dev": true, "license": "MIT" }, "node_modules/universalify": { @@ -5206,7 +5224,7 @@ "version": "2.9.1", "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.1.tgz", "integrity": "sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==", - "devOptional": true, + "dev": true, "license": "ISC", "bin": { "yaml": "bin.mjs" diff --git a/frontend/src/i18n/locales/fi.json b/frontend/src/i18n/locales/fi.json index 2295bac92..32f7a65b7 100644 --- a/frontend/src/i18n/locales/fi.json +++ b/frontend/src/i18n/locales/fi.json @@ -722,7 +722,29 @@ "transcodeProfileAvgBitrate": "Keskimääräinen bittinopeus (kbps)", "transcodeProfileAvgBitrateHelp": "Videon keskimääräisen bittinopeuden tavoitearvo kilobitteinä sekunnissa. Arvo 0 säilyttää alkuperäisen bittinopeuden.", "transcodeReadRate": "Transkoodauksen nopeusraja (× reaaliaikainen nopeus)", - "transcodeReadRateHelp": "Rajoita transkoodauksen syötteen lukunopeus N-kertaiseksi reaaliaikaiseen nopeuteen nähden (ffmpeg -readrate) suorittimen kuormituksen vähentämiseksi. Vähimmäisarvo on 1 ja oletusarvo 2. Rajoitus koskee vain transkoodausta. Mediavirran kopiointia ilman uudelleenkoodausta ei rajoiteta." + "transcodeReadRateHelp": "Rajoita transkoodauksen syötteen lukunopeus N-kertaiseksi reaaliaikaiseen nopeuteen nähden (ffmpeg -readrate) suorittimen kuormituksen vähentämiseksi. Vähimmäisarvo on 1 ja oletusarvo 2. Rajoitus koskee vain transkoodausta. Mediavirran kopiointia ilman uudelleenkoodausta ei rajoiteta.", + "shadowRegressions": "Regressiot", + "shadowRegressionsView": "Näytä regressiot", + "shadowRegressionsViewDescription": "Avaa vain luku -tilassa oleva luettelo tallennetuista regressioista. Merkinnät tallennetaan vain, kun FILEBROWSER_DEVMODE on käytössä.", + "shadowRegressionsLoadFailed": "Regressioiden lataaminen epäonnistui", + "shadowRegressionsClearFailed": "Regressioiden tyhjentäminen epäonnistui", + "shadowRegressionsCleared": "Regressiot on poistettu", + "shadowRegressionsAllOperations": "Kaikki toiminnot", + "shadowRegressionsSucceeded": "Onnistui", + "shadowRegressionsRegressions": "Regressiot", + "shadowRegressionsAverageTime": "Keskimääräinen aika", + "shadowRegressionsGoMedia": "go-media", + "shadowRegressionsFfmpeg": "ffmpeg", + "shadowRegressionsVersus": "vs", + "shadowIncompatibleTitle": "Go-media ei tue tätä, käsitellään ffmpeg:llä", + "shadowIncompatibleFile": "Tiedosto", + "shadowIncompatibleOperation": "Toiminta", + "shadowIncompatibleFormat": "Muoto", + "shadowIncompatibleSeen": "Nähty", + "shadowIncompatibleEmpty": "Tukemattomia tiedostoja ei ole tallennettu", + "shadowRegressionsFaster": "{factor}× nopeammin", + "shadowRegressionsSlower": "{factor}× hitaampi", + "shadowRegressionsSameSpeed": "sama nopeus" }, "time": { "time": "{prefix}Aika{suffix}",