2024-02-27, 08:53 AM
(This post was last modified: 2024-02-27, 08:54 AM by chimpfacts. Edited 1 time in total.)
(2024-02-27, 05:15 AM)TheDreadPirate Wrote: If it is only happening on a few videos, and if these videos are in MKV containers, we can try repackaging the videos without reencoding them.
Code:/usr/lib/jellyfin-ffmpeg/ffmpeg -fflags genpts -i "/path/to/video.mkv" -map 0:v -map 0:a -map 0:s -map_chapters 0 -c:v copy -c:a copy -c:s copy outputFile.mkv
I tried this on one of the problematic movies, it is marginally better but still the same issue occurs, same timestamps are buffering on different clients.
The below logs were what showed during the stream from the start, The "slow HTTP response" error shows even during streams with no issues so I didn't think that would be a problem.:
Code:
[19:47:22] [INF] [44] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for sc-jellyfin. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[19:48:33] [DBG] [44] Emby.Server.Implementations.Session.SessionWebSocketListener: Watching 1 WebSockets.
[19:48:21] [DBG] [44] Emby.Server.Implementations.Session.SessionWebSocketListener: Watching 1 WebSockets.
[19:48:32] [DBG] [26] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was not authenticated.
[19:48:23] [DBG] [41] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was successfully authenticated.
[19:48:09] [DBG] [3] Emby.Server.Implementations.Session.SessionWebSocketListener: Watching 1 WebSockets.
[19:48:31] [WRN] [38] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://tdgserv-docker:8096/Sessions/Playing/Progress to 192.168.0.231 in 0:00:00.7197194 with Status Code 204
[19:48:30] [DBG] [38] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was successfully authenticated.
[19:48:23] [WRN] [41] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://tdgserv-docker:8096/Sessions/Playing/Progress to 192.168.0.231 in 0:00:00.8785513 with Status Code 204
[19:48:13] [DBG] [45] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was successfully authenticated.
[19:48:13] [WRN] [45] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://tdgserv-docker:8096/Sessions/Playing/Progress to 192.168.0.231 in 0:00:00.7269776 with Status Code 204
[19:48:09] [DBG] [45] Emby.Server.Implementations.HttpServer.WebSocketConnection: WS 192.168.0.231 received message: {"MessageType": "KeepAlive", "MessageId": "00000000-0000-0000-0000-000000000000", "ServerId": null, "Data": null, "$type": "WebSocketMessage`1"}
[19:48:03] [DBG] [3] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was successfully authenticated.
[19:48:03] [WRN] [3] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://tdgserv-docker:8096/Sessions/Playing/Progress to 192.168.0.231 in 0:00:00.6462296 with Status Code 204
[19:48:02] [DBG] [25] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was not authenticated.
[19:47:57] [DBG] [41] Emby.Server.Implementations.Session.SessionWebSocketListener: Watching 1 WebSockets.
[19:47:53] [WRN] [25] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://tdgserv-docker:8096/Sessions/Playing/Progress to 192.168.0.231 in 0:00:00.6636813 with Status Code 204
[19:47:52] [DBG] [25] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was successfully authenticated.
[19:47:45] [DBG] [25] Emby.Server.Implementations.Session.SessionWebSocketListener: Watching 1 WebSockets.
[19:47:43] [WRN] [26] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://tdgserv-docker:8096/Sessions/Playing/Progress to 192.168.0.231 in 0:00:00.7044537 with Status Code 204
[19:47:42] [DBG] [26] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was successfully authenticated.
[19:47:39] [DBG] [38] Emby.Server.Implementations.HttpServer.WebSocketConnection: WS 192.168.0.231 received message: {"MessageType": "KeepAlive", "MessageId": "00000000-0000-0000-0000-000000000000", "ServerId": null, "Data": null, "$type": "WebSocketMessage`1"}
[19:47:33] [WRN] [22] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://tdgserv-docker:8096/Sessions/Playing/Progress to 192.168.0.231 in 0:00:00.7506389 with Status Code 204
[19:47:32] [DBG] [22] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was successfully authenticated.
[19:47:33] [DBG] [3] Emby.Server.Implementations.Session.SessionWebSocketListener: Watching 1 WebSockets.
[19:47:24] [WRN] [39] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://tdgserv-docker:8096/Sessions/Playing/Progress to 192.168.0.231 in 0:00:01.1178951 with Status Code 204
[19:47:32] [DBG] [22] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was not authenticated.
[19:47:24] [DBG] [3] Emby.Server.Implementations.Data.SqliteItemRepository: GetItemList query time (slow): 426.1208ms. Query: select type,data,StartDate,EndDate,ChannelId,IsMovie,IsSeries,EpisodeTitle,IsRepeat,CommunityRating,CustomRating,IndexNumber,IsLocked,PreferredMetadataLanguage,PreferredMetadataCountryCode,Width,Height,DateLastRefreshed,Name,Path,PremiereDate,Overview,ParentIndexNumber,ProductionYear,OfficialRating,ForcedSortName,RunTimeTicks,Size,DateCreated,DateModified,guid,Genres,ParentId,Audio,ExternalServiceId,IsInMixedFolder,DateLastSaved,LockedFields,Studios,Tags,TrailerTypes,OriginalTitle,PrimaryVersionId,DateLastMediaAdded,Album,CriticRating,IsVirtualItem,SeriesName,SeasonName,SeasonId,SeriesId,PresentationUniqueKey,InheritedParentalRatingValue,ExternalSeriesId,Tagline,ProviderIds,Images,ProductionLocations,ExtraIds,TotalBitrate,ExtraType,Artists,AlbumArtists,ExternalId,SeriesPresentationUniqueKey,ShowId,OwnerId from TypedBaseItems A where (Guid = @IncludeId0)
[19:47:23] [WRN] [44] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://tdgserv-docker:8096/Sessions/Playing to 192.168.0.231 in 0:00:00.9173265 with Status Code 204
[19:47:23] [DBG] [44] InfuseSync.EntryPoints.UserSyncManager: InfuseSync will save user data for item 2f9fe21a-3e81-3a76-fd8c-de3997c5e407 user ef7992a0-598f-42a7-88bc-0a5c58ff0bcf
[19:47:23] [DBG] [44] InfuseSync.EntryPoints.UserSyncManager: InfuseSync received user data for item 'Wonka' of type 'Movie' Guid '2f9fe21a-3e81-3a76-fd8c-de3997c5e407'
[19:47:22] [DBG] [39] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was successfully authenticated.
[19:47:22] [DBG] [25] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was not authenticated.
[19:47:22] [DBG] [44] Jellyfin.Api.Auth.CustomAuthenticationHandler: AuthenticationScheme: CustomAuthentication was successfully authenticated.
[19:47:22] [WRN] [44] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://tdgserv-docker:8096/Items/2f9fe21a3e813a76fd8cde3997c5e407/PlaybackInfo?UserId=ef7992a0598f42a788bc0a5c58ff0bcf&StartTimeTicks=0&IsPlayback=true&AutoOpenLiveStream=true&AudioStreamIndex=1&SubtitleStreamIndex=7&MediaSourceId=2f9fe21a3e813a76fd8cde3997c5e407&MaxStreamingBitrate=140000000 to 192.168.0.231 in 0:00:00.606381 with Status Code 200
[19:47:22] [INF] [44] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile=Jellyfin Media Player, Path=/media/Existing_Media/Movies/Wonka (2023)/Wonka.mkv, AudioStreamIndex=1, SubtitleStreamIndex=7 ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) media:/videos/2f9fe21a-3e81-3a76-fd8c-de3997c5e407/stream.mkv?MediaSourceId=2f9fe21a3e813a76fd8cde3997c5e407&Static=true&VideoCodec=h264&AudioCodec=truehd&AudioStreamIndex=1&SubtitleStreamIndex=7&api_key=<token>&SubtitleMethod=Embed&Tag=b04071adde95ee31ed5e5832d362aa16
[19:47:22] [DBG] [44] Jellyfin.Api.Helpers.MediaInfoHelper: DirectPlay Result for Profile: Jellyfin Media Player, Path: /media/Existing_Media/Movies/Wonka (2023)/Wonka.mkv, PlayMethod: DirectPlay, AudioStreamIndex: 1, SubtitleStreamIndex: 7, Reasons: 0
[19:47:22] [DBG] [44] Jellyfin.Api.Helpers.MediaInfoHelper: Profile: Jellyfin Media Player, Path: /media/Existing_Media/Movies/Wonka (2023)/Wonka.mkv, isEligibleForDirectPlay: True, isEligibleForDirectStream: False