Pyav

Latest version: v14.2.1

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

Scan your dependencies

Page 2 of 8

12.3.0

-------

Features:

- Support libav's `av_log_set_level` by :gh-user:`materight` in (:pr:`1448`).
- Add Graph.link_nodes by :gh-user:`WyattBlue` in (:pr:`1449`).
- Add default codec properties by :gh-user:`WyattBlue` in (:pr:`1450`).
- Remove the xvid and ass packages in ffmpeg binaries because they were unused by :gh-user:`WyattBlue` in (:pr:`1462`).
- Add supported_codecs property to OutputContainer by :gh-user:`WyattBlue` in (:pr:`1465`).
- Add text and dialogue property to AssSubtitle, remove TextSubtitle by :gh-user:`WyattBlue` in (:pr:`1456`).

Fixes:

- Include libav headers in final distribution by :gh-user:`materight` in (:pr:`1455`).
- Fix segfault when calling subtitle_stream.decode() by :gh-user:`WyattBlue` in (:pr:`1460`).
- flushing subtitle decoder requires a new uninitialized packet by :gh-user:`moonsikpark` in (:pr:`1461`).
- Set default color range for VideoReformatter.format() by :gh-user:`elxy` in (:pr:`1458`).
- Resampler: format, layout accepts `str` `int` too by :gh-user:`WyattBlue` in (:pr:`1446`).

12.2.0

-------

Features:

- Add a `make_writable` method to `Frame` instances (:issue:`1414`).
- Use `av_guess_sample_aspect_ratio` to report sample and display aspect ratios.

Fixes:

- Fix a crash when assigning an `AudioLayout` to `AudioCodecContext.layout` (:issue:`1434`).
- Remove a circular reference which caused `AudioSampler` to occupy memory until garbage collected (:issue:`1429`).
- Fix more type stubs, remove incorrect `__init__.pyi`.

12.1.0

-------

Features:

- Build binary wheels with webp support.
- Allow disabling logs, disable logs by default.
- Add bitstream filters by :gh-user:`skeskinen` in (:pr:`1379` :issue:`1375`).
- Expose CodecContext flush_buffers by :gh-user:`skeskinen` in (:pr:`1382`).

Fixes:

- Fix type stubs, add missing type stubs.
- Add S12M_TIMECODE by :gh-user:`WyattBlue` in (:pr:`1381`).
- Subtitle.text now returns bytes by :gh-user:`WyattBlue` in (:pr:`1398`).
- Allow packet.duration to be writable by :gh-user:`WyattBlue` in (:pr:`1399`).
- Remove deprecated `VideoStream.frame_rate` by :gh-user:`WyattBlue` in (:pr:`1351`).
- Build with Arm for PyPy now by :gh-user:`WyattBlue` in (:pr:`1395`).
- Fix 1378 by :gh-user:`WyattBlue` in (:pr:`1400`).
- setup.py: use PKG_CONFIG env var to get the pkg-config to use by :gh-user:`Artturin` in (:pr:`1387`).

12.0.0

-------

Major:

- Add type hints.
- Update FFmpeg to 6.1.1 for the binary wheels.
- Update libraries for the binary wheels (notably dav1d to 1.4.1).
- Deprecate VideoCodecContext.gop_size for decoders by :gh-user:`JoeSchiff` in (:pr:`1256`).
- Deprecate frame.index by :gh-user:`JoeSchiff` in (:pr:`1218`).

Features:

- Allow using pathlib.Path for av.open by :gh-user:`WyattBlue` in (:pr:`1231`).
- Add `max_b_frames` property to CodecContext by :gh-user:`davidplowman` in (:pr:`1119`).
- Add `encode_lazy` method to CodecContext by :gh-user:`rawler` in (:pr:`1092`).
- Add `color_range` to CodecContext/Frame by :gh-user:`johanjeppsson` in (:pr:`686`).
- Set `time_base` for AudioResampler by :gh-user:`daveisfera` in (:issue:`1209`).
- Add support for ffmpeg's AVCodecContext::delay by :gh-user:`JoeSchiff` in (:issue:`1279`).
- Add `color_primaries`, `color_trc`, `colorspace` to VideoStream by :gh-user:`WyattBlue` in (:pr:`1304`).
- Add `bits_per_coded_sample` to VideoCodecContext by :gh-user:`rvanlaar` in (:pr:`1203`).
- AssSubtitle.ass now returns as bytes by :gh-user:`WyattBlue` in (:pr:`1333`).
- Expose DISPLAYMATRIX side data by :gh-user:`hyenal` in (:pr:`1249`).

Fixes:

- Convert deprecated Cython extension class properties to decorator syntax by :gh-user:`JoeSchiff`.
- Check None packet when setting time_base after decode by :gh-user:`philipnbbc` in (:pr:`1281`).
- Remove deprecated `Buffer.to_bytes` by :gh-user:`WyattBlue` in (:pr:`1286`).
- Remove deprecated `Packet.decode_one` by :gh-user:`WyattBlue` in (:pr:`1301`).

11.0.0

-------

Major:

- Add support for FFmpeg 6.0, drop support for FFmpeg < 5.0.
- Add support for Python 3.12, drop support for Python < 3.8.
- Build binary wheels against libvpx 1.13.1 to fix CVE-2023-5217.
- Build binary wheels against FFmpeg 6.0.

Features:

- Add support for the `ENCODER_FLUSH` encoder flag (:issue:`1067`).
- Add VideoFrame ndarray operations for yuv444p/yuvj444p formats (:issue:`788`).
- Add setters for `AVFrame.dts`, `AVPacket.is_keyframe` and `AVPacket.is_corrupt` (:issue:`1179`).

Fixes:

- Fix build using Cython 3 (:issue:`1140`).
- Populate new streams with codec parameters (:issue:`1044`).
- Explicitly set `python_requires` to avoid installing on incompatible Python (:issue:`1057`).
- Make `AudioFifo.__repr__` safe before the first frame (:issue:`1130`).
- Guard input container members against use after closes (:issue:`1137`).

10.0.0

-------

Major:

- Add support for FFmpeg 5.0 and 5.1 (:issue:`817`).
- Drop support for FFmpeg < 4.3.
- Deprecate `CodecContext.time_base` for decoders (:issue:`966`).
- Deprecate `VideoStream.framerate` and `VideoStream.rate` (:issue:`1005`).
- Stop proxying `Codec` from `Stream` instances (:issue:`1037`).

Features:

- Update FFmpeg to 5.1.2 for the binary wheels.
- Provide binary wheels for Python 3.11 (:issue:`1019`).
- Add VideoFrame ndarray operations for gbrp formats (:issue:`986`).
- Add VideoFrame ndarray operations for gbrpf32 formats (:issue:`1028`).
- Add VideoFrame ndarray operations for nv12 format (:issue:`996`).

Fixes:

- Fix conversion to numpy array for multi-byte formats (:issue:`981`).
- Safely iterate over filter pads (:issue:`1000`).

Page 2 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.