Skip to content

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
Closes  #1004
  • Loading branch information
moi90 authored and jlaine committed Oct 30, 2023
1 parent d2e750f commit 7f3f213
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions av/container/core.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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.::
Expand Down
3 changes: 3 additions & 0 deletions av/container/output.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
"""
Expand Down

0 comments on commit 7f3f213

Please sign in to comment.