Stream capture frames directly to FFmpeg#42
Merged
Conversation
abrichr
marked this pull request as ready for review
July 24, 2026 01:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Why
Capture 1.0.3 removed PyAV from the runtime boundary but temporarily staged every frame as a PNG before final MP4 encoding. That added disk I/O, delayed finalization, and duplicated work. This restores the efficient direct-to-video architecture without bundling codec libraries into the MIT package.
User impact
Recording writes compact video while it runs. Stop/finalization no longer performs a second full image-sequence encode, and no transient screenshot sequence is left on disk. Timestamp lookup remains deterministic and compatible with the compiler.
Validation