2023-12-11, 01:08 PM
Hi everyone,
So, I have an issue. Whenever I'm direct playing an x265 HEVC HDR file to a client on my local network (AndroidTV apps in this case - tested in Jellyfin app with Exoplayer and externals like VLC and MPV, as well as the Kodi add-on) it will run for a few minutes (or even for an hour!) but at some point it will cause my ethernet port to altogether disconnect, pausing the playback and disconnecting the server from my router. The server is my Windows 11 PC with the recommended install. It's connected to the router through ethernet, the TV goes through WiFi 5. Transcoding works just fine, to all sorts of clients - its only direct play that causes the issue. Also, while direct playing my RAM and SSD (the one where Jellyfin is installed) get crazy - RAM goes to 100% and SSD can also do that. Would appreciate any help with this!
Here's a sample log:
[2023-12-11 09:44:19.274 +01:00] [INF] [16] Emby.Dlna.DlnaManager: No matching device profile found. The default will need to be used.
DeviceIdentification { FriendlyName: "KD-55XH9505", ModelNumber: "100", SerialNumber: null, ModelName: "MediaRenderer", ModelDescription: null, ModelUrl: "", Manufacturer: "Sony Corporation", ManufacturerUrl: "http://www.sony.net/", Headers: [] }
[2023-12-11 09:44:19.279 +01:00] [INF] [16] Emby.Dlna.Main.DlnaEntryPoint: DLNA Session created for "KD-55XH9505" - "MediaRenderer"
[2023-12-11 09:44:39.422 +01:00] [INF] [7] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.0.222" request
[2023-12-11 09:44:42.260 +01:00] [INF] [7] Jellyfin.Plugin.KodiSyncQueue.API.KodiSyncQueueController: Sync Requested for UserID: '"959bf6ffc60c4c0ea7af4cccb56da612"' with LastUpdateDT: '"2023-12-11T08:29:00z"'
[2023-12-11 09:44:42.330 +01:00] [INF] [7] Jellyfin.Plugin.KodiSyncQueue.API.KodiSyncQueueController: Added: 0, Removed: 0, Updated: 0, Changed User Data: 1
[2023-12-11 09:44:42.331 +01:00] [INF] [7] Jellyfin.Plugin.KodiSyncQueue.API.KodiSyncQueueController: Request Finished Taking "00:00:00.0689190"
[2023-12-11 09:45:15.306 +01:00] [INF] [9] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "Andrzej". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2023-12-11 09:45:15.333 +01:00] [INF] [9] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile="Kodi", Path="G:\Video\Filmy\Past Lives (2023)\Past Lives (2023) [imdbid-tt13238346] - [WEBDL-2160p][DV HDR10][EAC3 Atmos 5.1][h265].mkv", AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) "mediavideos/37aaf91f-f09c-d85d-00d5-cf3f38901213/stream.mkv?MediaSourceId=37aaf91ff09cd85d00d5cf3f38901213&Static=true&VideoCodec=hevc&AudioCodec=eac3&AudioStreamIndex=1&api_key=<token>&Tag=45be1af94f24ebad93bbe6e8c503435b"
[2023-12-11 09:45:16.413 +01:00] [INF] [7] Jellyfin.Plugin.KodiSyncQueue.EntryPoints.UserSyncNotification: Started user data sync
[2023-12-11 09:45:16.449 +01:00] [INF] [7] Jellyfin.Plugin.KodiSyncQueue.EntryPoints.UserSyncNotification: User Data Sync: User "Andrzej" ("959bf6ffc60c4c0ea7af4cccb56da612") posted 2 updates
[2023-12-11 09:45:16.451 +01:00] [INF] [7] Jellyfin.Plugin.KodiSyncQueue.EntryPoints.UserSyncNotification: Finished user data sync, taking "00:00:00.0373044"
[2023-12-11 09:45:28.775 +01:00] [INF] [25] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets.
[2023-12-11 09:45:40.788 +01:00] [INF] [22] Emby.Server.Implementations.Session.SessionWebSocketListener: Lost 1 WebSockets.
[2023-12-11 09:47:54.935 +01:00] [WRN] [18] Jellyfin.Server.Middleware.ExceptionMiddleware: The response has already started, the exception middleware will not be executed.
[2023-12-11 09:47:55.031 +01:00] [ERR] [18] Microsoft.AspNetCore.Server.Kestrel: Connection id ""0HMVQ4LCMCJ6D"", Request id ""0HMVQ4LCMCJ6D:00000002"": An unhandled exception was thrown by the application.
System.IO.IOException: Insufficient quota to complete the requested service.
at Microsoft.Win32.SafeHandles.SafeFileHandle.OverlappedValueTaskSource.GetResult(Int16 token)
at Microsoft.AspNetCore.Http.StreamCopyOperationInternal.CopyToAsync(Stream source, Stream destination, Nullable
at Microsoft.AspNetCore.Http.SendFileResponseExtensions.SendFileAsyncCore(HttpResponse response, String fileName, Int64 offset, Nullable
[2023-12-11 09:48:53.558 +01:00] [WRN] [23] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://192.168.0.239:8096/Sessions/Playing/Progress" to "192.168.0.222" in 0:00:00.9234104 with Status Code 204
[2023-12-11 09:49:01.578 +01:00] [INF] [9] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.0.222" closed
[2023-12-11 09:49:04.557 +01:00] [INF] [12] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Kodi" "0.7.11 py3" playing "Past Lives". Stopped at "214000" ms
So, I have an issue. Whenever I'm direct playing an x265 HEVC HDR file to a client on my local network (AndroidTV apps in this case - tested in Jellyfin app with Exoplayer and externals like VLC and MPV, as well as the Kodi add-on) it will run for a few minutes (or even for an hour!) but at some point it will cause my ethernet port to altogether disconnect, pausing the playback and disconnecting the server from my router. The server is my Windows 11 PC with the recommended install. It's connected to the router through ethernet, the TV goes through WiFi 5. Transcoding works just fine, to all sorts of clients - its only direct play that causes the issue. Also, while direct playing my RAM and SSD (the one where Jellyfin is installed) get crazy - RAM goes to 100% and SSD can also do that. Would appreciate any help with this!
Here's a sample log:
[2023-12-11 09:44:19.274 +01:00] [INF] [16] Emby.Dlna.DlnaManager: No matching device profile found. The default will need to be used.
DeviceIdentification { FriendlyName: "KD-55XH9505", ModelNumber: "100", SerialNumber: null, ModelName: "MediaRenderer", ModelDescription: null, ModelUrl: "", Manufacturer: "Sony Corporation", ManufacturerUrl: "http://www.sony.net/", Headers: [] }
[2023-12-11 09:44:19.279 +01:00] [INF] [16] Emby.Dlna.Main.DlnaEntryPoint: DLNA Session created for "KD-55XH9505" - "MediaRenderer"
[2023-12-11 09:44:39.422 +01:00] [INF] [7] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.0.222" request
[2023-12-11 09:44:42.260 +01:00] [INF] [7] Jellyfin.Plugin.KodiSyncQueue.API.KodiSyncQueueController: Sync Requested for UserID: '"959bf6ffc60c4c0ea7af4cccb56da612"' with LastUpdateDT: '"2023-12-11T08:29:00z"'
[2023-12-11 09:44:42.330 +01:00] [INF] [7] Jellyfin.Plugin.KodiSyncQueue.API.KodiSyncQueueController: Added: 0, Removed: 0, Updated: 0, Changed User Data: 1
[2023-12-11 09:44:42.331 +01:00] [INF] [7] Jellyfin.Plugin.KodiSyncQueue.API.KodiSyncQueueController: Request Finished Taking "00:00:00.0689190"
[2023-12-11 09:45:15.306 +01:00] [INF] [9] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for "Andrzej". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[2023-12-11 09:45:15.333 +01:00] [INF] [9] Jellyfin.Api.Helpers.MediaInfoHelper: StreamBuilder.BuildVideoItem( Profile="Kodi", Path="G:\Video\Filmy\Past Lives (2023)\Past Lives (2023) [imdbid-tt13238346] - [WEBDL-2160p][DV HDR10][EAC3 Atmos 5.1][h265].mkv", AudioStreamIndex=null, SubtitleStreamIndex=null ) => ( PlayMethod=DirectPlay, TranscodeReason=0 ) "mediavideos/37aaf91f-f09c-d85d-00d5-cf3f38901213/stream.mkv?MediaSourceId=37aaf91ff09cd85d00d5cf3f38901213&Static=true&VideoCodec=hevc&AudioCodec=eac3&AudioStreamIndex=1&api_key=<token>&Tag=45be1af94f24ebad93bbe6e8c503435b"
[2023-12-11 09:45:16.413 +01:00] [INF] [7] Jellyfin.Plugin.KodiSyncQueue.EntryPoints.UserSyncNotification: Started user data sync
[2023-12-11 09:45:16.449 +01:00] [INF] [7] Jellyfin.Plugin.KodiSyncQueue.EntryPoints.UserSyncNotification: User Data Sync: User "Andrzej" ("959bf6ffc60c4c0ea7af4cccb56da612") posted 2 updates
[2023-12-11 09:45:16.451 +01:00] [INF] [7] Jellyfin.Plugin.KodiSyncQueue.EntryPoints.UserSyncNotification: Finished user data sync, taking "00:00:00.0373044"
[2023-12-11 09:45:28.775 +01:00] [INF] [25] Emby.Server.Implementations.Session.SessionWebSocketListener: Sending ForceKeepAlive message to 1 inactive WebSockets.
[2023-12-11 09:45:40.788 +01:00] [INF] [22] Emby.Server.Implementations.Session.SessionWebSocketListener: Lost 1 WebSockets.
[2023-12-11 09:47:54.935 +01:00] [WRN] [18] Jellyfin.Server.Middleware.ExceptionMiddleware: The response has already started, the exception middleware will not be executed.
[2023-12-11 09:47:55.031 +01:00] [ERR] [18] Microsoft.AspNetCore.Server.Kestrel: Connection id ""0HMVQ4LCMCJ6D"", Request id ""0HMVQ4LCMCJ6D:00000002"": An unhandled exception was thrown by the application.
System.IO.IOException: Insufficient quota to complete the requested service.
at Microsoft.Win32.SafeHandles.SafeFileHandle.OverlappedValueTaskSource.GetResult(Int16 token)
at Microsoft.AspNetCore.Http.StreamCopyOperationInternal.CopyToAsync(Stream source, Stream destination, Nullable
1 count, Int32 bufferSize, CancellationToken cancel)
at Microsoft.AspNetCore.Http.SendFileFallback.SendFileAsync(Stream destination, String filePath, Int64 offset, Nullable
1 count, CancellationToken cancellationToken)at Microsoft.AspNetCore.Http.SendFileResponseExtensions.SendFileAsyncCore(HttpResponse response, String fileName, Int64 offset, Nullable
1 count, CancellationToken cancellationToken)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResultFilterAsync>g__Awaited|30_0[TFilter,TFilterAsync](ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResultExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.ResultNext[TFilter,TFilterAsync](State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeResultFilters>g__Awaited|28_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.<Invoke>g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Jellyfin.Server.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager)
at Jellyfin.Server.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager)
at Jellyfin.Server.Middleware.IpBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager)
at Jellyfin.Server.Middleware.LanFilteringMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Jellyfin.Server.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Jellyfin.Server.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext)
at Jellyfin.Server.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
at Jellyfin.Server.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager)
at Jellyfin.Server.Middleware.ExceptionMiddleware.Invoke(HttpContext context)
at Jellyfin.Server.Middleware.ExceptionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Builder.Extensions.MapMiddleware.InvokeCore(HttpContext context, PathString matchedPath, PathString remainingPath)
at Jellyfin.Server.Middleware.BaseUrlRedirectionMiddleware.Invoke(HttpContext httpContext, IServerConfigurationManager serverConfigurationManager)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.HttpProtocol.ProcessRequests[TContext](IHttpApplication
1 application)[2023-12-11 09:48:53.558 +01:00] [WRN] [23] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from "http://192.168.0.239:8096/Sessions/Playing/Progress" to "192.168.0.222" in 0:00:00.9234104 with Status Code 204
[2023-12-11 09:49:01.578 +01:00] [INF] [9] Emby.Server.Implementations.HttpServer.WebSocketManager: WS "192.168.0.222" closed
[2023-12-11 09:49:04.557 +01:00] [INF] [12] Emby.Server.Implementations.Session.SessionManager: Playback stopped reported by app "Kodi" "0.7.11 py3" playing "Past Lives". Stopped at "214000" ms