Skip to content

Update av requirement from <17,>=16.1.0 to >=16.1.0,<20 in /backend - #15

Open
dependabot[bot] wants to merge 1 commit into
mac-local-mlx-q4from
dependabot/pip/backend/av-gte-16.1.0-and-lt-20
Open

dependabot[bot] wants to merge 1 commit into
mac-local-mlx-q4from
dependabot/pip/backend/av-gte-16.1.0-and-lt-20

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 11, 2026

Copy link
Copy Markdown

Updates the requirements on av to permit the latest version.

Release notes

Sourced from av's releases.

v19.0.2

What's Changed

New Contributors

Full Changelog: PyAV-Org/PyAV@v19.0.1...v19.0.2

Changelog

Sourced from av's changelog.

v19.0.2

Fixes:

  • Audio encoding now correctly passes the codec's thread_count to its internal :class:.AudioResampler, which takes a new threads argument, as video encoding does for its reformatter. Audio codecs without threading (e.g. MP3) resolve thread_count to 1, but the resampler ignored it and started an idle thread per CPU. By :gh-user:tonyay163.
  • Output containers now pass their options to avio_open2() before avformat_write_header(), as the ffmpeg program does, so protocol options are used by the protocol. By :gh-user:ANDYwyLEE.
  • Fix memory corruption bug when decoding audio with custom channel layouts: :class:.AudioLayout, :class:.AudioFrame, and :class:.AudioCodecContext shallow-copied channel layouts, so custom-order layouts (e.g. "FR+FL") were double freed. Fixes (:issue:2444) by :gh-user:WyattBlue.

v19.0.1

Fixes:

  • Reading :attr:.Frame.side_data no longer holds the frame in a reference cycle, which kept its picture buffer alive until gc ran. By :gh-user:WyattBlue.
  • :class:.MotionVectors no longer memoizes the vectors it hands out, a cache that never evicted and put every one of them in a reference cycle with the side data, retaining 1640 objects for a single 640x360 frame. By :gh-user:WyattBlue.
  • :attr:.Stream.index_entries is now a view built on access rather than an object allocated for every stream whether or not anything reads it, which also takes the stream out of a reference cycle with it. Fixes (:issue:2425) by :gh-user:WyattBlue.
  • :class:.Filter and :class:.FilterContext pads are now built on access rather than cached, which takes a filter out of a reference cycle with its pads and makes a pad compare equal by what it denotes. By :gh-user:WyattBlue.

v19.0.0

Major:

  • Drop support for Python 3.11. Binary wheels are now built for Python 3.12 and later.
  • Remove the undocumented CodecContext.hwaccel attribute. It held the HWAccel settings object passed in, not the live device context; use CodecContext.is_hwaccel to check whether hardware acceleration is in use.
  • Rational attributes (time_base, average_rate, base_rate, guessed_rate, framerate, rate, sample_aspect_ratio, and display_aspect_ratio) now return :class:av.AVRational rather than fractions.Fraction, and are never None: an unset value is the falsy AVRational(0, 1). Test them with if not stream.time_base: instead of is None. Setters still accept a fractions.Fraction.
  • Closing an :class:.OutputContainer now frees its context, so using one afterwards raises Container is not open instead of continuing against a finished file. Muxing has no avformat_close_input() to do this for it, so add_stream(), mux(), start_encoding() and the rest kept working after close(), and streams held from it stayed readable.
  • Remove Capabilities.hwaccel, Capabilities.hwaccel_vdpau, and Capabilities.neg_linesizes, none of which FFmpeg defines any more.
  • Remove the metadata_encoding and metadata_errors arguments to :func:av.open, and the matching attributes. Metadata is now always read and written as UTF-8 with surrogateescape, which is byte exact: a tag in another encoding survives as surrogates and is recovered per key with value.encode("utf-8", "surrogateescape").decode("cp1251"). Previously one encoding had to be chosen for a whole container, so a file mixing encodings across tags could not be represented at all.
  • Remove the stream_options argument to :func:av.open and the matching attribute. They only ever reached avformat_find_stream_info(), and only for formats that expose their streams before it runs, so they raised for MPEG and friends; output containers rejected them outright. Pass options for every stream, set stream.codec_context.options for one, and Container.add_stream(..., options={}) when writing.

