@@ -1288,18 +1288,15 @@ def test_10bit_videos(self, device, asset):
1288
1288
# This just validates that we can decode 10-bit videos.
1289
1289
# TODO validate against the ref that the decoded frames are correct
1290
1290
1291
- if device == "cuda:0:beta" :
1292
- # This fails on our BETA interface on asset 0 (only!) with:
1291
+ if device == "cuda:0:beta" and asset is H264_10BITS :
1292
+ # This fails on the BETA interface with:
1293
1293
#
1294
1294
# RuntimeError: Codec configuration not supported on this GPU.
1295
1295
# Codec: 4, chroma format: 1, bit depth: 10
1296
1296
#
1297
- # I don't remember but I suspect asset 0 is actually the one that
1298
- # fallsback to the CPU path on the default CUDA interface (that
1299
- # would make sense)
1300
- # We should investigate if and how we could make that fallback
1301
- # happen for the BETA interface.
1302
- pytest .skip ("TODONVDEC P2 - investigate and unskip" )
1297
+ # It works on the default interface because FFmpeg fallsback to the
1298
+ # CPU, while the BETA interface doesn't.
1299
+ pytest .skip ("Asset not supported by NVDEC" )
1303
1300
1304
1301
decoder = VideoDecoder (asset .path , device = device )
1305
1302
decoder .get_frame_at (10 )
@@ -1674,12 +1671,11 @@ def test_beta_cuda_interface_backwards(self, asset, seek_mode):
1674
1671
1675
1672
@needs_cuda
1676
1673
def test_beta_cuda_interface_small_h265 (self ):
1677
- # TODONVDEC P2 investigate why/how the default interface can decode this
1678
- # video.
1674
+ # Test to illustrate current difference in behavior between the BETA and
1675
+ # the default interface: this video isn't supported by NVDEC, but in the
1676
+ # default interface, FFMPEG fallsback to the CPU while we don't.
1679
1677
1680
- # This is fine on the default interface - why?
1681
1678
VideoDecoder (H265_VIDEO .path , device = "cuda" ).get_frame_at (0 )
1682
- # But it fails on the beta interface due to input validation checks, which we took from DALI!
1683
1679
with pytest .raises (
1684
1680
RuntimeError ,
1685
1681
match = "Video is too small in at least one dimension. Provided: 128x128 vs supported:144x144" ,
0 commit comments