@@ -591,7 +591,7 @@ def test_get_frame_at_av1(self, device):
591
591
if device == "cuda" and get_ffmpeg_major_version () == 4 :
592
592
return
593
593
594
- if device == "cuda" and in_fbcode ():
594
+ if "cuda" in device and in_fbcode ():
595
595
pytest .skip ("decoding on CUDA is not supported internally" )
596
596
597
597
decoder = VideoDecoder (AV1_VIDEO .path , device = device )
@@ -1477,6 +1477,9 @@ def test_beta_cuda_interface_get_frame_at(
1477
1477
if seek_mode == "approximate" and not supports_approximate_mode (asset ):
1478
1478
pytest .skip ("asset doesn't work with approximate mode" )
1479
1479
1480
+ if in_fbcode () and asset is AV1_VIDEO :
1481
+ pytest .skip ("AV1 CUDA not supported internally" )
1482
+
1480
1483
ref_decoder = VideoDecoder (asset .path , device = "cuda" , seek_mode = seek_mode )
1481
1484
beta_decoder = VideoDecoder (
1482
1485
asset .path , device = "cuda:0:beta" , seek_mode = seek_mode
@@ -1522,6 +1525,8 @@ def test_beta_cuda_interface_get_frames_at(
1522
1525
):
1523
1526
if seek_mode == "approximate" and not supports_approximate_mode (asset ):
1524
1527
pytest .skip ("asset doesn't work with approximate mode" )
1528
+ if in_fbcode () and asset is AV1_VIDEO :
1529
+ pytest .skip ("AV1 CUDA not supported internally" )
1525
1530
1526
1531
ref_decoder = VideoDecoder (asset .path , device = "cuda" , seek_mode = seek_mode )
1527
1532
beta_decoder = VideoDecoder (
@@ -1566,6 +1571,8 @@ def test_beta_cuda_interface_get_frames_at(
1566
1571
def test_beta_cuda_interface_get_frame_played_at (self , asset , seek_mode ):
1567
1572
if seek_mode == "approximate" and not supports_approximate_mode (asset ):
1568
1573
pytest .skip ("asset doesn't work with approximate mode" )
1574
+ if in_fbcode () and asset is AV1_VIDEO :
1575
+ pytest .skip ("AV1 CUDA not supported internally" )
1569
1576
1570
1577
ref_decoder = VideoDecoder (asset .path , device = "cuda" , seek_mode = seek_mode )
1571
1578
beta_decoder = VideoDecoder (
@@ -1607,6 +1614,8 @@ def test_beta_cuda_interface_get_frame_played_at(self, asset, seek_mode):
1607
1614
def test_beta_cuda_interface_get_frames_played_at (self , asset , seek_mode ):
1608
1615
if seek_mode == "approximate" and not supports_approximate_mode (asset ):
1609
1616
pytest .skip ("asset doesn't work with approximate mode" )
1617
+ if in_fbcode () and asset is AV1_VIDEO :
1618
+ pytest .skip ("AV1 CUDA not supported internally" )
1610
1619
1611
1620
ref_decoder = VideoDecoder (asset .path , device = "cuda" , seek_mode = seek_mode )
1612
1621
beta_decoder = VideoDecoder (
@@ -1649,6 +1658,8 @@ def test_beta_cuda_interface_get_frames_played_at(self, asset, seek_mode):
1649
1658
def test_beta_cuda_interface_backwards (self , asset , seek_mode ):
1650
1659
if seek_mode == "approximate" and not supports_approximate_mode (asset ):
1651
1660
pytest .skip ("asset doesn't work with approximate mode" )
1661
+ if in_fbcode () and asset is AV1_VIDEO :
1662
+ pytest .skip ("AV1 CUDA not supported internally" )
1652
1663
1653
1664
ref_decoder = VideoDecoder (asset .path , device = "cuda" , seek_mode = seek_mode )
1654
1665
beta_decoder = VideoDecoder (
0 commit comments