@@ -577,6 +577,9 @@ def test_get_frame_at_av1(self, device):
577
577
if device == "cuda" and get_ffmpeg_major_version () == 4 :
578
578
return
579
579
580
+ if device == "cuda" and in_fbcode ():
581
+ pytest .skip ("AV1 decoding on CUDA is not supported internally" )
582
+
580
583
decoder = VideoDecoder (AV1_VIDEO .path , device = device )
581
584
ref_frame10 = AV1_VIDEO .get_frame_data_by_index (10 )
582
585
ref_frame_info10 = AV1_VIDEO .get_frame_info (10 )
@@ -1292,6 +1295,10 @@ def setup_frame_mappings(tmp_path, file, stream_index):
1292
1295
# Return the custom frame mappings as a JSON string
1293
1296
return custom_frame_mappings
1294
1297
1298
+ @pytest .mark .skipif (
1299
+ in_fbcode (),
1300
+ reason = "ffprobe not available internally" ,
1301
+ )
1295
1302
@pytest .mark .parametrize ("device" , all_supported_devices ())
1296
1303
@pytest .mark .parametrize ("stream_index" , [0 , 3 ])
1297
1304
@pytest .mark .parametrize (
@@ -1338,12 +1345,16 @@ def test_custom_frame_mappings_json_and_bytes(
1338
1345
),
1339
1346
)
1340
1347
1348
+ @pytest .mark .skipif (
1349
+ in_fbcode (),
1350
+ reason = "ffprobe not available internally" ,
1351
+ )
1341
1352
@pytest .mark .parametrize ("device" , all_supported_devices ())
1342
1353
@pytest .mark .parametrize (
1343
1354
"custom_frame_mappings,expected_match" ,
1344
1355
[
1345
1356
pytest .param (
1346
- NASA_VIDEO . generate_custom_frame_mappings ( 0 ) ,
1357
+ None ,
1347
1358
"seek_mode" ,
1348
1359
id = "valid_content_approximate" ,
1349
1360
),
@@ -1361,6 +1372,8 @@ def test_custom_frame_mappings_json_and_bytes(
1361
1372
def test_custom_frame_mappings_init_fails (
1362
1373
self , device , custom_frame_mappings , expected_match
1363
1374
):
1375
+ if custom_frame_mappings is None :
1376
+ custom_frame_mappings = NASA_VIDEO .generate_custom_frame_mappings (0 )
1364
1377
with pytest .raises (ValueError , match = expected_match ):
1365
1378
VideoDecoder (
1366
1379
NASA_VIDEO .path ,
0 commit comments