From 7f3f213c3a4f62da13213e0fc49adc9af3356177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon-Martin=20Schr=C3=B6der?= Date: Wed, 15 Mar 2023 09:36:53 +0100 Subject: [PATCH] Add documentation Closes #1004 --- av/container/core.pyx | 1 + av/container/output.pyx | 3 +++ 2 files changed, 4 insertions(+) diff --git a/av/container/core.pyx b/av/container/core.pyx index 4b629b36e..19675d5e0 100755 --- a/av/container/core.pyx +++ b/av/container/core.pyx @@ -362,6 +362,7 @@ def open(file, mode=None, format=None, options=None, ``url`` is the url to open, ``flags`` is a combination of AVIO_FLAG_* and ``options`` is a dictionary of additional options. The callable should return a file-like object. + :rtype: Container For devices (via ``libavdevice``), pass the name of the device to ``format``, e.g.:: diff --git a/av/container/output.pyx b/av/container/output.pyx index c4a7b5a33..0107ff17e 100644 --- a/av/container/output.pyx +++ b/av/container/output.pyx @@ -53,6 +53,9 @@ cdef class OutputContainer(Container): Examples for video include ``24``, ``23.976``, and ``Fraction(30000,1001)``. Examples for audio include ``48000`` and ``44100``. + :param template: Copy codec from another :class:`~av.stream.Stream` instance. + :param dict options: Stream options. + :param \\**kwargs: Set attributes of the stream. :returns: The new :class:`~av.stream.Stream`. """