mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-30 12:54:55 +00:00
feat(transcode): add multi-resolution strategy with configurable ladders and fallback (#438)
* feat(transcode): add multi-resolution strategy with configurable ladders and fallback * feat(settings): show toast on settings update and add manual verification plan to PR template * fix(webui): preserve video resolution and fix 480p label in download dropdowns * fix(webui): display standard short-side resolution for vertical videos in seekbar * fix(webui): fix portrait transcode resolution labeling and serialize settings toggles
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
-- Migrate videoStrategy 'all' / 'full' to 'multi'
|
||||
UPDATE "teams"
|
||||
SET "settings" = jsonb_set("settings", '{transcode,videoStrategy}', '"multi"')
|
||||
WHERE "settings"->'transcode'->>'videoStrategy' IN ('all', 'full');
|
||||
|
||||
-- Normalize legacy videoStrategy values 'single' / 'disable' to 'best_match'
|
||||
UPDATE "teams"
|
||||
SET "settings" = jsonb_set("settings", '{transcode,videoStrategy}', '"best_match"')
|
||||
WHERE "settings"->'transcode'->>'videoStrategy' IN ('single', 'disable');
|
||||
|
||||
-- Backfill default videoResolutions where transcode settings exist without videoResolutions
|
||||
UPDATE "teams"
|
||||
SET "settings" = jsonb_set("settings", '{transcode,videoResolutions}', '["480p", "720p", "1080p", "1440p", "2160p"]'::jsonb)
|
||||
WHERE "settings" IS NOT NULL
|
||||
AND jsonb_typeof("settings"->'transcode') = 'object'
|
||||
AND NOT ("settings"->'transcode' ? 'videoResolutions');
|
||||
Reference in New Issue
Block a user