mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
feat(server): add transcode presets (#2084)
* feat: add transcode presets * Add migration * chore: generate api * refactor: use enum type instead of string for transcode option * chore: generate api * refactor: enhance readability of runVideoEncode method * refactor: reuse SettingSelect for transcoding presets * refactor: simplify return statement * chore: regenerate api * fix: correct label attribute * Update import * fix test --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
This commit is contained in:
parent
b49f66bbc9
commit
2c67090e3c
14 changed files with 216 additions and 45 deletions
13
web/src/api/open-api/api.ts
generated
13
web/src/api/open-api/api.ts
generated
|
|
@ -1987,11 +1987,20 @@ export interface SystemConfigFFmpegDto {
|
|||
'targetScaling': string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @type {string}
|
||||
* @memberof SystemConfigFFmpegDto
|
||||
*/
|
||||
'transcodeAll': boolean;
|
||||
'transcode': SystemConfigFFmpegDtoTranscodeEnum;
|
||||
}
|
||||
|
||||
export const SystemConfigFFmpegDtoTranscodeEnum = {
|
||||
All: 'all',
|
||||
Optimal: 'optimal',
|
||||
Required: 'required'
|
||||
} as const;
|
||||
|
||||
export type SystemConfigFFmpegDtoTranscodeEnum = typeof SystemConfigFFmpegDtoTranscodeEnum[keyof typeof SystemConfigFFmpegDtoTranscodeEnum];
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue