[PR #9800] chore: refactor transcode config routing #12643

Closed
opened 2026-02-05 15:00:44 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/immich-app/immich/pull/9800

State: closed
Merged: Yes


Description

The transcode config to use is currently handled in the media service. This PR moves it to the util instead as the routing is somewhat complex and should be considered an implementation detail. Creating a config is now declarative, without the service needing to care about what config it really is.

Also renames TranscodeOptions to TranscodeCommand and getOptions to getCommand. This is to better distinguish it from the admin config.

Lastly, it removes some uses of null in the service.

**Original Pull Request:** https://github.com/immich-app/immich/pull/9800 **State:** closed **Merged:** Yes --- ## Description The transcode config to use is currently handled in the media service. This PR moves it to the util instead as the routing is somewhat complex and should be considered an implementation detail. Creating a config is now declarative, without the service needing to care about what config it really is. Also renames `TranscodeOptions` to `TranscodeCommand` and `getOptions` to `getCommand`. This is to better distinguish it from the admin config. Lastly, it removes some uses of `null` in the service.
OVERLORD added the pull-request label 2026-02-05 15:00:44 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#12643