We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ecf666 commit 79c3934Copy full SHA for 79c3934
src/torchcodec/decoders/_core/CudaDevice.cpp
@@ -98,10 +98,14 @@ AVBufferRef* getFFMPEGContextFromExistingCudaContext(
98
nullptr,
99
AV_CUDA_USE_CURRENT_CONTEXT);
100
if (err < 0) {
101
+ /* clang-format off */
102
TORCH_CHECK(
103
false,
- "Failed to create specified HW device",
104
- getFFMPEGErrorStringFromErrorCode(err));
+ "Failed to create specified HW device. This typically happens when ",
105
+ "your installed FFmpeg doesn't support CUDA (see ",
106
+ "https://github.com/pytorch/torchcodec#installing-cuda-enabled-torchcodec",
107
+ "). FFmpeg error: ", getFFMPEGErrorStringFromErrorCode(err));
108
+ /* clang-format on */
109
}
110
return hw_device_ctx;
111
0 commit comments