Jellyfin Forum
Jellyfin crashing - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Jellyfin crashing (/t-jellyfin-crashing--11571)



Jellyfin crashing - jellyyllej - 2025-04-06

I sometimes get docker jellyfin to crash, the only thing I see is error like below.

Code:
Server version
10.10.3
Web version
10.10.3
Build version
10.10.3

Code:
[13:14:48] [INF] [192] MediaBrowser.MediaEncoding.Attachments.AttachmentExtractor: ffmpeg attachment extraction completed for file:"" to /cache/attachments/2a91df031acae6ee12199bdacfb01687
[13:14:48] [INF] [192] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -f matroska -init_hw_device cuda=cu:0 -filter_hw_device cu -hwaccel cuda -hwaccel_output_format cuda -noautorotate -hwaccel_flags +unsafe_output -threads 1 -canvas_size 1920x1080 -i file:"" -noautoscale -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:0 -codec:v:0 h264_nvenc -preset p1 -b:v 25018872 -maxrate 25018872 -bufsize 50037744 -profile:v:0 high -g:v:0 72 -keyint_min:v:0 72 -filter_complex "[0:4]scale,scale=1920:1080:fast_bilinear,format=yuva420p,hwupload=derive_device=cuda[sub];[0:0]setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_cuda=format=yuv420p[main];[main][sub]overlay_cuda=eof_action=pass:repeatlast=0" -start_at_zero -codec:a:0 libfdk_aac -ac 2 -ab 256000 -af "volume=2" -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "3492e36d3bd80c4964e92c42ffa71def-1.mp4" -start_number 0 -hls_segment_filename "/cache/transcodes/3492e36d3bd80c4964e92c42ffa71def%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/cache/transcodes/3492e36d3bd80c4964e92c42ffa71def.m3u8"
[13:14:48] [ERR] [95] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: FFmpeg exited with code 187
[13:14:48] [ERR] [95] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL GET /videos/2a91df03-1aca-e6ee-1219-9bdacfb01687/hls1/main/-1.mp4.
MediaBrowser.Common.FfmpegException: FFmpeg exited with code 187
  at MediaBrowser.MediaEncoding.Transcoding.TranscodeManager.StartFfMpeg(StreamState state, String outputPath, String commandLineArguments, Guid userId, TranscodingJobType transcodingJobType, CancellationTokenSource cancellationTokenSource, String workingDirectory)
  at Jellyfin.Api.Controllers.DynamicHlsController.GetDynamicSegment(StreamingRequestDto streamingRequest, Int32 segmentId)
  at Jellyfin.Api.Controllers.DynamicHlsController.GetHlsVideoSegment(Guid itemId, String playlistId, Int32 segmentId, String container, Int64 runtimeTicks, Int64 actualSegmentLengthTicks, Nullable`1 static, String params, String tag, String deviceProfileId, String playSessionId, String segmentContainer, Nullable`1 segmentLength, Nullable`1 minSegments, String mediaSourceId, String deviceId, String audioCodec, Nullable`1 enableAutoStreamCopy, Nullable`1 allowVideoStreamCopy, Nullable`1 allowAudioStreamCopy, Nullable`1 breakOnNonKeyFrames, Nullable`1 audioSampleRate, Nullable`1 maxAudioBitDepth, Nullable`1 audioBitRate, Nullable`1 audioChannels, Nullable`1 maxAudioChannels, String profile, String level, Nullable`1 framerate, Nullable`1 maxFramerate, Nullable`1 copyTimestamps, Nullable`1 startTimeTicks, Nullable`1 width, Nullable`1 height, Nullable`1 maxWidth, Nullable`1 maxHeight, Nullable`1 videoBitRate, Nullable`1 subtitleStreamIndex, Nullable`1 subtitleMethod, Nullable`1 maxRefFrames, Nullable`1 maxVideoBitDepth, Nullable`1 requireAvc, Nullable`1 deInterlace, Nullable`1 requireNonAnamorphic, Nullable`1 transcodingMaxAudioChannels, Nullable`1 cpuCoreLimit, String liveStreamId, Nullable`1 enableMpegtsM2TsMode, String videoCodec, String subtitleCodec, String transcodeReasons, Nullable`1 audioStreamIndex, Nullable`1 videoStreamIndex, Nullable`1 context, Dictionary`2 streamOptions, Boolean enableAudioVbrEncoding, Boolean alwaysBurnInSubtitleWhenTranscoding)
  at lambda_method846(Closure, Object)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker 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 Jellyfin.Api.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager)
  at Jellyfin.Api.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager)
  at Jellyfin.Api.Middleware.IPBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager)
  at Jellyfin.Api.Middleware.LanFilteringMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager)
  at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
  at Jellyfin.Api.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.Api.Middleware.RobotsRedirectionMiddleware.Invoke(HttpContext httpContext)
  at Jellyfin.Api.Middleware.LegacyEmbyRouteRewriteMiddleware.Invoke(HttpContext httpContext)
  at Microsoft.AspNetCore.ResponseCompression.ResponseCompressionMiddleware.InvokeCore(HttpContext context)
  at Jellyfin.Api.Middleware.ResponseTimeMiddleware.Invoke(HttpContext context, IServerConfigurationManager serverConfigurationManager)
  at Jellyfin.Api.Middleware.ExceptionMiddleware.Invoke(HttpContext context)
[13:14:49] [INF] [192] Jellyfin.Api.Helpers.MediaInfoHelper: User policy for bb. EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
[13:14:49] [INF] [192] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: Deleting partial stream file(s) /cache/transcodes/3492e36d3bd80c4964e92c42ffa71def.m3u8
[13:14:49] [INF] [52] Jellyfin.Api.Controllers.DynamicHlsController: Current HLS implementation doesn't support non-keyframe breaks but one is requested, ignoring that request
[13:14:49] [INF] [52] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -probesize 1G -f matroska -init_hw_device cuda=cu:0 -filter_hw_device cu -hwaccel cuda -hwaccel_output_format cuda -noautorotate -hwaccel_flags +unsafe_output -threads 1 -canvas_size 1920x1080 -i file:"" -noautoscale -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -map -0:0 -codec:v:0 h264_nvenc -preset p1 -b:v 25018872 -maxrate 25018872 -bufsize 50037744 -profile:v:0 high -g:v:0 72 -keyint_min:v:0 72 -filter_complex "[0:4]scale,scale=1920:1080:fast_bilinear,format=yuva420p,hwupload=derive_device=cuda[sub];[0:0]setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale_cuda=format=yuv420p[main];[main][sub]overlay_cuda=eof_action=pass:repeatlast=0" -start_at_zero -codec:a:0 libfdk_aac -ac 2 -ab 256000 -af "volume=2" -copyts -avoid_negative_ts disabled -max_muxing_queue_size 2048 -f hls -max_delay 5000000 -hls_time 3 -hls_segment_type fmp4 -hls_fmp4_init_filename "4a8b1cbba27cce07388f24447e107073-1.mp4" -start_number 0 -hls_segment_filename "/cache/transcodes/4a8b1cbba27cce07388f24447e107073%d.mp4" -hls_playlist_type vod -hls_list_size 0 -y "/cache/transcodes/4a8b1cbba27cce07388f24447e107073.m3u8"
[13:14:49] [ERR] [52] MediaBrowser.MediaEncoding.Transcoding.TranscodeManager: FFmpeg exited with code 187
[13:14:49] [ERR] [52] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL GET /videos/2a91df03-1aca-e6ee-1219-9bdacfb01687/hls1/main/-1.mp4.
MediaBrowser.Common.FfmpegException: FFmpeg exited with code 187
  at MediaBrowser.MediaEncoding.Transcoding.TranscodeManager.StartFfMpeg(StreamState state, String outputPath, String commandLineArguments, Guid userId, TranscodingJobType transcodingJobType, CancellationTokenSource cancellationTokenSource, String workingDirectory)
  at Jellyfin.Api.Controllers.DynamicHlsController.GetDynamicSegment(StreamingRequestDto streamingRequest, Int32 segmentId)
  at Jellyfin.Api.Controllers.DynamicHlsController.GetHlsVideoSegment(Guid itemId, String playlistId, Int32 segmentId, String container, Int64 runtimeTicks, Int64 actualSegmentLengthTicks, Nullable`1 static, String params, String tag, String deviceProfileId, String playSessionId, String segmentContainer, Nullable`1 segmentLength, Nullable`1 minSegments, String mediaSourceId, String deviceId, String audioCodec, Nullable`1 enableAutoStreamCopy, Nullable`1 allowVideoStreamCopy, Nullable`1 allowAudioStreamCopy, Nullable`1 breakOnNonKeyFrames, Nullable`1 audioSampleRate, Nullable`1 maxAudioBitDepth, Nullable`1 audioBitRate, Nullable`1 audioChannels, Nullable`1 maxAudioChannels, String profile, String level, Nullable`1 framerate, Nullable`1 maxFramerate, Nullable`1 copyTimestamps, Nullable`1 startTimeTicks, Nullable`1 width, Nullable`1 height, Nullable`1 maxWidth, Nullable`1 maxHeight, Nullable`1 videoBitRate, Nullable`1 subtitleStreamIndex, Nullable`1 subtitleMethod, Nullable`1 maxRefFrames, Nullable`1 maxVideoBitDepth, Nullable`1 requireAvc, Nullable`1 deInterlace, Nullable`1 requireNonAnamorphic, Nullable`1 transcodingMaxAudioChannels, Nullable`1 cpuCoreLimit, String liveStreamId, Nullable`1 enableMpegtsM2TsMode, String videoCodec, String subtitleCodec, String transcodeReasons, Nullable`1 audioStreamIndex, Nullable`1 videoStreamIndex, Nullable`1 context, Dictionary`2 streamOptions, Boolean enableAudioVbrEncoding, Boolean alwaysBurnInSubtitleWhenTranscoding)
  at lambda_method846(Closure, Object)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
  at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker 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 Jellyfin.Api.Middleware.ServerStartupMessageMiddleware.Invoke(HttpContext httpContext, IServerApplicationHost serverApplicationHost, ILocalizationManager localizationManager)
  at Jellyfin.Api.Middleware.WebSocketHandlerMiddleware.Invoke(HttpContext httpContext, IWebSocketManager webSocketManager)
  at Jellyfin.Api.Middleware.IPBasedAccessValidationMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager)
  at Jellyfin.Api.Middleware.LanFilteringMiddleware.Invoke(HttpContext httpContext, INetworkManager networkManager, IServerConfigurationManager serverConfigurationManager)
  at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
  at Jellyfin.Api.Middleware.QueryStringDecodingMiddleware.Invoke(HttpContext httpContext)
  at Swashbuckle.AspNetCore.ReDoc.ReDocMiddleware.Invoke(HttpContext httpContext)
  at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)

