jellyfin-androidtv icon indicating copy to clipboard operation
jellyfin-androidtv copied to clipboard

Dolby TrueHD 2.0 playback never starts

Open solidsnake1298 opened this issue 1 year ago • 8 comments

Describe the bug

  1. Set audio output to "direct". No other audio setting appears to matter.
  2. Play any video with Dolby TrueHD 2.0

My device does not support Dolby TrueHD playback nor passthrough. So this should have triggered a transcode, but doesn't. Playback doesn't start, but the UI is still available and responsive. If I select a low max bit rate in the playback UI it will trigger a full transcode to AAC and play. If I change the audio output to "downmix to stereo" it will trigger an audio transcode to AAC and play.

If I playback 5.1 or 7.1 TrueHD content, it will immediately transcode the audio to AAC and play.

It appears that just 2.0 TrueHD doesn't trigger a transcode when audio output is set to "direct".

Logs

[2024-08-21 03:53:58.185 +00:00] [INF] [208] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "Chris". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2024-08-21 03:53:58.185 +00:00] [INF] [208] Jellyfin.Api.Helpers.MediaInfoHelper: RemoteClientBitrateLimit: 120000000, RemoteIP: "<CLIENT PUBLIC IPv6>", IsInLocalNetwork: True
[2024-08-21 03:53:58.310 +00:00] [INF] [213] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: Adding playback tracker : 722fedab350d3d62de384934adfceb34e256afd3-3a783413b0e344a0ad5622204ef4c275-3f0be8283bfdca57a7e98bc1fcf9ee56
[2024-08-21 03:53:58.310 +00:00] [INF] [213] Jellyfin.Plugin.PlaybackReporting.Data.PlaybackTracker: PlaybackTracker : Adding Start Event : 08/21/2024 03:53:58
[2024-08-21 03:53:58.310 +00:00] [INF] [213] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: Creating StartPlaybackTimer Task
[2024-08-21 03:53:58.310 +00:00] [INF] [293] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: StartPlaybackTimer : Entered
[2024-08-21 03:53:59.084 +00:00] [INF] [213] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: Processing playback tracker : "722fedab350d3d62de384934adfceb34e256afd3-3a783413b0e344a0ad5622204ef4c275-3f0be8283bfdca57a7e98bc1fcf9ee56"
[2024-08-21 03:54:18.310 +00:00] [INF] [214] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: session.RemoteEndPoint : "<CLIENT PUBLIC IPv6>"
[2024-08-21 03:54:18.310 +00:00] [INF] [214] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: StartPlaybackTimer : event_playing_id     = "3f0be8283bfdca57a7e98bc1fcf9ee56"
[2024-08-21 03:54:18.310 +00:00] [INF] [214] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: StartPlaybackTimer : event_user_id        = "3a783413b0e344a0ad5622204ef4c275"
[2024-08-21 03:54:18.310 +00:00] [INF] [214] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: StartPlaybackTimer : event_user_id_int    = 1
[2024-08-21 03:54:18.310 +00:00] [INF] [214] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: StartPlaybackTimer : session_playing_id   = "3f0be8283bfdca57a7e98bc1fcf9ee56"
[2024-08-21 03:54:18.310 +00:00] [INF] [214] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: StartPlaybackTimer : session_user_id      = "3a783413b0e344a0ad5622204ef4c275"
[2024-08-21 03:54:18.310 +00:00] [INF] [214] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: StartPlaybackTimer : play_method          = "DirectPlay"
[2024-08-21 03:54:18.310 +00:00] [INF] [214] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: StartPlaybackTimer : e.ClientName         = "Android TV"
[2024-08-21 03:54:18.310 +00:00] [INF] [214] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: StartPlaybackTimer : e.DeviceName         = "Basement"
[2024-08-21 03:54:18.310 +00:00] [INF] [214] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: StartPlaybackTimer : ItemName             = "FLCL - s01e01 - Fooly Cooly"
[2024-08-21 03:54:18.310 +00:00] [INF] [214] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: StartPlaybackTimer : ItemId               = "3f0be8283bfdca57a7e98bc1fcf9ee56"
[2024-08-21 03:54:18.310 +00:00] [INF] [214] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: StartPlaybackTimer : ItemType             = "Episode"
[2024-08-21 03:54:18.310 +00:00] [INF] [214] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: StartPlaybackTimer : All matches, playback registered
[2024-08-21 03:54:18.310 +00:00] [INF] [214] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: Playback tracker found, adding playback info : "722fedab350d3d62de384934adfceb34e256afd3-3a783413b0e344a0ad5622204ef4c275-3f0be8283bfdca57a7e98bc1fcf9ee56"
[2024-08-21 03:54:18.310 +00:00] [INF] [214] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: Saving playback tracking activity in DB
[2024-08-21 03:54:18.321 +00:00] [INF] [214] Jellyfin.Plugin.PlaybackReporting.EventMonitorEntryPoint: StartPlaybackTimer : Exited
[2024-08-21 03:54:27.582 +00:00] [INF] [293] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Android TV" "0.17.3" playing "Fooly Cooly". Stopped at "0" ms

FFmpeg logs

n/a

Media info of the file

s01e01
Container: mkv
Path: /media/storage2/testShows/FLCL/Season 01/s01e01.mkv
Size: 69 MB

