[PR #13030] [MERGED] Always cleanup trickplay temp for ffmpeg failures #13447

Closed
opened 2026-02-07 07:13:02 +03:00 by OVERLORD · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/13030
Author: @gnattu
Created: 11/14/2024
Status: Merged
Merged: 11/15/2024
Merged by: @crobibero

Base: release-10.10.zHead: remove-trickplay-ffmpeg-failed


📝 Commits (1)

  • f69c48d Always cleanup trickplay temp for ffmpeg failures

📊 Changes

1 file changed (+10 additions, -0 deletions)

View changed files

📝 MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs (+10 -0)

📄 Description

The original implementation required the caller to perform cleanup, but this approach fails when ffmpeg encounters specific issues, such as timing out on slower systems or failing with an error code of -1. In these cases, the temp folder path is not returned, preventing the caller from cleaning it up. While ffmpeg typically doesn't write to this folder when failed, specific errors like a timeout could leave files there.

Changes

Issues


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/jellyfin/jellyfin/pull/13030 **Author:** [@gnattu](https://github.com/gnattu) **Created:** 11/14/2024 **Status:** ✅ Merged **Merged:** 11/15/2024 **Merged by:** [@crobibero](https://github.com/crobibero) **Base:** `release-10.10.z` ← **Head:** `remove-trickplay-ffmpeg-failed` --- ### 📝 Commits (1) - [`f69c48d`](https://github.com/jellyfin/jellyfin/commit/f69c48d88dc5a9bf2aaace1beac190de1b94ac95) Always cleanup trickplay temp for ffmpeg failures ### 📊 Changes **1 file changed** (+10 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `MediaBrowser.MediaEncoding/Encoder/MediaEncoder.cs` (+10 -0) </details> ### 📄 Description The original implementation required the caller to perform cleanup, but this approach fails when ffmpeg encounters specific issues, such as timing out on slower systems or failing with an error code of -1. In these cases, the temp folder path is not returned, preventing the caller from cleaning it up. While ffmpeg typically doesn't write to this folder when failed, specific errors like a timeout could leave files there. <!-- Ensure your title is short, descriptive, and in the imperative mood (Fix X, Change Y, instead of Fixed X, Changed Y). For a good inspiration of what to write in commit messages and PRs please review https://chris.beams.io/posts/git-commit/ and our documentation. --> **Changes** <!-- Describe your changes here in 1-5 sentences. --> **Issues** <!-- Tag any issues that this PR solves here. ex. Fixes # --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
OVERLORD added the pull-request label 2026-02-07 07:13:02 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#13447