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)