Repository navigation
BUG: multi-frame writes through pyav fail with av 18.1.0 - #1207
Merged
FirefoxMetzger merged 4 commits intoSep 26, 2026
Merged
Conversation
…closed, not while the muxer count is zero
Unpinned pypy-3.11 now resolves to PyPy 8.0 on macOS, whose pp80 ABI has no pillow-heif wheels. Co-authored-by: Cursor <[email protected]>
The package has no wheels for current PyPy, and the HEIF tests already skip when it is missing. Co-authored-by: Cursor <[email protected]>
Contributor
|
Thanks for the fix! reviewed, merged, should go live monday. |
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.
Writing more than one frame with libx264 through the pyav plugin raises
RuntimeError: Cannot change width after codec is openwith av 18.1.0, see #1205. The plugin decided whether the stream size still had to be set by looking atstream.frames, which counts muxed packets. A codec that buffers its first frames leaves that at zero, so the size was assigned a second time after the first encode call had opened the codec, and av 18.1 refuses that.The check now asks the codec context whether it is open instead. It stays below the filter, so a rescaling filter still decides the size, and it covers the flush path too, where a buffering filter hands over its first frame. There is a new test that writes five frames with libx264 and reads them back, the single-frame case never triggered this. On master
test_mp4_writingfails the same way with av 18.1.0, with this change the pyav tests pass.Closes #1205