Features:

  • av.dump_codecs() now lists every codec FFmpeg knows of rather than only those with an encoder or a decoder, so data and attachment codecs appear, matching ffmpeg -codecs. Its legend gains the ..D... and ..T... media types.
  • ContainerFormat.fixed_framesize reports whether a format wants fixed size audio frames.
  • :class:.CodecContext exposes more of AVCodecContext: pkt_timebase, frame_num, active_thread_type, bits_per_raw_sample, compression_level, rc_buffer_size, min_bit_rate, a setter for max_bit_rate, the audio initial_padding, trailing_padding, and seek_preroll, and stats_in/stats_out for two-pass encoding. VideoCodecContext gains chroma_sample_location, refs, and mb_decision; AudioCodecContext gains block_align.
  • CodecContext.coded_side_data and CodecContext.decoded_side_data expose the context's global side data as dicts of bytes, keyed by packet side data name and :class:~av.sidedata.sidedata.Type respectively. Stream wide HDR metadata, such as mastering display and content light level, arrives in decoded_side_data once a frame has been decoded.
  • VideoFrame.chroma_location exposes AVFrame.chroma_location, the position of the chroma samples relative to the luma samples, and the new ChromaLocation enum names its values. Only the codec context side of the field was wrapped, as VideoCodecContext.chroma_sample_location, so the siting a decoder actually reported per frame could not be read at all. Each property mirrors its C field name, which FFmpeg spells differently on the two structs.
  • Enums gained the members FFmpeg has since added: Properties.FIELDS, Properties.ENHANCEMENT, PixFmtLoss.EXCESS_RESOLUTION, PixFmtLoss.EXCESS_DEPTH, Flags2.icc_profiles, format.Flags.experimental, Interpolation.STRICT, Interpolation.UNSTABLE, ColorTrc.V_LOG, ColorPrimaries.V_GAMUT, the LCEVC, VIEW_ID, THREE_D_REFERENCE_DISPLAYS, and EXIF members of sidedata.Type, and the exif, dynamic_hdr_smpte_2094_app5, and hevc_conf packet side data names.

Fixes:

  • Frame.side_data and PacketSideData.data_type no longer raise on side data types FFmpeg has added since PyAV last listed them. The packet side data names were missing three, so reading, say, the AV_PKT_DATA_HEVC_CONF an HEVC stream in MP4 or Matroska carries raised IndexError. A frame side data type that no sidedata.Type member names, which is anything a newer FFmpeg than PyAV was built against added, now becomes an UNKNOWN_<value> member rather than raising ValueError.
  • CodecContext.bit_rate_tolerance returns its value instead of always None; the getter was missing its return.
  • A rejected add_stream() or add_mux_stream() no longer breaks the container.
  • InputContainer.size returns None when the size cannot be determined rather than the negative AVERROR it was passing through, which read as a plausible byte count. A non-seekable input, such as a pipe, reported -78.
  • av.dump_codecs() no longer drops the canonical names h264, hevc, av1, dirac, and ilbc, each of which was overwritten by the row of whichever encoder it resolved to.

... (truncated)

Commits
  • a4ad013 Release 19.0.2
  • 5e489d6 Deep copy AVChannelLayout to fix double free, fixes #2444
  • 78f906b Pass output options so protocol uses them
  • e15e4b3 Update hwcontext_cuda definitions
  • 333bc1d Pass thread_count to the audio encode resampler
  • ae38dc3 Bump to next dev version
  • 85fcb47 Move macOS CI off deprecated macos-14 runners
  • 52e6691 Release 19.0.1
  • 9093605 Update readme
  • bcc95ff Build filter pads on access instead of caching them
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [av](https://github.com/PyAV-Org/PyAV) to permit the latest version.
- [Release notes](https://github.com/PyAV-Org/PyAV/releases)
- [Changelog](https://github.com/PyAV-Org/PyAV/blob/master/CHANGELOG.rst)
- [Commits](PyAV-Org/PyAV@v16.1.0...v19.0.2)

---
updated-dependencies:
- dependency-name: av
  dependency-version: 19.0.2
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants