2

How enable HW accelrated encoding in FFMPEG, Ubuntu 19.04 ? (at least _nvenc variants of h.264/h.265 encoders)

Do you know simplified user friendly way, how to do that using TASKSEL or similar automated tools ? Thank you for any advice.

(my configuration: GeForce GTX 1060 6GB/PCIe/SSE2 / nVidia binary drivers version 418.56, nvidia-cuda-toolkit installed)


$ ffmpeg -h encoder=hevc_nvenc
ffmpeg version 4.1.3-0ubuntu1
Codec 'hevc_nvenc' is not recognized by FFmpeg.

btw, my cuda acceleration works perfectly in BLENDER CYCLES ... so it works in general, but not in FFMPEG

2

I've found simple solution ...

just remove ffmpeg package

sudo apt remove ffmpeg

and install SNAP package instead

sudo snap install ffmpeg

And thats it, you can use *_nvenc codecs now. They are already included in snap package. No need to download header files, no need to complile anything.

Tip: If you have ubuntu version 19.04, be sure to give the ffmpeg package all permissions (especially access to external storage) in the software center.

|improve this answer|||||
  • +1 because after a lot of years with this issue, this is the one I would recommend. One stop solution, future-proofed – Luis Alvarado Sep 21 '19 at 16:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.