Pyav

Latest version: v14.2.1

Safety actively analyzes 708310 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 8

0.5.3

------

Minor:

- Expose :attr:`.VideoFrame.pict_type` as :class:`.PictureType` enum.
(:pr:`402`)
- Expose :attr:`.Codec.video_rates` and :attr:`.Codec.audio_rates`.
(:pr:`381`)

Patch:

- Fix :attr:`.Packet.time_base` handling during flush.
(:pr:`398`)
- :meth:`.VideoFrame.reformat` can throw exceptions when requested colorspace
transforms aren't possible.
- Wrapping the stream object used to overwrite the ``pix_fmt`` attribute.
(:pr:`390`)

Runtime:

- Deprecate ``VideoFrame.ptr`` in favour of :attr:`VideoFrame.buffer_ptr`.
- Deprecate ``Plane.update_buffer()`` and ``Packet.update_buffer`` in favour of
:meth:`.Plane.update`.
(:pr:`407`)
- Deprecate ``Plane.update_from_string()`` in favour of :meth:`.Plane.update`.
(:pr:`407`)
- Deprecate ``AudioFrame.to_nd_array()`` and ``VideoFrame.to_nd_array()`` in
favour of :meth:`.AudioFrame.to_ndarray` and :meth:`.VideoFrame.to_ndarray`.
(:pr:`404`)

Build:

- CI covers more cases, including macOS.
(:pr:`373` and :pr:`399`)
- Fix many compilation warnings.
(:issue:`379`, :pr:`380`, :pr:`387`, and :pr:`388`)

Docs:

- Docstrings for many commonly used attributes.
(:pr:`372` and :pr:`409`)

0.5.2

------

Build:

- Fixed Windows build, which broke in v0.5.1.
- Compiler checks are not cached by default. This behaviour is retained if you
``source scripts/activate.sh`` to develop PyAV.
(:issue:`256`)
- Changed to ``PYAV_SETUP_REFLECT_DEBUG=1`` from ``PYAV_DEBUG_BUILD=1``.

0.5.1

------

Build:

- Set ``PYAV_DEBUG_BUILD=1`` to force a verbose reflection (mainly for being
installed via ``pip``, which is why this is worth a release).

0.5.0

------

Major:

- Dropped support for Libav in general.
(:issue:`110`)
- No longer uses libavresample.

Minor:

- ``av.open`` has ``container_options`` and ``stream_options``.
- ``Frame`` includes ``pts`` in ``repr``.

Patch:

- EnumItem's hash calculation no longer overflows.
(:issue:`339`, :issue:`341` and :issue:`342`.)
- Frame.time_base was not being set in most cases during decoding.
(:issue:`364`)
- CodecContext.options no longer needs to be manually initialized.
- CodexContext.thread_type accepts its enums.

0.4.1

------

Minor:

- Add `Frame.interlaced_frame` to indicate if the frame is interlaced.
(:issue:`327` by :gh-user:`MPGek`)
- Add FLTP support to ``Frame.to_nd_array()``.
(:issue:`288` by :gh-user:`rawler`)
- Expose ``CodecContext.extradata`` for codecs that have extra data, e.g.
Huffman tables.
(:issue:`287` by :gh-user:`adavoudi`)

Patch:

- Packets retain their refcount after muxing.
(:issue:`334`)
- `Codec` construction is more robust to find more codecs.
(:issue:`332` by :gh-user:`adavoudi`)
- Refined frame corruption detection.
(:issue:`291` by :gh-user:`Litterfeldt`)
- Unicode filenames are okay.
(:issue:`82`)

0.4.0

------

Major:

- ``CodecContext`` has taken over encoding/decoding, and can work in isolation
of streams/containers.
- ``Stream.encode`` returns a list of packets, instead of a single packet.
- ``AudioFifo`` and ``AudioResampler`` will raise ``ValueError`` if input frames
inconsistent ``pts``.
- ``time_base`` use has been revisited across the codebase, and may not be converted
between ``Stream.time_base`` and ``CodecContext.time_base`` at the same times
in the transcoding pipeline.
- ``CodecContext.rate`` has been removed, but proxied to ``VideoCodecContext.framerate``
and ``AudioCodecContext.sample_rate``. The definition is effectively inverted from
the old one (i.e. for 24fps it used to be ``1/24`` and is now ``24/1``).
- Fractions (e.g. ``time_base``, ``rate``) will be ``None`` if they are invalid.
- ``InputContainer.seek`` and ``Stream.seek`` will raise TypeError if given
a float, when previously they converted it from seconds.

Minor:

- Added ``Packet.is_keyframe`` and ``Packet.is_corrupt``.
(:issue:`226`)
- Many more ``time_base``, ``pts`` and other attributes are writable.
- ``Option`` exposes much more of the API (but not get/set).
(:issue:`243`)
- Expose metadata encoding controls.
(:issue:`250`)
- Expose ``CodecContext.skip_frame``.
(:issue:`259`)

Patch:

- Build doesn't fail if you don't have git installed.
(:issue:`184`)
- Developer environment works better with Python3.
(:issue:`248`)
- Fix Container deallocation resulting in segfaults.
(:issue:`253`)

Page 6 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.