Integrations

Automating 4K→1080p Video Transcoding

M
mr187k1inIntegrationsIT-30
over 1 year ago

I’m planning to migrate my photos gallery to Immich and have a idea about video transcoding.

Specifically, I’d like to:

-> Capture and upload 4k videos (high bitrate, typically 100–150 Mbps HEVC) to Immich
-> Downscale them to 1080p with settings close to my current StaxRip profile

I found replaceAsset API in the docs (https://immich.app/docs/api/replace-asset/) which can replace an existing asset without changing its UUID. I’m wondering:

Is it possible to use replaceAsset to feed Immich transcoded 1080p file and have it swap in place of the original 4K?

For reference, my current local StaxRip settings are:
• Spline64Resize downscaler
• x265 --crf 22 --preset slower
• --aq-mode 2 --vbv-maxrate 147456 --vbv-bufsize 24576

I use these settings to keep encodes high quality for archival. Later I delete original 4k files. I came up with these through trial and error.

Maybe a system where Power Tools can check if a video is in 4k, then process it compress it and prompt the user. The user can review both original and transcoded videos. Once user accepts, the video is changed in immich.

Thank you in advance if you could implement this

  1. In Review
  2. Planned
  3. In Progress
  4. Completed
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...
Loading content, please wait...