mirror of
https://github.com/KevinMidboe/immich.git
synced 2025-12-08 04:09:07 +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:
@@ -5349,7 +5349,10 @@
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"crf": {
|
||||
"type": "string"
|
||||
"type": "integer"
|
||||
},
|
||||
"threads": {
|
||||
"type": "integer"
|
||||
},
|
||||
"preset": {
|
||||
"type": "string"
|
||||
@@ -5363,6 +5366,12 @@
|
||||
"targetResolution": {
|
||||
"type": "string"
|
||||
},
|
||||
"maxBitrate": {
|
||||
"type": "string"
|
||||
},
|
||||
"twoPass": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"transcode": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
@@ -5375,10 +5384,13 @@
|
||||
},
|
||||
"required": [
|
||||
"crf",
|
||||
"threads",
|
||||
"preset",
|
||||
"targetVideoCodec",
|
||||
"targetAudioCodec",
|
||||
"targetResolution",
|
||||
"maxBitrate",
|
||||
"twoPass",
|
||||
"transcode"
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user