forked from pool/python-av
Compare commits
6 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| bad4bef675 | |||
| 64eaf15e89 | |||
| 5435dbf093 | |||
| 6d7dac8846 | |||
| 49c68bef98 | |||
| 6ed1cd0ddd |
@@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:48223f000a252070f8e700ff634bb7fb3aa1b7bc7e450373029fbdd6f369ac31
|
|
||||||
size 3652129
|
|
||||||
3
av-14.2.0.tar.gz
Normal file
3
av-14.2.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:132b5d52ca262b97b0356e8f48cbbe54d0ac232107a722ab8cc8c0c19eafa17b
|
||||||
|
size 4063022
|
||||||
@@ -1,3 +1,125 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jun 13 05:35:08 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 25 01:37:52 UTC 2025 - Mia Herkt <mia@0x0.st>
|
||||||
|
|
||||||
|
- Update to 14.2.0:
|
||||||
|
See https://github.com/PyAV-Org/PyAV/compare/v13.1.0...v14.2.0
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Nov 19 15:35:30 UTC 2024 - Mia Herkt <mia@0x0.st>
|
||||||
|
|
||||||
|
- Disable tests because most of them have to be skipped due to
|
||||||
|
network access or are broken on crippled FFmpeg
|
||||||
|
- Update to 13.1.0:
|
||||||
|
Features:
|
||||||
|
* Allow passing Python objects around using `Frame.opaque` and
|
||||||
|
`Packet.opaque`
|
||||||
|
* Allow extradata to be set by encoders
|
||||||
|
* Add getting ffmpeg version info string
|
||||||
|
|
||||||
|
Fixes:
|
||||||
|
* Remove the `deprecation` module in anticipation of PEP 702.
|
||||||
|
* Add type stubs to previously unannotated API sections.
|
||||||
|
* Improve type stubs for both `mypy` and `mypy --strict`.
|
||||||
|
* Permit only setting `time_base` with a Fraction, as mypy is
|
||||||
|
unable to respect different types in getters vs setters.
|
||||||
|
* Declare `write_packet` function as const
|
||||||
|
|
||||||
|
- Changes in 13.0.0:
|
||||||
|
Major:
|
||||||
|
* Drop FFmpeg 5, Support FFmpeg 7.
|
||||||
|
* Drop Python 3.8, Support Python 3.13.
|
||||||
|
* Disallow initializing an AudioLayout object with an int.
|
||||||
|
* Disallow accessing gop_size, timebase as a decoder
|
||||||
|
(Raised deprecation warning before).
|
||||||
|
* Remove `ticks_per_frame` property because it was deprecated
|
||||||
|
in FFmpeg.
|
||||||
|
|
||||||
|
Features:
|
||||||
|
* Add AttachmentStream class.
|
||||||
|
* Add `best()` method to StreamContainer.
|
||||||
|
* Add `set_audio_frame_size()` method to Graph object.
|
||||||
|
* Add `nb_channels` property to AudioLayout object.
|
||||||
|
* Add `from_bytes()` method to VideoFrame object.
|
||||||
|
|
||||||
|
Fixes:
|
||||||
|
* Fix VideoCC's repl breaking when `self._format` is None.
|
||||||
|
* Fix getting `pix_fmt` property when VideoCC's `self._format`
|
||||||
|
is None.
|
||||||
|
|
||||||
|
- Changes in 12.3.0:
|
||||||
|
Features:
|
||||||
|
* Support libav's `av_log_set_level`
|
||||||
|
* Add Graph.link_nodes
|
||||||
|
* Add default codec properties
|
||||||
|
* Add supported_codecs property to OutputContainer
|
||||||
|
* Add text and dialogue property to AssSubtitle,
|
||||||
|
remove TextSubtitle
|
||||||
|
|
||||||
|
Fixes:
|
||||||
|
* Fix segfault when calling subtitle_stream.decode()
|
||||||
|
* flushing subtitle decoder requires a new uninitialized packet
|
||||||
|
* Set default color range for VideoReformatter.format()
|
||||||
|
* Resampler: format, layout accepts `str` `int` too
|
||||||
|
|
||||||
|
- Changes in 12.2.0:
|
||||||
|
Features:
|
||||||
|
* Add a `make_writable` method to `Frame` instances
|
||||||
|
gh#PyAV-Org/PyAV#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`
|
||||||
|
gh#PyAV-Org/PyAV#1434.
|
||||||
|
* Remove a circular reference which caused `AudioSampler` to
|
||||||
|
occupy memory until garbage collected
|
||||||
|
gh#PyAV-Org/PyAV#1429.
|
||||||
|
* Fix more type stubs, remove incorrect `__init__.pyi`.
|
||||||
|
|
||||||
|
- Changes in 12.1.0:
|
||||||
|
Features:
|
||||||
|
* Allow disabling logs, disable logs by default.
|
||||||
|
* Add bitstream filters
|
||||||
|
* Expose CodecContext flush_buffers
|
||||||
|
|
||||||
|
Fixes:
|
||||||
|
* Fix type stubs, add missing type stubs.
|
||||||
|
* Add S12M_TIMECODE
|
||||||
|
* Subtitle.text now returns bytes
|
||||||
|
* Allow packet.duration to be writable
|
||||||
|
* Remove deprecated `VideoStream.frame_rate`
|
||||||
|
|
||||||
|
- Changes in 12.0.0:
|
||||||
|
Major:
|
||||||
|
* Add type hints.
|
||||||
|
* Deprecate VideoCodecContext.gop_size for decoders
|
||||||
|
* Deprecate frame.index
|
||||||
|
|
||||||
|
Features:
|
||||||
|
* Allow using pathlib.Path for av.open
|
||||||
|
* Add `max_b_frames` property to CodecContext
|
||||||
|
* Add `encode_lazy` method to CodecContext
|
||||||
|
* Add `color_range` to CodecContext/Frame
|
||||||
|
* Set `time_base` for AudioResampler
|
||||||
|
* Add support for ffmpeg's AVCodecContext::delay
|
||||||
|
* Add `color_primaries`, `color_trc`, `colorspace` to VideoStream
|
||||||
|
* Add `bits_per_coded_sample` to VideoCodecContext
|
||||||
|
* AssSubtitle.ass now returns as bytes
|
||||||
|
* Expose DISPLAYMATRIX side data
|
||||||
|
|
||||||
|
Fixes:
|
||||||
|
* Convert deprecated Cython extension class properties to
|
||||||
|
decorator syntax
|
||||||
|
* Check None packet when setting time_base after decode
|
||||||
|
* Remove deprecated `Buffer.to_bytes`
|
||||||
|
* Remove deprecated `Packet.decode_one`
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Dec 5 17:34:56 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Tue Dec 5 17:34:56 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-av
|
# spec file for package python-av
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2025 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
|
|
||||||
%{?sle15_python_module_pythons}
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-av
|
Name: python-av
|
||||||
Version: 11.0.0
|
Version: 14.2.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Python bindings for FFmpeg's libraries
|
Summary: Python bindings for FFmpeg's libraries
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
@@ -27,18 +27,19 @@ Source: https://files.pythonhosted.org/packages/source/a/av/av-%{version
|
|||||||
BuildRequires: %{python_module Cython}
|
BuildRequires: %{python_module Cython}
|
||||||
BuildRequires: %{python_module devel >= 3.8}
|
BuildRequires: %{python_module devel >= 3.8}
|
||||||
BuildRequires: %{python_module numpy}
|
BuildRequires: %{python_module numpy}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: (libavutil-devel >= 4.3 with libavutil-devel < 5)
|
BuildRequires: (libavutil-devel >= 6 with libavutil-devel < 8)
|
||||||
BuildRequires: pkgconfig(libavdevice)
|
BuildRequires: pkgconfig(libavdevice)
|
||||||
BuildRequires: pkgconfig(libavfilter)
|
BuildRequires: pkgconfig(libavfilter)
|
||||||
BuildRequires: pkgconfig(libavutil)
|
BuildRequires: pkgconfig(libavutil)
|
||||||
Requires: python-numpy
|
Requires: python-numpy
|
||||||
Requires(post): update-alternatives
|
Requires(post): update-alternatives
|
||||||
Requires(postun):update-alternatives
|
Requires(postun): update-alternatives
|
||||||
%python_subpackages
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -47,19 +48,14 @@ Pythonic bindings for FFmpeg's libraries.
|
|||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n av-%{version}
|
%autosetup -p1 -n av-%{version}
|
||||||
|
|
||||||
# doctests and timeout require network to setup tests
|
|
||||||
rm tests/test_doctests.py tests/test_timeout.py
|
|
||||||
|
|
||||||
# All tests using fate_suite require fetching data from http://fate.ffmpeg.org/fate-suite/
|
|
||||||
sed -Ei 's/(from .common import .*), fate_suite(, .*)?/\1\2\ndef fate_suite(*a):\n import unittest; raise unittest.SkipTest\n/' tests/test_*.py
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_clone -a %{buildroot}%{_bindir}/pyav
|
%python_clone -a %{buildroot}%{_bindir}/pyav
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
%python_expand rm %{buildroot}%{$python_sitearch}/av/filter/*.{c,h}
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%python_install_alternative pyav
|
%python_install_alternative pyav
|
||||||
@@ -67,29 +63,11 @@ sed -Ei 's/(from .common import .*), fate_suite(, .*)?/\1\2\ndef fate_suite(*a):
|
|||||||
%postun
|
%postun
|
||||||
%python_uninstall_alternative pyav
|
%python_uninstall_alternative pyav
|
||||||
|
|
||||||
%check
|
|
||||||
mv av .av
|
|
||||||
# Skipping tests requiring mpeg4 codec
|
|
||||||
export disabled_tests="test_video_default_options or \
|
|
||||||
test_decode_video_corrupt or \
|
|
||||||
test_encoding_with_pts or \
|
|
||||||
test_decoder_extradata or \
|
|
||||||
test_decoder_timebase or \
|
|
||||||
test_encoder_extradata or \
|
|
||||||
test_encoder_pix_fmt or \
|
|
||||||
test_default_options or \
|
|
||||||
test_stream_probing or \
|
|
||||||
test_stream_index or \
|
|
||||||
test_codec_mpeg4 or \
|
|
||||||
test_codec_tag"
|
|
||||||
%pytest_arch tests -k "not ($disabled_tests)"
|
|
||||||
mv .av av
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%python_alternative %{_bindir}/pyav
|
%python_alternative %{_bindir}/pyav
|
||||||
%{python_sitearch}/av
|
%{python_sitearch}/av
|
||||||
%{python_sitearch}/av-%{version}-py%{python_version}.egg-info
|
%{python_sitearch}/av-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|||||||
Reference in New Issue
Block a user