Any suggestions on what's wrong?


RE: Jellyfin crashing - TheDreadPirate - 2025-04-06

When you say Jellyfin crashes, I'm assuming you mean that you can't get videos to play and you're not talking about the server completely crashing and restarting.

Can you share your ffmpeg logs? In the same directory with the logs you shared there will be ffmpeg logs named "FFmpeg.Transcode<really long string>". Share one of those via privatebin.net.

Also, what are your hardware specs? And what distro is the host running?

Our documentation for setting up Nvidia GPUs with Docker is linked below.

https://jellyfin.org/docs/general/administration/hardware-acceleration/nvidia/#configure-with-linux-virtualization


RE: Jellyfin crashing - jellyyllej - 2025-04-06

OS:
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

hardware dual: Intel® Xeon® Gold 6240 CPU @ 2.60GHz
    791171712 K total memory
    220687920 K used memory
    55095408 K active memory
    605095104 K inactive memory
    105606576 K free memory
      1610400 K buffer memory
    470335456 K swap cache
      1000444 K total swap
      1000440 K used swap
            4 K free swap
    777892640 non-nice user cpu ticks
    173511611 nice user cpu ticks
    225668725 system cpu ticks
  11457776287 idle cpu ticks
    55620540 IO-wait cpu ticks
            0 IRQ cpu ticks
      7466003 softirq cpu ticks
            0 stolen cpu ticks
            0 non-nice guest cpu ticks
            0 nice guest cpu ticks
  5436430379 K paged in
  40662622141 K paged out
        82833 pages swapped in
      527958 pages swapped out
  26338065287 interrupts
