Feature request: keepFrames option on renderMedia (frames get deleted when the stitch fails)

オープン
#24 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
backend

調査の方向性

Start by locating renderMedia and reading how it creates and removes its temporary frames directory, then follow its call to stitchFramesToVideo. The issue suggests either configurable retention and a frames directory or the smaller behavior of retaining frames only when stitching fails. Done means failed stitching leaves the frames available and reports their path, while the default behavior remains as requested.

索引モデルが issue の本文から書いたものです。

説明

renderMedia renders the frames into a temp directory and deletes it in a finally:

} finally {
  // Cleanup temp frames
  fs.rmSync(tmpDir, { recursive: true, force: true });
}

So when stitchFramesToVideo throws (an FFmpeg error, a bad audio source, a full disk), all the rendered frames are deleted too, and the whole render has to be repeated. For long videos the frame render is by far the slowest part. We lost a ~1,600-frame 1080p render this way to the duration=Infinity error from #4.

Could renderMedia get a keepFrames option (default false), and maybe a framesDir option to choose where the frames go? If stitching then fails, the frames stay put, and it would help if the error message included the frames path, so you can retry stitchFramesToVideo() directly.

A smaller version would also help a lot: only keep the frames when the stitch fails, and print where they are.

主要言語
TypeScript
スター
159
フォーク
32
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

thecodacus/rendiv のほかの issue

thecodacus/rendiv の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。