[Issue]: Invalid DefaultAudioStreamIndex when "Play default audio track regardless of language" set to true #3831

Closed
opened 2025-12-21 22:51:07 +01:00 by backuprepo · 0 comments
Owner

Originally created by @SenorSmartyPants on GitHub (May 15, 2022).

Please describe your bug

On some videos, I think when there is one default audio track with no language(set to und) DefaultAudioStreamIndex will be set to 0, which in these cases is the video track.

Example mediainfo with this behavior

Audio
Title: AAC - Stereo - Default
Language: und
Codec: AAC
Codec tag: mp4a
Profile: LC
Layout: stereo
Channels: 2 ch
Bitrate: 93 kbps
Sample rate: 44100 Hz
Default: Yes
Forced: No
External: No

User Playback settings
image

results in

http://jellyfin:8096/Users/[USERID]/Items/[MOVIEID]?api_key=[APIKEY]
DefaultAudioStreamIndex: 0

Change settings to this
image

and now
DefaultAudioStreamIndex: 1

Jellyfin Version

10.8.0

if other:

No response

Environment

- OS:
- Virtualization:
- Clients:
- Browser:
- FFmpeg Version:
- Playback Method:
- Hardware Acceleration:
- Plugins:
- Reverse Proxy:
- Base URL:
- Networking:
- Storage:

Jellyfin logs

No response

FFmpeg logs

No response

Please attach any browser or client logs here

No response

Please attach any screenshots here

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Originally created by @SenorSmartyPants on GitHub (May 15, 2022). ### Please describe your bug On some videos, I think when there is one default audio track with no language(set to und) DefaultAudioStreamIndex will be set to 0, which in these cases is the video track. Example mediainfo with this behavior ``` Audio Title: AAC - Stereo - Default Language: und Codec: AAC Codec tag: mp4a Profile: LC Layout: stereo Channels: 2 ch Bitrate: 93 kbps Sample rate: 44100 Hz Default: Yes Forced: No External: No ``` User Playback settings ![image](https://user-images.githubusercontent.com/991618/168495025-23062e94-37bb-4c18-a1d9-3e4b128cb502.png) results in http://jellyfin:8096/Users/[USERID]/Items/[MOVIEID]?api_key=[APIKEY] `DefaultAudioStreamIndex: 0` Change settings to this ![image](https://user-images.githubusercontent.com/991618/168495069-d8b0105d-0bf7-4f16-8370-6b0c73dbcfa8.png) and now `DefaultAudioStreamIndex: 1` ### Jellyfin Version 10.8.0 ### if other: _No response_ ### Environment ```markdown - OS: - Virtualization: - Clients: - Browser: - FFmpeg Version: - Playback Method: - Hardware Acceleration: - Plugins: - Reverse Proxy: - Base URL: - Networking: - Storage: ``` ### Jellyfin logs _No response_ ### FFmpeg logs _No response_ ### Please attach any browser or client logs here _No response_ ### Please attach any screenshots here _No response_ ### Code of Conduct - [X] I agree to follow this project's Code of Conduct
backuprepo 2025-12-21 22:51:07 +01:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/jellyfin#3831
No description provided.