You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add OutputContainer.add_mux_stream() for codec-context-free streams
Adds `add_mux_stream(codec_name, rate=None, **kwargs)` to `OutputContainer`,
allowing users to create a stream with only `codecpar` set (codec id, type,
width, height, sample_rate) and no `CodecContext`. This is useful when muxing
pre-encoded packets from an external source where no encoding or decoding is
needed, separating the muxer role from the encoder role.
Also relaxes `start_encoding()` to allow any stream type without a codec
context (previously only data/attachment streams were permitted), and guards
`VideoStream`/`AudioStream` repr and `__getattr__` against `codec_context=None`.
Two missing fields (`AVMediaType type` on `AVCodecDescriptor`, and `width`,
`height`, `sample_rate` on `AVCodecParameters`) are added to the pxd
declarations so they can be accessed from Cython.
Closes#1970
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
0 commit comments