mirror of
https://github.com/immich-app/immich
synced 2025-10-17 18:19:27 +00:00
feat(server): transcode bitrate and thread settings (#2488)
* support for two-pass transcoding * added max bitrate and thread to transcode api * admin page setting desc+bitrate and thread options * Update web/src/lib/components/admin-page/settings/setting-input-field.svelte Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * Update web/src/lib/components/admin-page/settings/setting-input-field.svelte Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com> * two-pass slider, `crf` and `threads` as numbers * updated and added transcode tests * refactored `getFfmpegOptions` * default `threads`, `maxBitrate` now 0, more tests * vp9 constant quality mode * fixed nullable `crf` and `threads` * fixed two-pass slider, added apiproperty * optional `desc` for `SettingSelect` * disable two-pass if settings are incompatible * fixed test * transcode interface --------- Co-authored-by: Michel Heusschen <59014050+michelheusschen@users.noreply.github.com>
This commit is contained in:
parent
f1384fea58
commit
e9722710ac
19 changed files with 498 additions and 46 deletions
22
web/src/api/open-api/api.ts
generated
22
web/src/api/open-api/api.ts
generated
|
|
@ -2112,10 +2112,16 @@ export interface SystemConfigDto {
|
|||
export interface SystemConfigFFmpegDto {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof SystemConfigFFmpegDto
|
||||
*/
|
||||
'crf': string;
|
||||
'crf': number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof SystemConfigFFmpegDto
|
||||
*/
|
||||
'threads': number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
|
|
@ -2140,6 +2146,18 @@ export interface SystemConfigFFmpegDto {
|
|||
* @memberof SystemConfigFFmpegDto
|
||||
*/
|
||||
'targetResolution': string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SystemConfigFFmpegDto
|
||||
*/
|
||||
'maxBitrate': string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof SystemConfigFFmpegDto
|
||||
*/
|
||||
'twoPass': boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue