obs-studio
obs-studio copied to clipboard
deps/media-playback: enable CUDA HW decoder
Description
Enables FFmpeg's CUDA hardware decoder.
Motivation and Context
To save CPU while playing media files on Linux environments with a NVIDIA GPU.
How Has This Been Tested?
Tested on a n1-standard machine on Google Cloud Platform with a T4 NVIDIA GPU, on Debian 11, by looping a video of Big Buck Bunny while monitoring the GPU usage using nvidia-smi
Types of changes
- Performance enhancement (non-breaking change which improves efficiency)
Checklist:
- [X] My code has been run through clang-format.
- [X] I have read the contributing document.
- [X] My code is not on the master branch.
- [X] The code has been tested.
- [X] All commit messages are properly formatted and commits squashed where appropriate.
- [X] I have included updates to all appropriate documentation.