Open chiboreache opened 2 years ago
I have the same issue. I'm on Artix, compiling in a clean chroot. I tried building the most-recent version from git as well, same result. I attempted to see if the problem was ffmpeg 5 rather than 4.4, but the legacy ffmpeg4.4 package doesn't seem to have files in the right directories and I'm not totally sure how to work around that.
Getting the same error from AUR repository. Any idea on how to fix this?
After analyzing this issue, it looks like @frankspace 's hypothesis is correct - it is not caused by python 3.10, but ffmpeg 5.0. It can be worked around by doing a downgrade.
Command for downgrading on Arch-based distributions (downgrades ffmpeg
, vmaf
and x264
- downgrading other packages may be needed as well):
THIS WAS TESTED ONLY IN A CONTAINER - DOWNGRADING PACKAGES MAY BREAK YOUR SYSTEM - USE AT YOUR OWN RISK
pacman -U https://archive.archlinux.org/packages/f/ffmpeg/ffmpeg-2%3A4.4.1-1-x86_64.pkg.tar.zst https://archive.archlinux.org/packages/x/x264/x264-3%3A0.163.r3060.5db6aa6-1-x86_64.pkg.tar.zst https://archive.archlinux.org/packages/v/vmaf/vmaf-1.5.3-1-x86_64.pkg.tar.zst
Alternatively it is possible to use pacman's cache, as described here.
Depending on your use case, another possible workaround is to remove the failing test (test_pipe
) from ffmpeg/tests/test_ffmpeg.py
.
downgrade was never an option..
Here's another build log failing in the same way: https://builds.garudalinux.org/repos/chaotic-aur/logs/python-ffmpeg.log
Possible fix here? https://aur.archlinux.org/cgit/aur.git/tree/test_pipe.patch?h=python-ffmpeg-patched-git
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():
Arch Linux - everything is bleeding edge..