PyAV の API リファレンス
PyAV (PyAV-Org/PyAV) の公開 API 103 件 —— クラス 23、関数 26、メソッド 54。実際のソースを静的解析して抽出した正確なシグネチャを掲載しています。
リポジトリ: PyAV-Org/PyAV
| 種別 | 件数 |
|---|---|
| クラス | 23 |
| 関数 | 26 |
| メソッド | 54 |
API 一覧
method
AUTHORS.Contributor.display_name() -> strReturn the formatted display name for the contributor.
method
AUTHORS.Contributor.format_line(bullet:str) -> strFormat the contributor line for RST output.
func
AUTHORS.main() -> NoneGenerate and print the AUTHORS.rst content.
func
AUTHORS.print_contributors(contributors:dict[str, Contributor]) -> NonePrint contributors grouped by logarithmic order of commits.
class
av.audio.fifo.AudioFifoA simple audio sample FIFO (First In First Out) buffer.
method
av.audio.fifo.AudioFifo.format()The :class:`.AudioFormat` of this FIFO.
method
av.audio.fifo.AudioFifo.layout()The :class:`.AudioLayout` of this FIFO.
class
av.audio.format.AudioFormatDescriptor of audio formats.
method
av.audio.format.AudioFormat.bits()Number of bits per sample.
method
av.audio.format.AudioFormat.bytes()Number of bytes per sample.
method
av.audio.format.AudioFormat.is_packed()Is this a packed format?
method
av.audio.format.AudioFormat.is_planar()Is this a planar format?
method
av.audio.format.AudioFormat.name()Canonical name of the sample format.
method
av.audio.format.AudioFormat.packed()The packed variant of this format.
method
av.audio.format.AudioFormat.planar()The planar variant of this format.
func
av.audio.format.get_audio_format(c_format:lib.AVSampleFormat) -> AudioFormatGet an AudioFormat without going through a string.
class
av.audio.frame.AudioFrameA frame of audio.
method
av.audio.frame.AudioFrame.rate()Another name for :attr:`sample_rate`.
method
av.audio.frame.AudioFrame.samples()Number of audio samples (per channel).
method
av.audio.frame.AudioFrame.to_ndarray()Get a numpy array of this frame.
func
av.audio.layout.get_audio_layout(c_layout:lib.AVChannelLayout) -> AudioLayoutGet an AudioLayout from Cython land.
method
av.buffer.Buffer.buffer_ptr()The memory address of the buffer.
class
av.codec.codec.CodecCodec(name, mode='r') :param str name: The codec name.
method
av.codec.codec.Codec.type()The media type of this codec.
func
av.codec.codec.dump_codecs()Print information about available codecs.
class
av.codec.context.CodecOptionDescription of a generic or codec-specific option.
class
av.codec.context.CodecOptionChoiceA named value accepted by a codec option.
class
av.container.core.AudioCodecEnumeration for audio codec IDs.
class
av.container.streams.StreamContainerA tuple-like container of :class:`Stream`.
func
av.datasets.cached_download(url:str, name:str) -> strDownload the data at a URL, and cache it under the given name.
func
av.datasets.curated(name:str) -> strDownload and return a path to a sample that is curated by the PyAV developers.
func
av.datasets.fate(name:str) -> strDownload and return a path to a sample from the FFmpeg test suite.
class
av.device.DeviceInfoInformation about an input or output device.
func
av.device.enumerate_input_devices(format_name:str) -> list[DeviceInfo]List the available input devices for a given format.
func
av.device.enumerate_output_devices(format_name:str) -> list[DeviceInfo]List the available output devices for a given format.
class
av.error.FFmpegErrorException class for errors from within FFmpeg.
func
av.error.code_to_tag(code:cython.int) -> bytesConvert an integer error code into 4-byte tag.
func
av.error.err_check(res:cython.int, filename=None) -> cython.intRaise appropriate exceptions from library return code.
func
av.error.tag_to_code(tag:bytes) -> cython.intConvert a 4-byte error tag into an integer code.
method
av.filter.graph.Graph.push(frame, at:cython.int=-1)Push a frame into the graph's buffer source(s).
method
av.filter.graph.Graph.vpull()Like `pull`, but only for VideoFrames.
func
av.filter.loudnorm.stats(loudnorm_args:str, stream:AudioStream) -> bytesGet loudnorm statistics for an audio stream.
class
av.format.ContainerFormatDescriptor of a container format.
method
av.format.ContainerFormat.flags()Get the flags bitmask for the format.
method
av.format.ContainerFormat.input()An input-only view of this format.
method
av.format.ContainerFormat.output()An output-only view of this format.
class
av.frame.FrameBase class for audio and video frames.
method
av.frame.Frame.is_corrupt()Is this frame corrupt?
method
av.frame.Frame.key_frame()Is this frame a key frame?
method
av.frame.Frame.make_writable()Ensures that the frame data is writable.
method
av.frame.Frame.metadata()Metadata attached to the frame by FFmpeg.
class
av.index.IndexEntriesA sequence-like view of FFmpeg's per-stream index entries.
class
av.index.IndexEntryA single entry from a stream's index.
class
av.logging.CaptureA context manager for capturing logs.
func
av.logging.adapt_level(level:cython.int)Convert a library log level to a Python log level.
func
av.logging.get_last_error()Get the last log that was at least ``ERROR``.
func
av.logging.get_level()Returns the current log level.
func
av.logging.get_skip_repeated()Will identical logs be emitted?
func
av.logging.log(level:cython.int, name:str, message:str)Send a log through the library logging system.
func
av.logging.set_level(level)set_level(level) Sets PyAV's log level.
func
av.logging.set_libav_level(level)Set libav's log level.
func
av.logging.set_skip_repeated(v)Set if identical logs will be emitted
class
av.packet.PacketA packet of encoded data within a :class:`~av.format.Stream`.
method
av.packet.Packet.iter_sidedata() -> Iterator[PacketSideData]iterate over side data of this packet.
method
av.packet.Packet.size()The size in bytes of this packet's data.
class
av.plane.PlaneBase class for audio and video planes.
class
av.sidedata.motionvectors.MotionVectorRepresents a single motion vector from video frame data.
method
av.stream.Stream.frames()The number of frames this stream contains.
method
av.stream.Stream.id()The format-specific ID of this stream.
method
av.stream.Stream.language()The language of the stream.
method
av.stream.Stream.profile()The profile of this stream.
method
av.stream.Stream.profiles()List the available profiles for this stream.
method
av.stream.Stream.type()The type of the stream.
func
av.stream.wrap_stream(container:Container, c_stream:cython.pointer[lib.AVStream], codec_context:CodecContext) -> StreamBuild an av.Stream for an existing AVStream.
class
av.subtitles.subtitle.SubtitleAn abstract base class for each concrete type of subtitle.
method
av.subtitles.subtitle.SubtitleSet.create(text:bytes, start:int, end:int, pts:int=0, subtitle_format:int=1) -> SubtitleSetCreate a SubtitleSet for encoding.
method
av.subtitles.subtitle.SubtitleSet.pts()Same as packet pts, in av.time_base.
func
av.subtitles.subtitle.build_subtitle(subtitle:SubtitleSet, index:cython.int) -> SubtitleBuild an av.Stream for an existing AVStream.
class
av.video.format.VideoFormat>>> format = VideoFormat('rgb24') >>> format.name 'rgb24'
method
av.video.format.VideoFormat.is_bayer()The pixel format contains Bayer data.
method
av.video.format.VideoFormat.is_big_endian()Pixel format is big-endian.
method
av.video.format.VideoFormat.name()Canonical name of the pixel format.
func
av.video.format.get_pix_fmt(name:cython.p_const_char) -> lib.AVPixelFormatWrapper for lib.av_get_pix_fmt with error checking.
class
av.video.frame.CudaContextA reusable FFmpeg CUDA context for frames imported with DLPack.
method
av.video.frame.VideoFrame.color_primaries()Color primaries of frame.
method
av.video.frame.VideoFrame.color_range()Color range of frame.
method
av.video.frame.VideoFrame.color_trc()Transfer characteristic of frame.
method
av.video.frame.VideoFrame.colorspace()Colorspace of frame.
method
av.video.frame.VideoFrame.from_image(img)Construct a frame from a ``PIL.Image``.
method
av.video.frame.VideoFrame.height()Height of the image, in pixels.
method
av.video.frame.VideoFrame.planes()A tuple of :class:`.VideoPlane` objects.
method
av.video.frame.VideoFrame.save(filepath:object)Save a VideoFrame as a JPG or PNG.
method
av.video.frame.VideoFrame.set_image(img)Update content from a ``PIL.Image``.
method
av.video.frame.VideoFrame.sw_format()For a hardware frame (e.g.
method
av.video.frame.VideoFrame.to_image(**kwargs)Get an RGB ``PIL.Image`` of this frame.
method
av.video.frame.VideoFrame.to_ndarray(channel_last=False, **kwargs)Get a numpy array of this frame.
method
av.video.frame.VideoFrame.to_rgb(**kwargs)Get an RGB version of this frame.
method
av.video.frame.VideoFrame.width()Width of the image, in pixels.
func
av.video.frame.alloc_video_frame() -> VideoFrameGet a mostly uninitialized VideoFrame.
class
av.video.reformatter.ColorPrimariesColor primaries of a video frame.
class
av.video.reformatter.ColorTrcTransfer characteristic (gamma curve) of a video frame.
method
av.video.stream.VideoStream.base_rate()The base frame rate of this stream.
method
av.video.stream.VideoStream.guessed_rate()The guessed frame rate of this stream.
この情報について
掲載しているシグネチャは PyAV-Org/PyAV の公開ソースコードを
Python の ast モジュールで静的解析し、引数名・デフォルト値・
型注釈・戻り値型をそのまま抽出したものです。実装コードは保存していません。
詳しくは仕組みの解説をご覧ください。