mirror of
https://github.com/immich-app/immich
synced 2026-08-15 13:03:57 +00:00
feat(server, web): Added TranscodePolicy "Bitrate higher than max bitrate or not in accepted format" (#6479)
* chore: rebase * chore: open api * Add Database-Migration for setting targetCodec as acceptedCodec if it was set by admin * Add TranscodePolicy setting, to only transcode files with a bitrate higher than set max bitrate * Rename enum value of TranscodePolicy * calculate max_bitrate according to "k" and "m" suffix for comparison * remove migration * minor changes * UnitTest for Bitrate Policy * Fix UnitTest * Add missing output options --------- Co-authored-by: Jason Rasmussen <jrasm91@gmail.com> Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com>
This commit is contained in:
parent
149bc71eba
commit
87c38d1832
10 changed files with 84 additions and 1 deletions
|
|
@ -9923,6 +9923,7 @@
|
|||
"enum": [
|
||||
"all",
|
||||
"optimal",
|
||||
"bitrate",
|
||||
"required",
|
||||
"disabled"
|
||||
],
|
||||
|
|
|
|||
1
open-api/typescript-sdk/client/api.ts
generated
1
open-api/typescript-sdk/client/api.ts
generated
|
|
@ -4370,6 +4370,7 @@ export type TranscodeHWAccel = typeof TranscodeHWAccel[keyof typeof TranscodeHWA
|
|||
export const TranscodePolicy = {
|
||||
All: 'all',
|
||||
Optimal: 'optimal',
|
||||
Bitrate: 'bitrate',
|
||||
Required: 'required',
|
||||
Disabled: 'disabled'
|
||||
} as const;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue