Jellyfin Forum
ffprobe.exe - Application Error due to Jellyfin installation - 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: ffprobe.exe - Application Error due to Jellyfin installation (/t-ffprobe-exe-application-error-due-to-jellyfin-installation)



ffprobe.exe - Application Error due to Jellyfin installation - Viper21 - 2024-10-16

Hello experts,

I am running Jellyfin 10.9.11 on Windows 10. 
Everything has been working smoothly for a couple of years, then a few months ago, I randomly started getting this annoying Windows error message:

Code:
ffprobe.exe - Application Error
The application was unable to start correctly (0xc0000142). CLick OK to the close the application.

It appears randomly and sometimes 5-10 times after closing it. It also sometimes appears when logging on to Windows, but not always.

It took me a while to understand that it only happens when the Jellyfin server is running. When I manually stop the server, no more messages.
When I play a video file via the Jellyfin web UI, it'll also appear once, but when I close the message the media will play.

I have uninstalled Jellyfin and removed all traces of it. Then reinstalled it and setting up everything from scratch (i.e., not using backup from previous version) using the installer's default paths. This has not helped.

Here is some additional info that may help with troubleshooting.

In C:\ProgramData\Jellyfin\Server\config\encoding.xml, I have the following line:
Code:
<EncoderAppPathDisplay>ffmpeg</EncoderAppPathDisplay>

In C:\Program Files\Jellyfin\Server, the two files "ffmpeg.exe"  and "ffprobe.exe" are present.

I have not installed ffmpeg standalone on my OS to my knowledge, but I do have K-Lite Codec Pack installed.

I have no idea how to solve this. I would grateful if someone could try to assist with troubleshooting. 

Thank you.