134834445704 CPU context switches
  1742188318 boot time
    23528814 forks

d8:00.0 VGA compatible controller: NVIDIA Corporation GA102 [GeForce RTX 3090] (rev a1)


Code:
docker run -dt \
--name jellyfin \
--gpus=all \
--net=host \
--volume /A:/config \
--volume /B:/cache \
--mount type=bind,source=/mnt/A \
--mount type=bind,source=/mnt/B \
--restart=unless-stopped \
jellyfin/jellyfin

I pass through all GPU, that was in the documentation

hardware transcoding
h264, hevc, mpeg2, mpeg4, vc1, vp8, vp9, hvec 10bit, vp9 10bit, hevc rext 8/10bit, hevc rext 12bi

no trickplay hardware decoding


Code:
/Documents/jellyfin/log/FFmpeg.Transcode-2025-04-06_13-14-49_2a91df031acae6ee12199bdacfb01687_328cfcb5.log:17:[AVHWDeviceContext @ 0x56224ed6b240] cu->cuInit(0) failed -> CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
/Documents/jellyfin/log/FFmpeg.Transcode-2025-04-06_13-14-49_2a91df031acae6ee12199bdacfb01687_328cfcb5.log:19:Failed to set value 'cuda=cu:0' for option 'init_hw_device': Generic error in an external library
/Documents/jellyfin/log/FFmpeg.Transcode-2025-04-06_13-14-49_2a91df031acae6ee12199bdacfb01687_328cfcb5.log:20:Error parsing global options: Generic error in an external library
/Documents/jellyfin/log/FFmpeg.Transcode-2025-04-06_13-14-17_2ec9abfbdc57c7bbe5e046f992b2bba5_703d49e9.log:17:[AVHWDeviceContext @ 0x55587a480140] cu->cuInit(0) failed -> CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
/Documents/jellyfin/log/FFmpeg.Transcode-2025-04-06_13-14-17_2ec9abfbdc57c7bbe5e046f992b2bba5_703d49e9.log:19:Failed to set value 'cuda=cu:0' for option 'init_hw_device': Generic error in an external library
/Documents/jellyfin/log/FFmpeg.Transcode-2025-04-06_13-14-17_2ec9abfbdc57c7bbe5e046f992b2bba5_703d49e9.log:20:Error parsing global options: Generic error in an external library
/Documents/jellyfin/log/FFmpeg.Transcode-2025-04-06_13-14-16_2ec9abfbdc57c7bbe5e046f992b2bba5_310d3bf4.log:17:[AVHWDeviceContext @ 0x55ff9979a140] cu->cuInit(0) failed -> CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
/Documents/jellyfin/log/FFmpeg.Transcode-2025-04-06_13-14-16_2ec9abfbdc57c7bbe5e046f992b2bba5_310d3bf4.log:19:Failed to set value 'cuda=cu:0' for option 'init_hw_device': Generic error in an external library
/Documents/jellyfin/log/FFmpeg.Transcode-2025-04-06_13-14-16_2ec9abfbdc57c7bbe5e046f992b2bba5_310d3bf4.log:20:Error parsing global options: Generic error in an external library
/Documents/jellyfin/log/FFmpeg.Transcode-2025-04-06_13-14-49_2a91df031acae6ee12199bdacfb01687_da315118.log:17:[AVHWDeviceContext @ 0x564be1ab1240] cu->cuInit(0) failed -> CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
/Documents/jellyfin/log/FFmpeg.Transcode-2025-04-06_13-14-49_2a91df031acae6ee12199bdacfb01687_da315118.log:19:Failed to set value 'cuda=cu:0' for option 'init_hw_device': Generic error in an external library
/Documents/jellyfin/log/FFmpeg.Transcode-2025-04-06_13-14-49_2a91df031acae6ee12199bdacfb01687_da315118.log:20:Error parsing global options: Generic error in an external library
/Documents/jellyfin/log/FFmpeg.Transcode-2025-04-06_13-14-17_2ec9abfbdc57c7bbe5e046f992b2bba5_96700bfa.log:17:[AVHWDeviceContext @ 0x558bd8d59140] cu->cuInit(0) failed -> CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
/Documents/jellyfin/log/FFmpeg.Transcode-2025-04-06_13-14-17_2ec9abfbdc57c7bbe5e046f992b2bba5_96700bfa.log:19:Failed to set value 'cuda=cu:0' for option 'init_hw_device': Generic error in an external library
/Documents/jellyfin/log/FFmpeg.Transcode-2025-04-06_13-14-17_2ec9abfbdc57c7bbe5e046f992b2bba5_96700bfa.log:20:Error parsing global options: Generic error in an external library
/Documents/jellyfin/log/FFmpeg.Transcode-2025-04-06_13-14-48_2a91df031acae6ee12199bdacfb01687_94c8a049.log:17:[AVHWDeviceContext @ 0x56132808a240] cu->cuInit(0) failed -> CUDA_ERROR_NO_DEVICE: no CUDA-capable device is detected
/Documents/jellyfin/log/FFmpeg.Transcode-2025-04-06_13-14-48_2a91df031acae6ee12199bdacfb01687_94c8a049.log:19:Failed to set value 'cuda=cu:0' for option 'init_hw_device': Generic error in an external library
/Documents/jellyfin/log/FFmpeg.Transcode-2025-04-06_13-14-48_2a91df031acae6ee12199bdacfb01687_94c8a049.log:20:Error parsing global options: Generic error in an external library
/Documents/jellyfin/log/log_20250405.log:73:[2025-04-05 01:13:08.903 +00:00] [INF] [26] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250405.log:112:[2025-04-05 01:51:18.670 +00:00] [INF] [136] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250405.log:177:[2025-04-05 02:31:39.414 +00:00] [INF] [161] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250405.log:449:[2025-04-05 05:25:42.876 +00:00] [INF] [126] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250405.log:658:[2025-04-05 08:09:15.448 +00:00] [INF] [15] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250405.log:697:[2025-04-05 08:45:15.789 +00:00] [INF] [108] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250405.log:738:[2025-04-05 09:26:40.363 +00:00] [INF] [96] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250405.log:775:[2025-04-05 10:04:58.831 +00:00] [INF] [139] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250405.log:881:[2025-04-05 11:52:00.414 +00:00] [ERR] [145] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: ffmpeg image extraction failed for ""
/Documents/jellyfin/log/log_20250405.log:882:[2025-04-05 11:52:00.433 +00:00] [ERR] [145] Jellyfin.Server.Implementations.Trickplay.TrickplayManager: Error creating trickplay images.
/Documents/jellyfin/log/log_20250405.log:883:MediaBrowser.Common.FfmpegException: ffmpeg image extraction failed for /usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -threads 1 -i file:"" -an -sn -vf "fps=0.10000000149011612,setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*(a*sar))\,320)/2)*2:trunc(ow/(a*sar)/2)*2,format=yuv420p" -threads 1 -c:v mjpeg -qscale:v 4 -fps_mode passthrough -f image2 "/tmp/jellyfin/cb1f3eb937764e12b5061dd324899850/%08d.jpg"
/Documents/jellyfin/log/log_20250405.log:887:[2025-04-05 11:52:00.452 +00:00] [INF] [145] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250405.log:931:[2025-04-05 12:35:14.507 +00:00] [INF] [187] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250405.log:976:[2025-04-05 13:12:24.150 +00:00] [INF] [54] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250405.log:1021:[2025-04-05 13:55:03.884 +00:00] [INF] [32] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250405.log:1048:[2025-04-05 14:07:44.953 +00:00] [ERR] [182] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: ffmpeg image extraction failed for ""
/Documents/jellyfin/log/log_20250405.log:1049:[2025-04-05 14:07:44.956 +00:00] [ERR] [182] Jellyfin.Server.Implementations.Trickplay.TrickplayManager: Error creating trickplay images.
/Documents/jellyfin/log/log_20250405.log:1050:MediaBrowser.Common.FfmpegException: ffmpeg image extraction failed for /usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -threads 1 -i file:"" -an -sn -vf "fps=0.10000000149011612,setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*(a*sar))\,320)/2)*2:trunc(ow/(a*sar)/2)*2,format=yuv420p" -threads 1 -c:v mjpeg -qscale:v 4 -fps_mode passthrough -f image2 "/tmp/jellyfin/fd178e63c85c4080bd5157720d1eb3f1/%08d.jpg"
/Documents/jellyfin/log/log_20250405.log:1054:[2025-04-05 14:07:44.969 +00:00] [INF] [182] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250405.log:1094:[2025-04-05 14:47:07.083 +00:00] [INF] [155] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250405.log:1139:[2025-04-05 15:30:40.402 +00:00] [INF] [108] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250405.log:1176:[2025-04-05 16:09:21.607 +00:00] [ERR] [98] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: ffmpeg image extraction failed for ""
/Documents/jellyfin/log/log_20250405.log:1177:[2025-04-05 16:09:21.614 +00:00] [ERR] [98] Jellyfin.Server.Implementations.Trickplay.TrickplayManager: Error creating trickplay images.
/Documents/jellyfin/log/log_20250405.log:1178:MediaBrowser.Common.FfmpegException: ffmpeg image extraction failed for /usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -threads 1 -i file:"" -an -sn -vf "fps=0.10000000149011612,setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*(a*sar))\,320)/2)*2:trunc(ow/(a*sar)/2)*2,format=yuv420p" -threads 1 -c:v mjpeg -qscale:v 4 -fps_mode passthrough -f image2 "/tmp/jellyfin/012b5d40e60a4ef0b5aa8d8806fde996/%08d.jpg"
/Documents/jellyfin/log/log_20250405.log:1182:[2025-04-05 16:09:21.624 +00:00] [INF] [98] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250405.log:1231:[2025-04-05 16:55:23.295 +00:00] [INF] [32] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250405.log:1417:[2025-04-05 19:53:17.089 +00:00] [INF] [62] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250405.log:1499:[2025-04-05 21:16:06.239 +00:00] [INF] [91] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: "
/Documents/jellyfin/log/log_20250404.log:1504:[2025-04-04 18:57:28.561 +00:00] [INF] [158] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250404.log:1550:[2025-04-04 19:22:37.099 +00:00] [INF] [69] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250404.log:1561:[2025-04-04 19:30:07.538 +00:00] [INF] [85] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250404.log:1574:[2025-04-04 19:42:28.027 +00:00] [INF] [9] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250404.log:1587:[2025-04-04 19:52:10.715 +00:00] [INF] [26] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250404.log:1599:[2025-04-04 20:01:52.632 +00:00] [INF] [9] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250404.log:1607:[2025-04-04 20:09:17.049 +00:00] [INF] [103] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250404.log:1623:[2025-04-04 20:21:07.184 +00:00] [INF] [83] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250404.log:1632:[2025-04-04 20:28:58.056 +00:00] [INF] [136] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250404.log:1644:[2025-04-04 20:39:09.139 +00:00] [INF] [40] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250404.log:1656:[2025-04-04 20:47:11.432 +00:00] [INF] [83] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250404.log:1696:[2025-04-04 21:25:06.632 +00:00] [INF] [75] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250404.log:1710:[2025-04-04 21:37:47.703 +00:00] [ERR] [66] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: ffmpeg image extraction failed for ""
/Documents/jellyfin/log/log_20250404.log:1711:[2025-04-04 21:37:47.706 +00:00] [ERR] [66] Jellyfin.Server.Implementations.Trickplay.TrickplayManager: Error creating trickplay images.
/Documents/jellyfin/log/log_20250404.log:1712:MediaBrowser.Common.FfmpegException: ffmpeg image extraction failed for /usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -threads 1 -i file:"" -an -sn -vf "fps=0.10000000149011612,setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*(a*sar))\,320)/2)*2:trunc(ow/(a*sar)/2)*2,format=yuv420p" -threads 1 -c:v mjpeg -qscale:v 4 -fps_mode passthrough -f image2 "/tmp/jellyfin/8f7ee664f005436ea8931ce3bcf2b5ee/%08d.jpg"
/Documents/jellyfin/log/log_20250404.log:1716:[2025-04-04 21:37:47.712 +00:00] [INF] [66] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250404.log:1747:[2025-04-04 22:06:48.866 +00:00] [ERR] [26] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: ffmpeg image extraction failed for ""
/Documents/jellyfin/log/log_20250404.log:1748:[2025-04-04 22:06:48.872 +00:00] [ERR] [26] Jellyfin.Server.Implementations.Trickplay.TrickplayManager: Error creating trickplay images.
/Documents/jellyfin/log/log_20250404.log:1749:MediaBrowser.Common.FfmpegException: ffmpeg image extraction failed for /usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -threads 1 -i file:"" -an -sn -vf "fps=0.10000000149011612,setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*(a*sar))\,320)/2)*2:trunc(ow/(a*sar)/2)*2,format=yuv420p" -threads 1 -c:v mjpeg -qscale:v 4 -fps_mode passthrough -f image2 "/tmp/jellyfin/e2160e66d9904b3596ffd3ee2e2ffa2e/%08d.jpg"
/Documents/jellyfin/log/log_20250404.log:1753:[2025-04-04 22:06:48.879 +00:00] [INF] [26] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250404.log:1758:[2025-04-04 22:09:09.894 +00:00] [ERR] [161] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: ffmpeg image extraction failed for ""
/Documents/jellyfin/log/log_20250404.log:1759:[2025-04-04 22:09:09.895 +00:00] [ERR] [161] Jellyfin.Server.Implementations.Trickplay.TrickplayManager: Error creating trickplay images.
/Documents/jellyfin/log/log_20250404.log:1760:MediaBrowser.Common.FfmpegException: ffmpeg image extraction failed for /usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -threads 1 -i file:"" -an -sn -vf "fps=0.10000000149011612,setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*(a*sar))\,320)/2)*2:trunc(ow/(a*sar)/2)*2,format=yuv420p" -threads 1 -c:v mjpeg -qscale:v 4 -fps_mode passthrough -f image2 "/tmp/jellyfin/576bcc25448341f49855dab2b2f2857f/%08d.jpg"
/Documents/jellyfin/log/log_20250404.log:1764:[2025-04-04 22:09:09.901 +00:00] [INF] [161] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250406.log:212:[2025-04-06 02:52:46.925 +00:00] [INF] [181] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250406.log:243:[2025-04-06 03:16:28.054 +00:00] [ERR] [86] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: ffmpeg image extraction failed for ""
/Documents/jellyfin/log/log_20250406.log:244:[2025-04-06 03:16:28.058 +00:00] [ERR] [86] Jellyfin.Server.Implementations.Trickplay.TrickplayManager: Error creating trickplay images.
/Documents/jellyfin/log/log_20250406.log:245:MediaBrowser.Common.FfmpegException: ffmpeg image extraction failed for /usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -threads 1 -i file:"" -an -sn -vf "fps=0.10000000149011612,setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*(a*sar))\,320)/2)*2:trunc(ow/(a*sar)/2)*2,format=yuv420p" -threads 1 -c:v mjpeg -qscale:v 4 -fps_mode passthrough -f image2 "/tmp/jellyfin/7e7ab6cfacee437ba0f7bd76fd94ddf6/%08d.jpg"
/Documents/jellyfin/log/log_20250406.log:249:[2025-04-06 03:16:28.063 +00:00] [INF] [175] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250406.log:295:[2025-04-06 04:01:10.550 +00:00] [INF] [66] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250406.log:341:[2025-04-06 04:48:45.712 +00:00] [INF] [113] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250406.log:575:[2025-04-06 08:06:27.827 +00:00] [ERR] [81] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: ffmpeg image extraction failed for ""
/Documents/jellyfin/log/log_20250406.log:576:[2025-04-06 08:06:27.859 +00:00] [ERR] [81] Jellyfin.Server.Implementations.Trickplay.TrickplayManager: Error creating trickplay images.
/Documents/jellyfin/log/log_20250406.log:577:MediaBrowser.Common.FfmpegException: ffmpeg image extraction failed for /usr/lib/jellyfin-ffmpeg/ffmpeg -loglevel error -threads 1 -i file:"" -an -sn -vf "fps=0.10000000149011612,setparams=color_primaries=bt709:color_trc=bt709:colorspace=bt709,scale=trunc(min(max(iw\,ih*(a*sar))\,320)/2)*2:trunc(ow/(a*sar)/2)*2,format=yuv420p" -threads 1 -c:v mjpeg -qscale:v 4 -fps_mode passthrough -f image2 "/tmp/jellyfin/ae066c005de84ea98922f741d087b479/%08d.jpg"
/Documents/jellyfin/log/log_20250406.log:581:[2025-04-06 08:06:27.864 +00:00] [INF] [81] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250406.log:635:[2025-04-06 08:54:53.121 +00:00] [INF] [143] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250406.log:688:[2025-04-06 09:38:01.806 +00:00] [INF] [134] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250406.log:728:[2025-04-06 10:18:32.090 +00:00] [INF] [156] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250406.log:776:[2025-04-06 10:57:42.152 +00:00] [INF] [109] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250406.log:834:[2025-04-06 11:49:02.612 +00:00] [INF] [49] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250406.log:883:[2025-04-06 12:36:23.158 +00:00] [INF] [49] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Trickplay generation: ""
/Documents/jellyfin/log/log_20250406.log:923:[2025-04-06 13:14:16.477 +00:00] [ERR] [43] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "".
/Documents/jellyfin/log/log_20250406.log:961:[2025-04-06 13:14:17.151 +00:00] [ERR] [128] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "".
/Documents/jellyfin/log/log_20250406.log:999:[2025-04-06 13:14:17.408 +00:00] [ERR] [42] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "".
/Documents/jellyfin/log/log_20250406.log:1041:[2025-04-06 13:14:48.862 +00:00] [ERR] [95] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "".
/Documents/jellyfin/log/log_20250406.log:1079:[2025-04-06 13:14:49.588 +00:00] [ERR] [52] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "".
/Documents/jellyfin/log/log_20250406.log:1117:[2025-04-06 13:14:50.103 +00:00] [ERR] [95] Jellyfin.Api.Middleware.ExceptionMiddleware: Error processing request. URL "GET" "".
/Documents/jellyfin/log/log_20250406.log:1162:[2025-04-06 13:15:00.560 +00:00] [ERR] [43] Jellyfin.Server.Implementations.Trickplay.TrickplayManager: Error creating trickplay images.



