9 hours ago
Playing live TV (from TVHeadend, via m3u) sometimes I see "waiting 3000ms before probing the live stream" - what is this 3 second delay for and is there some way I can speed things up? Example below.
Code:
[2025-08-02 12:48:39.019 +02:00] [INF] [81] Jellyfin.LiveTv.DefaultLiveTvService: Returning mediasource streamId "0981b0f45061df9b83cae01d6dfe1404", mediaSource.Id "0981b0f45061df9b83cae01d6dfe1404", mediaSource.LiveStreamId null
[2025-08-02 12:48:39.020 +02:00] [DBG] [81] Emby.Server.Implementations.Library.MediaSourceManager: Could not open cached media info
System.IO.FileNotFoundException: Could not find file '/var/cache/jellyfin/mediainfo/ab539ff472ac4f72b8954da4c304c208.json'.
File name: '/var/cache/jellyfin/mediainfo/ab539ff472ac4f72b8954da4c304c208.json'
at Interop.ThrowExceptionForIoErrno(ErrorInfo errorInfo, String path, Boolean isDirError)
at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, UnixFileMode openPermissions, Int64& fileLength, UnixFileMode& filePermissions, Boolean failForSymlink, Boolean& wasSymlink, Func`4 createOpenException)
at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at MediaBrowser.Model.IO.AsyncFile.OpenRead(String path)
at Emby.Server.Implementations.Library.LiveStreamHelper.AddMediaInfoWithProbe(MediaSourceInfo mediaSource, Boolean isAudio, String cacheKey, Boolean addProbeDelay, CancellationToken cancellationToken)
[2025-08-02 12:48:39.020 +02:00] [INF] [81] Emby.Server.Implementations.Library.MediaSourceManager: Waiting 3000ms before probing the live stream
[2025-08-02 12:48:42.021 +02:00] [INF] [81] MediaBrowser.MediaEncoding.Encoder.MediaEncoder: Starting "/usr/local/bin/ffprobe" with args "-analyzeduration 3000000 -probesize 10M -user_agent \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Safari/537.36\" -i \"http://192.168.2.8:9981/stream/channelid/1778657853?profile=pass\" -threads 0 -v warning -print_format json -show_streams -show_format"
[2025-08-02 12:48:43.605 +02:00] [DBG] [81] Emby.Server.Implementations.Session.SessionWebSocketListener: Watching 1 WebSockets.
[2025-08-02 12:48:45.333 +02:00] [DBG] [127] Emby.Server.Implementations.Library.MediaSourceManager: Saved media info to "/var/cache/jellyfin/mediainfo/ab539ff472ac4f72b8954da4c304c208.json"
[2025-08-02 12:48:45.333 +02:00] [INF] [127] Emby.Server.Implementations.Library.MediaSourceManager: Live tv media info probe took "6.3136133" seconds