[PR #4213] [MERGED] Add ProgressiveFileStream #9951

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

📋 Pull Request Information

Original PR: https://github.com/jellyfin/jellyfin/pull/4213
Author: @cvium
Created: 9/26/2020
Status: Merged
Merged: 11/3/2020
Merged by: @Bond-009

Base: masterHead: progressivefilestream


📝 Commits (2)

📊 Changes

2 files changed (+164 additions, -3 deletions)

View changed files

📝 Jellyfin.Api/Helpers/FileStreamResponseHelpers.cs (+2 -3)
Jellyfin.Api/Helpers/ProgressiveFileStream.cs (+162 -0)

📄 Description

Changes
Made a stream wrapper based on ProgressiveFileCopier that essentially only implements ReadAsync. It opens the transcoded file as a FileStream and continues to read it until the transcode is complete.

No more than the buffer size should be saved in memory, so hopefully no OOM regressions.

Issues
Fixes #4105


🔄 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/4213 **Author:** [@cvium](https://github.com/cvium) **Created:** 9/26/2020 **Status:** ✅ Merged **Merged:** 11/3/2020 **Merged by:** [@Bond-009](https://github.com/Bond-009) **Base:** `master` ← **Head:** `progressivefilestream` --- ### 📝 Commits (2) - [`6ca313a`](https://github.com/jellyfin/jellyfin/commit/6ca313abc186d45aef8b6d949432a4c9ef9cc1d2) Add ProgressiveFileStream - [`146cad6`](https://github.com/jellyfin/jellyfin/commit/146cad61505147ee1e118135a396eb6ed3e0fc78) Remove EOF counter ### 📊 Changes **2 files changed** (+164 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `Jellyfin.Api/Helpers/FileStreamResponseHelpers.cs` (+2 -3) ➕ `Jellyfin.Api/Helpers/ProgressiveFileStream.cs` (+162 -0) </details> ### 📄 Description <!-- 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** Made a stream wrapper based on ProgressiveFileCopier that essentially only implements ReadAsync. It opens the transcoded file as a `FileStream` and continues to read it until the transcode is complete. No more than the buffer size should be saved in memory, so hopefully no OOM regressions. **Issues** Fixes #4105 --- <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 06:11:22 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/jellyfin#9951