mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-16 05:43:54 +03:00
[PR #14467] [MERGED] Add fallback for keyframe-only trickplay extraction #13999
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/14467
Author: @jkhsjdhjs
Created: 7/14/2025
Status: ✅ Merged
Merged: 8/1/2025
Merged by: @Bond-009
Base:
master← Head:keyframe-only-trickplay-extraction-fallback📝 Commits (2)
bf3f37eAdd fallback for keyframe-only trickplay extractiond6f9375Add myself to CONTRIBUTORS.md📊 Changes
2 files changed (+24 additions, -7 deletions)
View changed files
📝
CONTRIBUTORS.md(+1 -0)📝
MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs(+23 -7)📄 Description
Keyframe-only trickplay image extraction can fail for some media files. The current behavior is to skip the media file and try again on the next run, which will fail again.
This adds a fallback to regular non-keyframe-only extraction for failed runs, so the extraction can complete.
I implemented it in
MediaEncoder.ExtractVideoImagesOnIntervalAcceleratedanalogously toMediaEncoder.ExtractImage, which already has a similar fallback:982e0c9370/MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs (L630-L644)MediaEncoder.ExtractVideoImagesOnIntervalAcceleratedis called byTrickplayManager.RefreshTrickplayDataInternal, so alternatively is could also be implemented there:982e0c9370/Jellyfin.Server.Implementations/Trickplay/TrickplayManager.cs (L323-L338)I don't have a strong opinion on this. On one hand,
ExtractVideoImagesOnIntervalAcceleratedis passedenableKeyFrameOnlyExtractionas a parameter, so it should adhere to this and not do any fallbacks by itself, which may be unexpected. On the other hand, it's nice to have this fallback here so it doesn't need to be implemented in several places, in case any other function in the future also decides to call this.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.