[PR #13475] [CLOSED] Fix transcoding if audio is unsupported #13591

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

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/13475
Author: @ACertainCoder
Created: 2/2/2025
Status: Closed

Base: masterHead: fix/audio-transcoding


📝 Commits (2)

  • c3b0632 Fix transcoding if audio is unsupported
  • fc679ba Remove negation

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 MediaBrowser.Model/Dlna/StreamBuilder.cs (+1 -1)

📄 Description

Changes
When using DLNA to play a video on another device that doesn't support the audio stream of that video, Jellyfin doesn't transcode it (typical log message: PlayMethod=DirectStream, TranscodeReason=ContainerNotSupported, AudioCodecNotSupported). The line responsible for filtering direct stream issues excludes these reasons rather than making them exclusive.

Changing the negated bitwise-anding to a regular one fixes this problem. I could verify that the correct audio stream was then provided to my DLNA renderer and that playback via Jellyfin web was still functioning as expected (without the need for transcoding).

Issues
https://github.com/jellyfin/jellyfin-plugin-dlna/issues/23

Please correct me if this change would have unwanted consequences.


🔄 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/jellyfin/jellyfin/pull/13475 **Author:** [@ACertainCoder](https://github.com/ACertainCoder) **Created:** 2/2/2025 **Status:** ❌ Closed **Base:** `master` ← **Head:** `fix/audio-transcoding` --- ### 📝 Commits (2) - [`c3b0632`](https://github.com/jellyfin/jellyfin/commit/c3b063260277ec34e05a9db0b340df2a5f47b73e) Fix transcoding if audio is unsupported - [`fc679ba`](https://github.com/jellyfin/jellyfin/commit/fc679ba3e6bfb1990b7ef18574fef75ec2daa219) Remove negation ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `MediaBrowser.Model/Dlna/StreamBuilder.cs` (+1 -1) </details> ### 📄 Description **Changes** When using DLNA to play a video on another device that doesn't support the audio stream of that video, Jellyfin doesn't transcode it (typical log message: `PlayMethod=DirectStream, TranscodeReason=ContainerNotSupported, AudioCodecNotSupported`). The line responsible for filtering direct stream issues *excludes* these reasons rather than making them *exclusive*. Changing the negated bitwise-anding to a regular one fixes this problem. I could verify that the correct audio stream was then provided to my DLNA renderer and that playback via Jellyfin web was still functioning as expected (without the need for transcoding). **Issues** https://github.com/jellyfin/jellyfin-plugin-dlna/issues/23 Please correct me if this change would have unwanted consequences. --- <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-07 07:15:43 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#13591