[PR #4102] [MERGED] fix(server): use libopus for transcoding #10246

Closed
opened 2026-02-05 14:18:24 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/immich-app/immich/pull/4102
Author: @mertalev
Created: 9/15/2023
Status: Merged
Merged: 9/16/2023
Merged by: @mertalev

Base: mainHead: fix/server-use-libopus


📝 Commits (6)

📊 Changes

7 files changed (+29 additions, -8 deletions)

View changed files

📝 cli/src/api/open-api/api.ts (+1 -1)
📝 mobile/openapi/lib/model/audio_codec.dart (+3 -3)
📝 server/immich-openapi-specs.json (+1 -1)
📝 server/src/infra/entities/system-config.entity.ts (+1 -1)
server/src/infra/migrations/1694758412194-UpdateOpusCodecToLibopus.ts (+21 -0)
📝 web/src/api/open-api/api.ts (+1 -1)
📝 web/src/lib/components/admin-page/settings/ffmpeg/ffmpeg-settings.svelte (+1 -1)

📄 Description

Description

The current transcoding command when using opus uses FFmpeg's native Opus codec. This is an experimental codec that generally has lower quality than libopus. Since it fixes #4100, this is an additional reason to make the switch.

How Has This Been Tested?

Tested by first setting the audio codec to opus using the main branch, then switching to this branch. The migration works as expected and applies the new value. Running a transcoding job confirmed that it uses libopus without errors.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/immich-app/immich/pull/4102 **Author:** [@mertalev](https://github.com/mertalev) **Created:** 9/15/2023 **Status:** ✅ Merged **Merged:** 9/16/2023 **Merged by:** [@mertalev](https://github.com/mertalev) **Base:** `main` ← **Head:** `fix/server-use-libopus` --- ### 📝 Commits (6) - [`ec902d7`](https://github.com/immich-app/immich/commit/ec902d77915ba7c3058096e76f31249d4a4f4a9f) updated audio codec enum - [`3415945`](https://github.com/immich-app/immich/commit/3415945cb63bf716176dbdc30c7120ed306bafec) added migration - [`9cd6ab7`](https://github.com/immich-app/immich/commit/9cd6ab7c6325a17a0b78162268de289ff69cfd4c) updated api - [`d46abec`](https://github.com/immich-app/immich/commit/d46abec81ada22dbac5f03f6ca83c7e164287d79) fixed enum - [`51829f3`](https://github.com/immich-app/immich/commit/51829f3a1cf9fe98c08dc82905f0b1c915a24301) formatting - [`f2a1dee`](https://github.com/immich-app/immich/commit/f2a1deedac7e30283dafa79b890d51d2563c6e78) simplified migration ### 📊 Changes **7 files changed** (+29 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `cli/src/api/open-api/api.ts` (+1 -1) 📝 `mobile/openapi/lib/model/audio_codec.dart` (+3 -3) 📝 `server/immich-openapi-specs.json` (+1 -1) 📝 `server/src/infra/entities/system-config.entity.ts` (+1 -1) ➕ `server/src/infra/migrations/1694758412194-UpdateOpusCodecToLibopus.ts` (+21 -0) 📝 `web/src/api/open-api/api.ts` (+1 -1) 📝 `web/src/lib/components/admin-page/settings/ffmpeg/ffmpeg-settings.svelte` (+1 -1) </details> ### 📄 Description ## Description The current transcoding command when using opus uses FFmpeg's native Opus codec. This is an experimental codec that generally has lower quality than libopus. Since it fixes #4100, this is an additional reason to make the switch. ## How Has This Been Tested? Tested by first setting the audio codec to opus using the main branch, then switching to this branch. The migration works as expected and applies the new value. Running a transcoding job confirmed that it uses libopus without errors. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-05 14:18:24 +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#10246