Skip to content

Commit d5daaf4

Browse files
authored
Skip "against_cli" encoder tests in Windows x FFmpeg 8 (#1412)
1 parent 09fb932 commit d5daaf4

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

test/test_encoders.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,10 @@ def test_round_trip(self, method, format, tmp_path):
283283
],
284284
)
285285
@pytest.mark.parametrize("method", ("to_file", "to_tensor", "to_file_like"))
286+
@pytest.mark.skipif(
287+
IS_WINDOWS and ffmpeg_major_version == 8,
288+
reason="against_cli tests fail on Windows with FFmpeg 8",
289+
)
286290
def test_against_cli(
287291
self,
288292
asset,
@@ -1042,6 +1046,10 @@ def test_against_to_file(self, tmp_path, format, method):
10421046
)
10431047
@pytest.mark.parametrize("method", ("to_file", "to_tensor", "to_file_like"))
10441048
@pytest.mark.parametrize("frame_rate", [30, 29.97])
1049+
@pytest.mark.skipif(
1050+
IS_WINDOWS and ffmpeg_major_version == 8,
1051+
reason="against_cli tests fail on Windows with FFmpeg 8",
1052+
)
10451053
def test_video_encoder_against_ffmpeg_cli(
10461054
self, tmp_path, format, encode_params, method, frame_rate
10471055
):
@@ -1371,6 +1379,10 @@ def test_extra_options_utilized(self, tmp_path, profile, colorspace, color_range
13711379
@pytest.mark.parametrize("color_space", ("bt470bg", "bt709", "bt2020nc", None))
13721380
# Full/PC range, Limited/TV range
13731381
@pytest.mark.parametrize("color_range", ("pc", "tv", None))
1382+
@pytest.mark.skipif(
1383+
IS_WINDOWS and ffmpeg_major_version == 8,
1384+
reason="against_cli tests fail on Windows with FFmpeg 8",
1385+
)
13741386
def test_nvenc_against_ffmpeg_cli(
13751387
self, tmp_path, method, format, codec, color_space, color_range
13761388
):
@@ -2196,6 +2208,10 @@ def test_add_audio_output_num_channels(self, tmp_path, method):
21962208
@pytest.mark.parametrize("method", ("to_file", "to_file_like"))
21972209
@pytest.mark.parametrize("frame_rate", [30, 29.97])
21982210
@needs_ffmpeg_cli
2211+
@pytest.mark.skipif(
2212+
IS_WINDOWS and ffmpeg_major_version == 8,
2213+
reason="against_cli tests fail on Windows with FFmpeg 8",
2214+
)
21992215
def test_video_against_ffmpeg_cli(
22002216
self, tmp_path, format, encode_params, method, frame_rate
22012217
):
@@ -2337,6 +2353,10 @@ def test_video_against_ffmpeg_cli(
23372353
],
23382354
)
23392355
@pytest.mark.parametrize("method", ("to_file", "to_file_like"))
2356+
@pytest.mark.skipif(
2357+
IS_WINDOWS and ffmpeg_major_version == 8,
2358+
reason="against_cli tests fail on Windows with FFmpeg 8",
2359+
)
23402360
def test_audio_against_cli(
23412361
self,
23422362
asset,
@@ -3414,6 +3434,10 @@ def test_fragmented_mp4_truncation(self, format, method, tmp_path):
34143434
@pytest.mark.parametrize("color_space", ("bt470bg", "bt709", "bt2020nc", None))
34153435
# Full/PC range, Limited/TV range
34163436
@pytest.mark.parametrize("color_range", ("pc", "tv", None))
3437+
@pytest.mark.skipif(
3438+
IS_WINDOWS and ffmpeg_major_version == 8,
3439+
reason="against_cli tests fail on Windows with FFmpeg 8",
3440+
)
34173441
def test_nvenc_against_ffmpeg_cli(
34183442
self, tmp_path, method, format, codec, color_space, color_range
34193443
):

0 commit comments

Comments
 (0)