From c60af059ad3fc67a8828cb1c67e745e0c00a8107 Mon Sep 17 00:00:00 2001 From: WyattBlue Date: Mon, 18 Nov 2024 02:50:54 -0500 Subject: [PATCH] Skip qminmax if not x264 --- tests/test_encode.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_encode.py b/tests/test_encode.py index 90d30dfce..0848e9b1a 100644 --- a/tests/test_encode.py +++ b/tests/test_encode.py @@ -399,6 +399,10 @@ def encode_frames_with_qminmax(frames: list, shape: tuple, qminmax: tuple) -> in Returns: total length of the encoded bytes. """ + + if av.codec.Codec("h264", "w").name != "libx264": + pytest.skip() + file = io.BytesIO() container = av.open(file, mode="w", format="mp4") stream = container.add_stream("h264", rate=30)