Here is my log file:
Code:
[2024-10-16 12:16:58.959 +03:00] [INF] [1] Main: Jellyfin version: "10.9.11"
[2024-10-16 12:16:58.982 +03:00] [INF] [1] Main: Environment Variables: ["[JELLYFIN_LOG_DIR, C:\ProgramData\Jellyfin\Server\log]"]
[2024-10-16 12:16:58.987 +03:00] [INF] [1] Main: Arguments: ["C:\Program Files\Jellyfin\Server\jellyfin.dll", "--datadir", "C:\ProgramData\Jellyfin\Server"]
[2024-10-16 12:16:58.991 +03:00] [INF] [1] Main: Operating system: "Microsoft Windows 10.0.19045"
[2024-10-16 12:16:58.993 +03:00] [INF] [1] Main: Architecture: X64
[2024-10-16 12:16:58.995 +03:00] [INF] [1] Main: 64-Bit Process: True
[2024-10-16 12:16:58.996 +03:00] [INF] [1] Main: User Interactive: True
[2024-10-16 12:16:58.998 +03:00] [INF] [1] Main: Processor count: 4
[2024-10-16 12:16:58.999 +03:00] [INF] [1] Main: Program data path: "C:\ProgramData\Jellyfin\Server"
[2024-10-16 12:16:59.000 +03:00] [INF] [1] Main: Log directory path: "C:\ProgramData\Jellyfin\Server\log"
[2024-10-16 12:16:59.002 +03:00] [INF] [1] Main: Config directory path: "C:\ProgramData\Jellyfin\Server\config"
[2024-10-16 12:16:59.003 +03:00] [INF] [1] Main: Cache path: "C:\ProgramData\Jellyfin\Server\cache"
[2024-10-16 12:16:59.004 +03:00] [INF] [1] Main: Web resources path: "C:\Program Files\Jellyfin\Server\jellyfin-web"
[2024-10-16 12:16:59.006 +03:00] [INF] [1] Main: Application directory: "C:\Program Files\Jellyfin\Server\"
[2024-10-16 12:16:59.227 +03:00] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: "C:\ProgramData\Jellyfin\Server\cache"
[2024-10-16 12:16:59.308 +03:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
[2024-10-16 12:16:59.446 +03:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN subnets: ["X.0.0.X/8", "X.0.0.0/8", "XXX.XX.0.0/12", " XXX.XXX.X.X /16"]
[2024-10-16 12:16:59.448 +03:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions: []
[2024-10-16 12:16:59.450 +03:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Used LAN subnets: ["XXX.0.0.X/8", "10.0.0.0/8", "XXX.XX.0.0/12", "XXX.XXX.X.X/16"]
[2024-10-16 12:16:59.454 +03:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered interface addresses: ["XXX.XXX.X.XXX", "XXX.0.0.X"]
[2024-10-16 12:16:59.456 +03:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Bind Addresses ["0.0.0.0"]
[2024-10-16 12:16:59.458 +03:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Remote IP filter is "Allowlist"
[2024-10-16 12:16:59.459 +03:00] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered subnets: []
[2024-10-16 12:17:01.684 +03:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "TMDb" "10.9.11.0"
[2024-10-16 12:17:01.686 +03:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "Studio Images" "10.9.11.0"
[2024-10-16 12:17:01.689 +03:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "OMDb" "10.9.11.0"
[2024-10-16 12:17:01.784 +03:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "MusicBrainz" "10.9.11.0"
[2024-10-16 12:17:01.787 +03:00] [INF] [1] Emby.Server.Implementations.Plugins.PluginManager: Loaded plugin: "AudioDB" "10.9.11.0"
[2024-10-16 12:17:01.880 +03:00] [INF] [1] Main: Kestrel is listening on "0.0.0.0"
[2024-10-16 12:17:02.544 +03:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Running startup tasks
[2024-10-16 12:17:02.545 +03:00] [INF] [9] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory "C:\XYZ"
[2024-10-16 12:17:02.560 +03:00] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for "Generate Trickplay Images" set to fire at 2024-10-17 03:00:00.000 +03:00, which is 14:42:57.4396769 from now.
[2024-10-16 12:17:02.567 +03:00] [INF] [1] Emby.Server.Implementations.ScheduledTasks.TaskManager: Daily trigger for "Extract Chapter Images" set to fire at 2024-10-17 02:00:00.000 +03:00, which is 13:42:57.4322555 from now.
[2024-10-16 12:17:03.212 +03:00] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Found ffmpeg version "6.0.1"
[2024-10-16 12:17:03.307 +03:00] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available "decoders": ["libdav1d", "av1", "av1_cuvid", "av1_qsv", "h264", "h264_qsv", "h264_cuvid", "hevc", "hevc_qsv", "hevc_cuvid", "mpeg2video", "mpeg2_qsv", "mpeg2_cuvid", "mpeg4", "mpeg4_cuvid", "msmpeg4", "vc1_qsv", "vc1_cuvid", "vp8", "libvpx", "vp8_cuvid", "vp8_qsv", "vp9", "libvpx-vp9", "vp9_cuvid", "vp9_qsv", "aac", "ac3", "dca", "flac", "mp3", "truehd"]
[2024-10-16 12:17:03.385 +03:00] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available "encoders": ["libsvtav1", "av1_nvenc", "av1_qsv", "av1_amf", "libx264", "h264_amf", "h264_nvenc", "h264_qsv", "libx265", "hevc_amf", "hevc_nvenc", "hevc_qsv", "mjpeg_qsv", "mpeg4", "msmpeg4", "libvpx", "libvpx-vp9", "aac", "libfdk_aac", "ac3", "alac", "dca", "flac", "libmp3lame", "libopus", "truehd", "libvorbis", "srt"]
[2024-10-16 12:17:03.459 +03:00] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available filters: ["deinterlace_qsv", "hwupload_cuda", "overlay_opencl", "overlay_qsv", "overlay_cuda", "scale_cuda", "scale_opencl", "scale_qsv", "tonemap_cuda", "tonemap_opencl", "vpp_qsv", "yadif_cuda", "zscale", "alphasrc"]
[2024-10-16 12:17:03.784 +03:00] [WRN] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Filter: "overlay_vaapi" with option "Action to take when encountering EOF from secondary input" is not available
[2024-10-16 12:17:03.842 +03:00] [WRN] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Filter: "overlay_vulkan" with option "Action to take when encountering EOF from secondary input" is not available
[2024-10-16 12:17:03.902 +03:00] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Available hwaccel types: ["cuda", "dxva2", "qsv", "d3d11va", "opencl"]
[2024-10-16 12:17:04.263 +03:00] [INF] [1] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: FFmpeg: "ffmpeg"
[2024-10-16 12:17:04.265 +03:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: ServerId: "XXXXXXXXXXXXXXXXXXXXXXXXX"
[2024-10-16 12:17:04.267 +03:00] [INF] [1] Emby.Server.Implementations.ApplicationHost: Core startup complete
[2024-10-16 12:17:04.268 +03:00] [INF] [1] Main: Startup complete 0:00:05.4995466
[2024-10-16 12:17:05.628 +03:00] [INF] [9] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Clean up collections and playlists" Completed after 0 minute(s) and 0 seconds
[2024-10-16 12:17:06.994 +03:00] [INF] [8] Emby.Server.Implementations.ScheduledTasks.TaskManager: "Update Plugins" Completed after 0 minute(s) and 1 seconds



RE: ffprobe.exe - Application Error due to Jellyfin installation - theguymadmax - 2024-10-16

Try reinstalling/upgrading the FFmpeg files. Download the zip file and extract the contents into C:\Program Files\Jellyfin\Server\ overwriting the existing files, while the server is off. Report back if you continue to have issues.


RE: ffprobe.exe - Application Error due to Jellyfin installation - Viper21 - 2024-10-17

I upgraded the FFmepg files as instructed. Also deleted the files of the outdated versions.

For the majority of the day it seemed like the issue was resolved. But then I got a few popups of the error message again. Inside the Jellyfin log, I found some issues, which may be related. I am pasting here a partial extract of the issues. The " [ERR] [59] MediaBrowser.Providers.Movies.MovieMetadataService: Error in "Probe Provider"" repeats itself quite a few times for several media files.

Code:
[2024-10-17 23:10:28.485] [INF] [54] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"C:\Sample1.avi\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-10-17 23:10:29.113] [INF] [56] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "ffprobe" with args "-analyzeduration 200M -probesize 1G -i file:\"C:\Sample2.mp4\" -threads 0 -v warning -print_format json -show_streams -show_chapters -show_format"
[2024-10-17 23:10:40.524] [ERR] [59] MediaBrowser.Providers.Movies.MovieMetadataService: Error in "Probe Provider"
System.Text.Json.JsonException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
---> System.Text.Json.JsonReaderException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0.
  at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
  at System.Text.Json.Utf8JsonReader.Read()
  at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
  --- End of inner exception stack trace ---
  at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, JsonReaderException ex)
  at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
  at System.Text.Json.Serialization.Metadata.JsonTypeInfo`1.DeserializeAsync(Stream utf8Json, CancellationToken cancellationToken)
  at MediaBrowser.MediaEncoding.Encoder.MediaEncoder.GetMediaInfoInternal(String inputPath, String primaryPath, MediaProtocol protocol, Boolean extractChapters, String probeSizeArgument, Boolean isAudio, Nullable`1 videoType, CancellationToken cancellationToken)
  at MediaBrowser.MediaEncoding.Encoder.MediaEncoder.GetMediaInfoInternal(String inputPath, String primaryPath, MediaProtocol protocol, Boolean extractChapters, String probeSizeArgument, Boolean isAudio, Nullable`1 videoType, CancellationToken cancellationToken)
  at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo.ProbeVideo[T](T item, MetadataRefreshOptions options, CancellationToken cancellationToken)
  at MediaBrowser.Providers.Manager.MetadataService`2.RunCustomProvider(ICustomMetadataProvider`1 provider, TItemType item, String logName, MetadataRefreshOptions options, RefreshResult refreshResult, CancellationToken cancellationToken)
[2024-10-17 23:10:42.024] [ERR] [54] MediaBrowser.Providers.TV.EpisodeMetadataService: Error in "Probe Provider"
System.Text.Json.JsonException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
---> System.Text.Json.JsonReaderException: The input does not contain any JSON tokens. Expected the input to start with a valid JSON token, when isFinalBlock is true. LineNumber: 0 | BytePositionInLine: 0.
  at System.Text.Json.ThrowHelper.ThrowJsonReaderException(Utf8JsonReader& json, ExceptionResource resource, Byte nextByte, ReadOnlySpan`1 bytes)
  at System.Text.Json.Utf8JsonReader.Read()
  at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
  --- End of inner exception stack trace ---
  at System.Text.Json.ThrowHelper.ReThrowWithPath(ReadStack& state, JsonReaderException ex)
  at System.Text.Json.Serialization.JsonConverter`1.ReadCore(Utf8JsonReader& reader, JsonSerializerOptions options, ReadStack& state)
  at System.Text.Json.Serialization.Metadata.JsonTypeInfo`1.DeserializeAsync(Stream utf8Json, CancellationToken cancellationToken)
  at MediaBrowser.MediaEncoding.Encoder.MediaEncoder.GetMediaInfoInternal(String inputPath, String primaryPath, MediaProtocol protocol, Boolean extractChapters, String probeSizeArgument, Boolean isAudio, Nullable`1 videoType, CancellationToken cancellationToken)
  at MediaBrowser.MediaEncoding.Encoder.MediaEncoder.GetMediaInfoInternal(String inputPath, String primaryPath, MediaProtocol protocol, Boolean extractChapters, String probeSizeArgument, Boolean isAudio, Nullable`1 videoType, CancellationToken cancellationToken)
  at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo.ProbeVideo[T](T item, MetadataRefreshOptions options, CancellationToken cancellationToken)
  at MediaBrowser.Providers.Manager.MetadataService`2.RunCustomProvider(ICustomMetadataProvider`1 provider, TItemType item, String logName, MetadataRefreshOptions options, RefreshResult refreshResult, CancellationToken cancellationToken)

I hope this helps.


RE: ffprobe.exe - Application Error due to Jellyfin installation - TheDreadPirate - 2024-10-17

I don't think this is related to ffprobe. How are the metadata providers configured for the library these samples are in?


RE: ffprobe.exe - Application Error due to Jellyfin installation - Viper21 - 2024-10-17

Sorry, I am not sure I understand the question and what kind of response you're looking for. Perhaps you can you give me an example of a response you are expecting, if it were a TV show, for example.


RE: ffprobe.exe - Application Error due to Jellyfin installation - TheDreadPirate - 2024-10-17

I was chatting with theguymadmax. Did you add your entire C drive to a library?


RE: ffprobe.exe - Application Error due to Jellyfin installation - Viper21 - 2024-10-17

No, just a specific folder with media files in it.


RE: ffprobe.exe - Application Error due to Jellyfin installation - theguymadmax - 2024-10-17

This file isn't in a folder. Can you check your library paths.
Code:
C:\Sample2.mp4\

Or did you just edit the log?