[PR #7529] Properly handle stream addition and removal for strm use cases #11443

Closed
opened 2026-02-07 06:38:34 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/jellyfin/jellyfin/pull/7529

State: closed
Merged: Yes


Strm files are special:

  • preserve non-external streams between scans
  • add external streams before adding internal streams
  • always recalculate the stream index of the selected stream within its source file
  • fix transcoding if external subtitle or audio isn't a single stream but a a stream in a container

We need to add the external streams before adding the internals because otherwise the index submitted by e.g. stream selection on jf-web would be wrong if the initial scan of the file did not already populate the internal streams or if the file changed. For strm files that's always the case if the file was never played before since probe on scan is skipped for linked remote files.

**Original Pull Request:** https://github.com/jellyfin/jellyfin/pull/7529 **State:** closed **Merged:** Yes --- Strm files are special: * preserve non-external streams between scans * add external streams before adding internal streams * always recalculate the stream index of the selected stream within its source file * fix transcoding if external subtitle or audio isn't a single stream but a a stream in a container We need to add the external streams before adding the internals because otherwise the index submitted by e.g. stream selection on jf-web would be wrong if the initial scan of the file did not already populate the internal streams or if the file changed. For strm files that's always the case if the file was never played before since probe on scan is skipped for linked remote files.
OVERLORD added the pull-request label 2026-02-07 06:38:34 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#11443