brk-code

PyAV の API リファレンス

PyAV (PyAV-Org/PyAV) の公開 API 103 件 —— クラス 23、関数 26、メソッド 54。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。

リポジトリ: PyAV-Org/PyAV

種別件数
クラス23
関数26
メソッド54

API 一覧

methodAUTHORS.Contributor.display_name() -> str
Return the formatted display name for the contributor.
methodAUTHORS.Contributor.format_line(bullet:str) -> str
Format the contributor line for RST output.
funcAUTHORS.main() -> None
Generate and print the AUTHORS.rst content.
funcAUTHORS.print_contributors(contributors:dict[str, Contributor]) -> None
Print contributors grouped by logarithmic order of commits.
classav.audio.fifo.AudioFifo
A simple audio sample FIFO (First In First Out) buffer.
methodav.audio.fifo.AudioFifo.format()
The :class:`.AudioFormat` of this FIFO.
methodav.audio.fifo.AudioFifo.layout()
The :class:`.AudioLayout` of this FIFO.
classav.audio.format.AudioFormat
Descriptor of audio formats.
methodav.audio.format.AudioFormat.bits()
Number of bits per sample.
methodav.audio.format.AudioFormat.bytes()
Number of bytes per sample.
methodav.audio.format.AudioFormat.is_packed()
Is this a packed format?
methodav.audio.format.AudioFormat.is_planar()
Is this a planar format?
methodav.audio.format.AudioFormat.name()
Canonical name of the sample format.
methodav.audio.format.AudioFormat.packed()
The packed variant of this format.
methodav.audio.format.AudioFormat.planar()
The planar variant of this format.
funcav.audio.format.get_audio_format(c_format:lib.AVSampleFormat) -> AudioFormat
Get an AudioFormat without going through a string.
classav.audio.frame.AudioFrame
A frame of audio.
methodav.audio.frame.AudioFrame.rate()
Another name for :attr:`sample_rate`.
methodav.audio.frame.AudioFrame.samples()
Number of audio samples (per channel).
methodav.audio.frame.AudioFrame.to_ndarray()
Get a numpy array of this frame.
funcav.audio.layout.get_audio_layout(c_layout:lib.AVChannelLayout) -> AudioLayout
Get an AudioLayout from Cython land.
methodav.buffer.Buffer.buffer_ptr()
The memory address of the buffer.
classav.codec.codec.Codec
Codec(name, mode='r') :param str name: The codec name.
methodav.codec.codec.Codec.type()
The media type of this codec.
funcav.codec.codec.dump_codecs()
Print information about available codecs.
classav.codec.context.CodecOption
Description of a generic or codec-specific option.
classav.codec.context.CodecOptionChoice
A named value accepted by a codec option.
classav.container.core.AudioCodec
Enumeration for audio codec IDs.
classav.container.streams.StreamContainer
A tuple-like container of :class:`Stream`.
funcav.datasets.cached_download(url:str, name:str) -> str
Download the data at a URL, and cache it under the given name.
funcav.datasets.curated(name:str) -> str
Download and return a path to a sample that is curated by the PyAV developers.
funcav.datasets.fate(name:str) -> str
Download and return a path to a sample from the FFmpeg test suite.
classav.device.DeviceInfo
Information about an input or output device.
funcav.device.enumerate_input_devices(format_name:str) -> list[DeviceInfo]
List the available input devices for a given format.
funcav.device.enumerate_output_devices(format_name:str) -> list[DeviceInfo]
List the available output devices for a given format.
classav.error.FFmpegError
Exception class for errors from within FFmpeg.
funcav.error.code_to_tag(code:cython.int) -> bytes
Convert an integer error code into 4-byte tag.
funcav.error.err_check(res:cython.int, filename=None) -> cython.int
Raise appropriate exceptions from library return code.
funcav.error.tag_to_code(tag:bytes) -> cython.int
Convert a 4-byte error tag into an integer code.
methodav.filter.graph.Graph.push(frame, at:cython.int=-1)
Push a frame into the graph's buffer source(s).
methodav.filter.graph.Graph.vpull()
Like `pull`, but only for VideoFrames.
funcav.filter.loudnorm.stats(loudnorm_args:str, stream:AudioStream) -> bytes
Get loudnorm statistics for an audio stream.
classav.format.ContainerFormat
Descriptor of a container format.
methodav.format.ContainerFormat.flags()
Get the flags bitmask for the format.
methodav.format.ContainerFormat.input()
An input-only view of this format.
methodav.format.ContainerFormat.output()
An output-only view of this format.
classav.frame.Frame
Base class for audio and video frames.
methodav.frame.Frame.is_corrupt()
Is this frame corrupt?
methodav.frame.Frame.key_frame()
Is this frame a key frame?
methodav.frame.Frame.make_writable()
Ensures that the frame data is writable.
methodav.frame.Frame.metadata()
Metadata attached to the frame by FFmpeg.
classav.index.IndexEntries
A sequence-like view of FFmpeg's per-stream index entries.
classav.index.IndexEntry
A single entry from a stream's index.
classav.logging.Capture
A context manager for capturing logs.
funcav.logging.adapt_level(level:cython.int)
Convert a library log level to a Python log level.
funcav.logging.get_last_error()
Get the last log that was at least ``ERROR``.
funcav.logging.get_level()
Returns the current log level.
funcav.logging.get_skip_repeated()
Will identical logs be emitted?
funcav.logging.log(level:cython.int, name:str, message:str)
Send a log through the library logging system.
funcav.logging.set_level(level)
set_level(level) Sets PyAV's log level.
funcav.logging.set_libav_level(level)
Set libav's log level.
funcav.logging.set_skip_repeated(v)
Set if identical logs will be emitted
classav.packet.Packet
A packet of encoded data within a :class:`~av.format.Stream`.
methodav.packet.Packet.iter_sidedata() -> Iterator[PacketSideData]
iterate over side data of this packet.
methodav.packet.Packet.size()
The size in bytes of this packet's data.
classav.plane.Plane
Base class for audio and video planes.
classav.sidedata.motionvectors.MotionVector
Represents a single motion vector from video frame data.
methodav.stream.Stream.frames()
The number of frames this stream contains.
methodav.stream.Stream.id()
The format-specific ID of this stream.
methodav.stream.Stream.language()
The language of the stream.
methodav.stream.Stream.profile()
The profile of this stream.
methodav.stream.Stream.profiles()
List the available profiles for this stream.
methodav.stream.Stream.type()
The type of the stream.
funcav.stream.wrap_stream(container:Container, c_stream:cython.pointer[lib.AVStream], codec_context:CodecContext) -> Stream
Build an av.Stream for an existing AVStream.
classav.subtitles.subtitle.Subtitle
An abstract base class for each concrete type of subtitle.
methodav.subtitles.subtitle.SubtitleSet.create(text:bytes, start:int, end:int, pts:int=0, subtitle_format:int=1) -> SubtitleSet
Create a SubtitleSet for encoding.
methodav.subtitles.subtitle.SubtitleSet.pts()
Same as packet pts, in av.time_base.
funcav.subtitles.subtitle.build_subtitle(subtitle:SubtitleSet, index:cython.int) -> Subtitle
Build an av.Stream for an existing AVStream.
classav.video.format.VideoFormat
>>> format = VideoFormat('rgb24') >>> format.name 'rgb24'
methodav.video.format.VideoFormat.is_bayer()
The pixel format contains Bayer data.
methodav.video.format.VideoFormat.is_big_endian()
Pixel format is big-endian.
methodav.video.format.VideoFormat.name()
Canonical name of the pixel format.
funcav.video.format.get_pix_fmt(name:cython.p_const_char) -> lib.AVPixelFormat
Wrapper for lib.av_get_pix_fmt with error checking.
classav.video.frame.CudaContext
A reusable FFmpeg CUDA context for frames imported with DLPack.
methodav.video.frame.VideoFrame.color_primaries()
Color primaries of frame.
methodav.video.frame.VideoFrame.color_range()
Color range of frame.
methodav.video.frame.VideoFrame.color_trc()
Transfer characteristic of frame.
methodav.video.frame.VideoFrame.colorspace()
Colorspace of frame.
methodav.video.frame.VideoFrame.from_image(img)
Construct a frame from a ``PIL.Image``.
methodav.video.frame.VideoFrame.height()
Height of the image, in pixels.
methodav.video.frame.VideoFrame.planes()
A tuple of :class:`.VideoPlane` objects.
methodav.video.frame.VideoFrame.save(filepath:object)
Save a VideoFrame as a JPG or PNG.
methodav.video.frame.VideoFrame.set_image(img)
Update content from a ``PIL.Image``.
methodav.video.frame.VideoFrame.sw_format()
For a hardware frame (e.g.
methodav.video.frame.VideoFrame.to_image(**kwargs)
Get an RGB ``PIL.Image`` of this frame.
methodav.video.frame.VideoFrame.to_ndarray(channel_last=False, **kwargs)
Get a numpy array of this frame.
methodav.video.frame.VideoFrame.to_rgb(**kwargs)
Get an RGB version of this frame.
methodav.video.frame.VideoFrame.width()
Width of the image, in pixels.
funcav.video.frame.alloc_video_frame() -> VideoFrame
Get a mostly uninitialized VideoFrame.
classav.video.reformatter.ColorPrimaries
Color primaries of a video frame.
classav.video.reformatter.ColorTrc
Transfer characteristic (gamma curve) of a video frame.
methodav.video.stream.VideoStream.base_rate()
The base frame rate of this stream.
methodav.video.stream.VideoStream.guessed_rate()
The guessed frame rate of this stream.

この情報について

掲載しているシグネチャは PyAV-Org/PyAV の公開ソースコードを Python の ast モジュールで静的解析し、引数名・デフォルト値・ 型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。 詳しくは仕組みの解説をご覧ください。

収録ライブラリ一覧(全 805 件)へ戻る