Kdenlive: No hardware encoders found

Kdenlive shows No hardware encoders found. But I have nVidia driver installed. How to enable hardware acceleration in Kdenlive?
dwx26-b0pwh
Sorry for this gif. I’ve uploaded high-resuration gif. But forum is showing it small…

Note: video-hybrid-intel-nVidia-prime , video-linux & video-modesetting drivers are installed in my system.

I’m only guessing, as i can’t see anything in that image you posted, that you have hybrid drivers due to hybrid GPUs of your system. Start Kdenlive with:
prime-run kdenlive

I tried prime-run but still not working. Do I need to install any other packege? Any codec or something like this?

Have you tried making use of Optimus-Manager, set it to solely use the dGPU and if then the kdenlive detects the hardware encoders?
AFAIK there should be no other package installation required to work.

I just installed optimus-manager following this wiki. Then ran sudo systemctl start optimus-manager.service.
But now this command showing error:

optimus-manager --status
ERROR: the latest GPU setup attempt failed at Xorg pre-start hook.
Log at /var/log/optimus-manager/switch/switch-20201114T195955.log

Cannot execute command because of previous errors.

The error log:

cat /var/log/optimus-manager/switch/switch-20201114T195955.log                                                                  
[16] INFO: # Xorg pre-start hook
[16] INFO: Previous state was: {'type': 'pending_pre_xorg_start', 'requested_mode': 'intel', 'current_mode': None}
[16] INFO: Requested mode is: intel
[16] INFO: Checking for GDM display servers
[592] INFO: Available modules: ['nouveau', 'nvidia', 'nvidia_drm', 'nvidia_modeset', 'nvidia_uvm']
[592] INFO: Unloading modules ['nvidia_drm', 'nvidia_modeset', 'nvidia_uvm', 'nvidia'] (if loaded)
[599] ERROR: Xorg pre-start setup error
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/optimus_manager/bash.py", line 11, in exec_bash
    out = subprocess.check_output(
  File "/usr/lib/python3.8/subprocess.py", line 411, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/usr/lib/python3.8/subprocess.py", line 512, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['bash', '-c', 'modprobe -r nvidia_drm nvidia_modeset nvidia_uvm nvidia']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/optimus_manager/kernel.py", line 196, in _unload_modules
    exec_bash("modprobe -r " + " ".join(modules_to_unload))
  File "/usr/lib/python3.8/site-packages/optimus_manager/bash.py", line 18, in exec_bash
    raise BashError(
optimus_manager.bash.BashError: Failed to execute 'modprobe -r nvidia_drm nvidia_modeset nvidia_uvm nvidia' :
modprobe: FATAL: Module nvidia_drm is in use.


During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/optimus_manager/hooks/pre_xorg_start.py", line 45, in main
    setup_kernel_state(config, prev_state, requested_mode)
  File "/usr/lib/python3.8/site-packages/optimus_manager/kernel.py", line 24, in setup_kernel_state
    _nvidia_down(config)
  File "/usr/lib/python3.8/site-packages/optimus_manager/kernel.py", line 65, in _nvidia_down
    _unload_nvidia_modules(available_modules)
  File "/usr/lib/python3.8/site-packages/optimus_manager/kernel.py", line 148, in _unload_nvidia_modules
    _unload_modules(available_modules, ["nvidia_drm", "nvidia_modeset", "nvidia_uvm", "nvidia"])
  File "/usr/lib/python3.8/site-packages/optimus_manager/kernel.py", line 198, in _unload_modules
    raise KernelSetupError("Cannot unload modules %s : %s" % (str(modules_to_unload), str(e)))
optimus_manager.kernel.KernelSetupError: Cannot unload modules ['nvidia_drm', 'nvidia_modeset', 'nvidia_uvm', 'nvidia'] : Failed to execute 'modprobe -r nvidia_drm nvidia_modeset nvidia_uvm nvidia' :
modprobe: FATAL: Module nvidia_drm is in use.

[601] INFO: Removing /etc/X11/xorg.conf.d/10-optimus-manager.conf (if present)
[601] INFO: Writing state {'type': 'pre_xorg_start_failed', 'switch_id': '20201114T195955', 'requested_mode': 'intel'}