Cleanest way to install all video codecs on Fedora KDE 40

How about this?

For intel:

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install libavcodec-freeworld --allowerasing

sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install intel-media-driver --allowerasing

For AMD:

sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install libavcodec-freeworld --allowerasing

sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install mesa-va-drivers-freeworld --allowerasing 

You stated that these commands are sufficient to get hardware acceleration for NVIDIA GPU.

If I want to take advantage of hardware acceleration for NVIDIA I need to launch my video player (or web browser) using switcherooctl, right?