Skip to content

Commit

Permalink
Skip qminmax if not x264
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Nov 18, 2024
1 parent 12a2bdc commit c60af05
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_encode.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c60af05

Please sign in to comment.