NVIDIA / VideoProcessingFramework

Set of Python bindings to C++ libraries which provides full HW acceleration for video decoding, encoding and GPU-accelerated color space and pixel format conversions
Apache License 2.0
1.32k stars 233 forks source link

Error messages for unsupported encoding codecs are not very helpful #459

Open theHamsta opened 1 year ago

theHamsta commented 1 year ago

Describe the bug

Error messages when trying to encode on a device that doesn't support that codec aren't great.

To Reproduce Run the code of #457 on a GPU that doesn't support HEVC encoding. Error message will be

Video frame width is too small: 256<25953400
Video frame height is too small: 256<25953400
`E           RuntimeError`

A RuntimeError without message will be thrown. I assume similar behavior could be observed for a GPU not supporting AV1.

While above error message might be true, the error message doesn't tell the user the root cause of the problem.

Expected behavior A error should be thrown that

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context N/A