From c4ec51f43fc800f4e697a5c0678c6b400b76b152 Mon Sep 17 00:00:00 2001 From: WyattBlue Date: Fri, 6 Dec 2024 03:39:49 -0500 Subject: [PATCH 1/2] `mp3` now works with `add_stream_from_template()` --- av/container/output.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/av/container/output.pyx b/av/container/output.pyx index 8fad652d4..a75e47d43 100644 --- a/av/container/output.pyx +++ b/av/container/output.pyx @@ -148,7 +148,7 @@ cdef class OutputContainer(Container): cdef const lib.AVCodec *codec cdef Codec codec_obj - if template.type == "subtitle": + if template.type != "video": codec_obj = template.codec_context.codec else: codec_obj = Codec(template.codec_context.codec.name, "w") From a693b7cd35febb11589e191c31d6963ecdd10de3 Mon Sep 17 00:00:00 2001 From: WyattBlue Date: Fri, 6 Dec 2024 03:43:28 -0500 Subject: [PATCH 2/2] Release 14.0.1 --- CHANGELOG.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 45de1e218..4a30385f9 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -24,6 +24,7 @@ Fixes: - Include header files in source distribution by :gh-user:`hmaarrfk` in (:pr:`1662`). - Cleanup ``AVStream.side_data`` leftovers by :gh-user:`lgeiger` in (:pr:`1674`). - Address :issue:`1663` by :gh-user:`WyattBlue`. +- Make ``mp3`` work with ``OutputContainer.add_stream_from_template()``. v14.0.0 -------