Subtitle
Title: English - Default - Forced - PGSSUB
Language: eng
Codec: PGSSUB
AVC: No
Resolution: 1920x1080
Default: Yes
Forced: Yes
External: No

Video
Title: 1080p HEVC SDR
Codec: HEVC
AVC: No
Profile: Main 10
Level: 120
Resolution: 1920x1080
Aspect ratio: 16:9
Anamorphic: No
Interlaced: No
Framerate: 23.976025
Bitrate: 3844 kbps
Bit depth: 10 bit
Video range: SDR
Video range type: SDR
Color space: bt709
Color transfer: bt709
Color primaries: bt709
Pixel format: yuv420p10le
Ref frames: 1

Audio
Title: Stereo - Japanese - TRUEHD - Default
Language: jpn
Codec: TRUEHD
AVC: No
Layout: stereo
Channels: 2 ch
Sample rate: 48000 Hz
Bit depth: 24 bit
Default: Yes
Forced: No
External: No

Application version

0.17.3

Device information

Chromecast w/Google TV 4K

Android version

Android 12

Jellyfin server version

10.9.9

solidsnake1298 avatar Aug 21 '24 04:08 solidsnake1298

A forum user with a Sony Bravia XR-55A84K originally reported this problem.

https://forum.jellyfin.org/t-unable-to-play-shows-with-truehd-audio

solidsnake1298 avatar Aug 21 '24 07:08 solidsnake1298

Seems something similar is happening for me. I also have a Sony Bravia TV, though a different model. Here are the logs from the server: true-hd-2p0-stream-locking.log ...and here is the AndroidTV logcat output: Sony-BRAVIA-4K-VH22-Android-10_2024-09-04_215048.json ...and lastly the media info:

CautiousHero S01E01
Container: mkv
Path: /media/shows/Cautious Hero The Hero Is Overpowered but Overly Cautious/Season 1/CautiousHero S01E01.mkv
Size: 6274 MB

Subtitle
Title: Forced Only - English - PGSSUB
Language: eng
Codec: PGSSUB
AVC: No
Resolution: 1920x1080
Default: No
Forced: Yes
External: No

Audio
Title: Surround 5.1 - English - TRUEHD - Default
Language: eng
Codec: TRUEHD
AVC: No
Layout: 5.1
Channels: 6 ch
Bitrate: 1470 kbps
Sample rate: 48000 Hz
Bit depth: 24 bit
Default: Yes
Forced: No
External: No

Video
Title: 1080p H264 SDR
Codec: H264
AVC: Yes
Profile: High
Level: 41
Resolution: 1920x1080
Aspect ratio: 16:9
Anamorphic: No
Interlaced: No
Framerate: 23.976025
Bitrate: 37009 kbps
Bit depth: 8 bit
Video range: SDR
Video range type: SDR
Pixel format: yuv420p
Ref frames: 1
NAL: 4

Audio
Title: Surround 5.1 - English - Dolby Digital
Language: eng
Codec: AC3
AVC: No
Layout: 5.1
Channels: 6 ch
Bitrate: 448 kbps
Sample rate: 48000 Hz
Default: No
Forced: No
External: No

Audio
Title: Stereo - Japanese - TRUEHD
Language: jpn
Codec: TRUEHD
AVC: No
Layout: stereo
Channels: 2 ch
Bitrate: 811 kbps
Sample rate: 48000 Hz
Bit depth: 24 bit
Default: No
Forced: No
External: No

Audio
Title: Stereo - Japanese - Dolby Digital
Language: jpn
Codec: AC3
AVC: No
Layout: stereo
Channels: 2 ch
Bitrate: 192 kbps
Sample rate: 48000 Hz
Default: No
Forced: No
External: No

Subtitle
Title: English - PGSSUB
Language: eng
Codec: PGSSUB
AVC: No
Resolution: 1920x1080
Default: No
Forced: No
External: No

silentTeee avatar Sep 05 '24 02:09 silentTeee

Interesting you are having issues with TrueHD 5.1. I can play TrueHD 5.1 and 6.1 just fine on my end, it's just 2.0 that seems to be the problem for some reason.

I've converted these to Opus 2.0 128kbps for the time being but I'd much rather keep the original streams if possible.

genericbar avatar Sep 05 '24 07:09 genericbar

Oh no, what I did while generating those logs was start with the default audio, then cycle through the different embedded audio tracks. I was able to successfully switch to everything except the TrueHD 2.0/Stereo Japanese track, which would cause the player to hang.

silentTeee avatar Sep 05 '24 11:09 silentTeee

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.

If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or master branch, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.

This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.

jellyfin-bot avatar Jan 04 '25 03:01 jellyfin-bot

Keeping this issue alive as it's still occurring.

genericbar avatar Jan 04 '25 10:01 genericbar

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.

If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or master branch, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.

This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.

jellyfin-bot avatar May 05 '25 03:05 jellyfin-bot

Issue still occurring.

genericbar avatar May 05 '25 07:05 genericbar

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.

If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or master branch, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.

This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.

jellyfin-bot avatar Sep 05 '25 03:09 jellyfin-bot

Issue is still occurring

PeppersGhostRealm avatar Sep 19 '25 06:09 PeppersGhostRealm