jellyfin / Swiftfin

Native Jellyfin Client for iOS and tvOS
Mozilla Public License 2.0
2.47k stars 271 forks source link

OPUS audio not playing on Apple TV #1150

Open anyoneyun opened 1 month ago

anyoneyun commented 1 month ago

Describe the bug

  1. Click on a movie/show with an OPUS audio track
  2. No audio is played, jellyfin doesn't transcode

Application version

1.0.1 (70)

Where did you install the app from?

App Store

Device information

Apple TV 4K 2nd Gen

OS version

17.5.1

Jellyfin server version

10.9.7

UnidentifiedX commented 1 month ago

Also experiencing the same on Swiftfin iOS

Application version

1.1

Where did you install the app from?

App Store

Device information

iPhone 11

OS version

17.5.1

Jellyfin server version

10..9.7

holow29 commented 1 month ago

@UnidentifiedX Can you please give the mediainfo of the file?

UnidentifiedX commented 1 month ago

@UnidentifiedX Can you please give the mediainfo of the file?

image image

holow29 commented 1 month ago

@anyoneyun Until the tvOS app is updated past 1.0.1 so that the device profile changes take effect, this will remain the case. @UnidentifiedX I assume you are trying to use the Native player. I have identified that the native player only supports 2 channel Opus. You can see more discussion here: https://github.com/jellyfin/Swiftfin/issues/1170

UnidentifiedX commented 3 weeks ago

@holow29 Thanks for the reply! Looked through the thread and I've decided to transcode my files to 5.1 AC3. Works fine now, thanks!

Also on a side note, even running stereo opus doesn't produce any audio. Tried with the LegacyStereo audio track as well - doesn't seem to work either. Not sure what is going on here.

Edit: Actually, I realised that OPUS audio doesn't work AT ALL when using the Swiftfin player - for both stereo and 5.1. I haven't been using the native player at all, since like the other guy, AV1 + OPUS 5.1 doesn't even load

UnidentifiedX commented 3 weeks ago

Actually, upon further investigation, I realised that if you add a .sup file to your subtitles the audio track from the video will be gone if you use the Swiftfin player. Extremely weird, gonna open an issue when I have time. This was probably why my OPUS file couldn't play audio and has nothing to do with the codec.

Edit again: finally boiled it down to the fact that you cannot have a secondary audio source, or it will not play audio. Still not sure if it's a codec issue or just the fact that there is two audio sources, but an issue nonetheless.