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>
Copy file name to clipboardExpand all lines: CHANGELOG.rst
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@ Major:
37
37
38
38
Features:
39
39
40
+
- Add ``OutputContainer.add_mux_stream()`` for creating codec-context-free streams, enabling muxing of pre-encoded packets without an encoder, addressing :issue:`1970` by :gh-user:`WyattBlue`.
40
41
- Use zero-copy for Packet init from buffer data by :gh-user:`WyattBlue` in (:pr:`2199`).
41
42
- Expose AVIndexEntry by :gh-user:`Queuecumber` in (:pr:`2136`).
42
43
- Preserving hardware memory during cuvid decoding, exporting/importing via dlpack by :gh-user:`WyattBlue` in (:pr:`2155`).
0 commit comments