Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple TV - Fully-compatible video stutters and drops keyframes #929

Open
buresdv opened this issue Nov 26, 2023 · 5 comments
Open

Apple TV - Fully-compatible video stutters and drops keyframes #929

buresdv opened this issue Nov 26, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@buresdv
Copy link

buresdv commented Nov 26, 2023

Describe the bug

I have an Apple TV connected via ethernet. I'm trying to play the following video:

Format                                   : Matroska
Format version                           : Version 4
File size                                : 4.83 GiB
Duration                                 : 1 h 52 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 6 136 kb/s
Frame rate                               : 23.976 FPS
Writing application                      : Lavf58.76.100
Writing library                          : Lavf58.76.100
ErrorDetectionType                       : Per level 1

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main@L4@Main
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 1 h 52 min
Bit rate                                 : 24.9 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 0)
Bit depth                                : 8 bits
Bits/(Pixel*Frame)                       : 0.501
Stream size                              : 19.6 GiB
Title                                    : MPEG-4 AVC Video / 24920 kbps / 1080p / 23.976 fps / 16:9 / High Profile 4.1
Writing library                          : Lavc58.134.100 hevc_vaapi
Language                                 : English
Default                                  : Yes
Forced                                   : No

According to playback info, the video is played natively, with no transcoding. The network speed between the Apple TV and the server is ~500Mb/s.

Still, the playback stutters often and drops a large amount of keyframes, which results in a gray screen.

This happens only on the Apple TV; I have tested playing the video on a MacBook Air M1, iPhone 12, iPad Air M1 and iPhone 15 Pro, and they all play very smoothly, with no stuttering or dropped keyframes, so this is exclusively an Apple TV issue.

Jellyfin logs for this playback:

[11:17:00] [INF] [170] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile=Anonymous Profile, Path=/data/movies/Test Movie.mkv, AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) media:/videos/cb552ffa-f735-9e4c-efe9-44d888c36ec7/stream.mkv?MediaSourceId=cb552ffaf7359e4cefe944d888c36ec7&Static=true&VideoCodec=hevc&AudioCodec=dts&AudioStreamIndex=2&api_key=<token>&Tag=d2260e3eacce64dabc2e83fea0e5674b
[11:17:00] [INF] [10] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for User. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[11:17:00] [INF] [10] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile=Anonymous Profile, Path=/data/movies/Test Movie.mkv, AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) media:/videos/cb552ffa-f735-9e4c-efe9-44d888c36ec7/stream.mkv?

Video of the problem:
https://streamable.com/lr1re2

Switching to "Native Player" in Experimental settings makes the video not load at all.

Application version

1.0.1 (70)

Where did you install the app from?

App Store

Device information

Apple TV 4K 128GB (2022)

OS version

tvOS 17.1 (21K69)

Jellyfin server version

10.8.12

@buresdv buresdv added the bug Something isn't working label Nov 26, 2023
@justinstclair
Copy link

I have a similar issue.
On videos where the native player works the stuttering also goes away.

@fabienengels
Copy link

Same problem with Jellyfin 10.8.13.
Native player : no playback issue but I loose the ability to choose the subtitles
Swiftin : playback issue but I can choose subtitles

@torrinworx
Copy link

Experiencing the same issue on multiple apple tvs, even appletv 4k

@taylorhadden
Copy link

Same here. All with an Ethernet hardline.

@SamHeuves
Copy link

Me too, any fixes or work arounds?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants