detached b39db92

fix: enable transcoding by default + register config defaults in loader

Transcoding was silently disabled because the TranscodingConfig struct
had zero-value defaults (Enabled=false) and no defaults were registered
in the config loader. Now defaults to enabled=true, hwaccel=auto,
max_concurrent=3, quality=medium.
commit
b39db92c995fa21fc10621ee5945e2dec1631dcf
author
brice · · 2026-03-24 07:10 UTC
committer
brice · · 2026-03-28 04:39 UTC
parent
84980e6
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
2 files · +7 -1
M internal/infrastructure/config/loader.go +6 -0
@@ -606,6 +606,12 @@ func (m *Manager) setEngineDefaults(defaults *Config) {
606606 m.viper.SetDefault("engine.webkit.network_process_memory_poll_interval_sec", wk.NetworkProcessMemoryPollIntervalSec)
607607 m.viper.SetDefault("engine.webkit.network_process_memory_conservative_threshold", wk.NetworkProcessMemoryConservativeThreshold)
608608 m.viper.SetDefault("engine.webkit.network_process_memory_strict_threshold", wk.NetworkProcessMemoryStrictThreshold)
609+
610+ // Transcoding defaults.
611+ m.viper.SetDefault("transcoding.enabled", true)
612+ m.viper.SetDefault("transcoding.hwaccel", "auto")
613+ m.viper.SetDefault("transcoding.max_concurrent", 3)
614+ m.viper.SetDefault("transcoding.quality", "medium")
609615 }
610616
611617 // New returns a new default configuration instance.
@@ -606,6 +606,12 @@ func (m *Manager) setEngineDefaults(defaults *Config) {
606 m.viper.SetDefault("engine.webkit.network_process_memory_poll_interval_sec", wk.NetworkProcessMemoryPollIntervalSec)606 m.viper.SetDefault("engine.webkit.network_process_memory_poll_interval_sec", wk.NetworkProcessMemoryPollIntervalSec)
607 m.viper.SetDefault("engine.webkit.network_process_memory_conservative_threshold", wk.NetworkProcessMemoryConservativeThreshold)607 m.viper.SetDefault("engine.webkit.network_process_memory_conservative_threshold", wk.NetworkProcessMemoryConservativeThreshold)
608 m.viper.SetDefault("engine.webkit.network_process_memory_strict_threshold", wk.NetworkProcessMemoryStrictThreshold)608 m.viper.SetDefault("engine.webkit.network_process_memory_strict_threshold", wk.NetworkProcessMemoryStrictThreshold)
609+
610+ // Transcoding defaults.
611+ m.viper.SetDefault("transcoding.enabled", true)
612+ m.viper.SetDefault("transcoding.hwaccel", "auto")
613+ m.viper.SetDefault("transcoding.max_concurrent", 3)
614+ m.viper.SetDefault("transcoding.quality", "medium")
609 }615 }
610 616
611 // New returns a new default configuration instance.617 // New returns a new default configuration instance.
M internal/infrastructure/config/schema.go +1 -1
@@ -369,7 +369,7 @@ type DownloadsConfig struct {
369369 // When enabled, proprietary video formats (H.264, HEVC) are transcoded
370370 // to open codecs (VP9, AV1) that CEF can decode natively.
371371 type TranscodingConfig struct {
372- // Enabled controls whether transcoding is active (default: false).
372+ // Enabled controls whether transcoding is active (default: true).
373373 Enabled bool `mapstructure:"enabled" yaml:"enabled" toml:"enabled"`
374374 // HWAccel selects the hardware acceleration API: "auto", "vaapi", or "nvenc".
375375 // Default: "auto" (tries VAAPI first, then CUDA).
@@ -369,7 +369,7 @@ type DownloadsConfig struct {
369 // When enabled, proprietary video formats (H.264, HEVC) are transcoded369 // When enabled, proprietary video formats (H.264, HEVC) are transcoded
370 // to open codecs (VP9, AV1) that CEF can decode natively.370 // to open codecs (VP9, AV1) that CEF can decode natively.
371 type TranscodingConfig struct {371 type TranscodingConfig struct {
372- // Enabled controls whether transcoding is active (default: false).372+ // Enabled controls whether transcoding is active (default: true).
373 Enabled bool `mapstructure:"enabled" yaml:"enabled" toml:"enabled"`373 Enabled bool `mapstructure:"enabled" yaml:"enabled" toml:"enabled"`
374 // HWAccel selects the hardware acceleration API: "auto", "vaapi", or "nvenc".374 // HWAccel selects the hardware acceleration API: "auto", "vaapi", or "nvenc".
375 // Default: "auto" (tries VAAPI first, then CUDA).375 // Default: "auto" (tries VAAPI first, then CUDA).

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 8

Tags 42

↑↓ moveenter openesc close