Package Details: python-ffmpeg 0.2.0-3

Git Clone URL: https://aur.archlinux.org/python-ffmpeg.git (read-only, click to copy)
Package Base: python-ffmpeg
Description: Python bindings for FFmpeg - with complex filtering support
Upstream URL: https://github.com/kkroening/ffmpeg-python
Licenses: Apache
Submitter: getzze
Maintainer: getzze
Last Packager: getzze
Votes: 13
Popularity: 0.187537
First Submitted: 2018-10-21 12:14 (UTC)
Last Updated: 2021-12-15 10:43 (UTC)

Latest Comments

sin commented on 2022-07-14 15:56 (UTC)

Dirty patch that removes the offending test:

diff --git a/ffmpeg/tests/test_ffmpeg.py b/ffmpeg/tests/test_ffmpeg.py
index 8dbc271..df0eb52 100644
--- a/ffmpeg/tests/test_ffmpeg.py
+++ b/ffmpeg/tests/test_ffmpeg.py
@@ -684,6 +684,7 @@ def test_mixed_passthrough_selectors():
     ]


+'''
 def test_pipe():
     width = 32
     height = 32
@@ -741,6 +742,7 @@ def test_pipe():
     out_data = p.stdout.read()
     assert len(out_data) == frame_size * (frame_count - start_frame)
     assert out_data == in_data[start_frame * frame_size :]
+'''


 def test__probe():

Don't forget to apply the patch in PKGBUILD

prepare() {
  cd "$srcdir/${_pkgname}-${pkgver}"
  sed -i -e 's/collections.Iterable/collections.abc.Iterable/g' ffmpeg/_run.py
  patch --forward --strip=1 --input="${srcdir}/test_pipe.patch"
}

FabioLolix commented on 2022-03-23 16:43 (UTC)

FYI tests are failing currently https://github.com/kkroening/ffmpeg-python/issues/636

xiretza commented on 2021-12-15 10:22 (UTC)

Upstream is obviously abandoned, if anyone wants to backport any necessary fixes, feel free to adopt the package - https://github.com/kkroening/ffmpeg-python/pull/330 looks like what's needed for the collections.abc issue, but it doesn't apply cleanly.

getzze commented on 2021-12-14 10:00 (UTC)

A quick fix, add this to the PKGBUILD:

prepare() {
  cd "$srcdir/${_pkgname}-${pkgver}"
  sed -i -e 's/collections.Iterable/collections.abc.Iterable/g' ffmpeg/_run.py
}

magicgoose commented on 2021-12-13 21:59 (UTC)

this is likely because it's not updated to support Python 3.10

mokkurkalve commented on 2021-12-13 02:02 (UTC)

Building fails in check() - even in clean chroot, like here. I put the output on pastebin: https://pastebin.com/1EeqWMyE