RE: Jellyfin crashing - TheDreadPirate - 2025-04-06

You also need and add the ---runtime=nvidia parameter to your docker run. And install additional nvidia packages, if you haven't done so already.

https://jellyfin.org/docs/general/administration/hardware-acceleration/nvidia/#configure-with-windows-virtualization


RE: Jellyfin crashing - jellyyllej - 2025-04-07

(2025-04-06, 02:36 PM)TheDreadPirate Wrote: When you say Jellyfin crashes, I'm assuming you mean that you can't get videos to play and you're not talking about the server completely crashing and restarting.

Can you share your ffmpeg logs?  In the same directory with the logs you shared there will be ffmpeg logs named "FFmpeg.Transcode<really long string>".  Share one of those via privatebin.net.

Also, what are your hardware specs?  And what distro is the host running?

Our documentation for setting up Nvidia GPUs with Docker is linked below.

https://jellyfin.org/docs/general/administration/hardware-acceleration/nvidia/#configure-with-linux-virtualization

(2025-04-06, 07:42 PM)TheDreadPirate Wrote: You also need and add the ---runtime=nvidia parameter to your docker run.  And install additional nvidia packages, if you haven't done so already.

https://jellyfin.org/docs/general/administration/hardware-acceleration/nvidia/#configure-with-windows-virtualization


I'll try this.