2024-01-02, 04:25 PM
I am having a very hard time understanding what is going on with playback from my jellyfin server onto my chromecast 4k.
With any media I try, it lags a lot as if it were not loading data fast enough. When I look in the logs of the server, it is on direct play.
What's odd is that the same behavior happens both in jellyfin's client as well as in kodi with the kodi for jellyfin plugin in add-on mode, suggesting it could be something on the server.
However, on my firestick 4k (on another TV) it plays fine, suggesting it's not an issue with the server.
Also note that the chromecast in question plays 4k media from netflix, and I have tested the bandwidth from my server (from within the docker container) into another computer in the same AP as the chromecast and got 200mbps via iperf3. It looks like it is unlikely to be networking bottleneck.
The last piece of information which might be relevant: this wasn't the case in the past. Things used to work okay in this particular chromecast a few months ago.
Any help in understanding what is going on would be greatly appreciated.
Some info on my setup
Chromecast 4k
Jellyfin client version 0.16.1
Kodi version 20.2
Jellyfin for kodi add on version 0.7.11
fire stick 4k
Jellyfin client version 0.16.2
Kodi version 19.3
Jellyfin for kodi add on version 0.7.10
server
raspberry pi 4 8GB
networking: ethernet
Jellyfin version: 10.8.13 running via docker
storage: WD RedTM SA500 NAS SATA SSD 500GB (connected via USB 3.0)
Server logs from when playing on chromecast
server logs from when playing on firestick
With any media I try, it lags a lot as if it were not loading data fast enough. When I look in the logs of the server, it is on direct play.
What's odd is that the same behavior happens both in jellyfin's client as well as in kodi with the kodi for jellyfin plugin in add-on mode, suggesting it could be something on the server.
However, on my firestick 4k (on another TV) it plays fine, suggesting it's not an issue with the server.
Also note that the chromecast in question plays 4k media from netflix, and I have tested the bandwidth from my server (from within the docker container) into another computer in the same AP as the chromecast and got 200mbps via iperf3. It looks like it is unlikely to be networking bottleneck.
The last piece of information which might be relevant: this wasn't the case in the past. Things used to work okay in this particular chromecast a few months ago.
Any help in understanding what is going on would be greatly appreciated.
Some info on my setup
Chromecast 4k
Jellyfin client version 0.16.1
Kodi version 20.2
Jellyfin for kodi add on version 0.7.11
fire stick 4k
Jellyfin client version 0.16.2
Kodi version 19.3
Jellyfin for kodi add on version 0.7.10
server
raspberry pi 4 8GB
networking: ethernet
Jellyfin version: 10.8.13 running via docker
storage: WD RedTM SA500 NAS SATA SSD 500GB (connected via USB 3.0)
Server logs from when playing on chromecast
[15:08:08] [INF] [32] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for admin. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[15:08:08] [INF] [32] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile=AndroidTV-libVLC, Path=/data/tvshows/Young Sheldon (2017) [tvdbid-328724]/Season 02/Young.Sheldon.-.S02E15.-.A.Math.Emergency.and.Perky.Palms.WEBRip-720p.mkv, AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) media:/videos/c9994ee5-def1-c7f1-66c0-3938a344833f/stream.mkv?MediaSourceId=c9994ee5def1c7f166c03938a344833f&Static=true&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=1&SubtitleStreamIndex=2&api_key=<token>&SubtitleMethod=Embed&Tag=9248c83b8bb87f9242b719b8780490e8
[15:08:09] [INF] [34] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for admin. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[15:08:09] [INF] [34] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile=AndroidTV-ExoPlayer, Path=/data/tvshows/Young Sheldon (2017) [tvdbid-328724]/Season 02/Young.Sheldon.-.S02E15.-.A.Math.Emergency.and.Perky.Palms.WEBRip-720p.mkv, AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) media:/videos/c9994ee5-def1-c7f1-66c0-3938a344833f/stream.mkv?MediaSourceId=c9994ee5def1c7f166c03938a344833f&Static=true&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=1&SubtitleStreamIndex=2&api_key=<token>&SubtitleMethod=Embed&Tag=9248c83b8bb87f9242b719b8780490e8
[15:08:11] [INF] [32] Jellyfin.Plugin.KodiSyncQueue.EntryPoints.UserSyncNotification: Started user data sync
[15:08:11] [INF] [32] Jellyfin.Plugin.KodiSyncQueue.EntryPoints.UserSyncNotification: User Data Sync: User admin (9131f954beca4fca8fad1f64cf586301) posted 2 updates
[15:08:11] [INF] [32] Jellyfin.Plugin.KodiSyncQueue.EntryPoints.UserSyncNotification: Finished user data sync, taking 00:00:00.2920271
server logs from when playing on firestick
[16:05:18] [INF] [57] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for admin. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[16:05:18] [INF] [57] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile=AndroidTV-libVLC, Path=/data/tvshows/Young Sheldon (2017) [tvdbid-328724]/Season 02/Young.Sheldon.-.S02E15.-.A.Math.Emergency.and.Perky.Palms.WEBRip-720p.mkv, AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) media:/videos/c9994ee5-def1-c7f1-66c0-3938a344833f/stream.mkv?MediaSourceId=c9994ee5def1c7f166c03938a344833f&Static=true&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=1&SubtitleStreamIndex=2&api_key=<token>&SubtitleMethod=Embed&Tag=9248c83b8bb87f9242b719b8780490e8
[16:05:19] [INF] [47] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for admin. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[16:05:19] [INF] [47] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile=AndroidTV-ExoPlayer, Path=/data/tvshows/Young Sheldon (2017) [tvdbid-328724]/Season 02/Young.Sheldon.-.S02E15.-.A.Math.Emergency.and.Perky.Palms.WEBRip-720p.mkv, AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) media:/videos/c9994ee5-def1-c7f1-66c0-3938a344833f/stream.mkv?MediaSourceId=c9994ee5def1c7f166c03938a344833f&Static=true&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=1&SubtitleStreamIndex=2&api_key=<token>&SubtitleMethod=Embed&Tag=9248c83b8bb87f9242b719b8780490e8
[16:05:20] [INF] [44] Jellyfin.Plugin.KodiSyncQueue.EntryPoints.UserSyncNotification: Started user data sync
[16:05:21] [INF] [44] Jellyfin.Plugin.KodiSyncQueue.EntryPoints.UserSyncNotification: User Data Sync: User admin (9131f954beca4fca8fad1f64cf586301) posted 2 updates
[16:05:21] [INF] [44] Jellyfin.Plugin.KodiSyncQueue.EntryPoints.UserSyncNotification: Finished user data sync, taking 00:00:00.1731653