Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Here is how to enable nvenc for ffmpeg and handbrake on FreeBSD (This is possible by the work of shkhln (Alex))
- What you will need ?
- https://github.com/shkhln/libc6-shim
- This repository contains a shim library providing limited glibc ABI compatibility on top of FreeBSD libc.
- The library is intended to allow loading shared objects compiled on Linux and dynamically linked to glibc into native FreeBSD processes for a few use cases that warrant such a hack. Although FreeBSD already has a very useful Linux compatibility feature, this kind of ad hoc ABI mixing is out of scope for it.
- https://github.com/shkhln/revird-aidivn
- The above repo contains updated and patched libs for Nvidia. It also contains handbrake and ffmpeg along with FFmpeg version of Nvidia Codec SDK headers.
- Install nvidia-driver and linux-nvidia-libs.
- then nv-codec-headers
- ffmpeg (if you need nvenc support with it)
- handbrake (it adds h264_nvenc and h265_nvenc which allows hardware encoding using nvidia cuda device).
- Now there is no libnvidia-encode.so.1 for FreeBSD and you can`t run nvenc with handbrake without it.
- you will use nv-sglrun from libc6-shim
- nv-sglrun ghb
- This will activate h264_nvenc and h265_nvenc to the enconding options on handbrake. libnvidia-encode.so.1 (linux library) is loaded using nv-sglrun.
- From now on when you use h264_nvenc or h265_nvenc, you will see Video Engine Utilization go up in nvidia settings.
Advertisement
Add Comment
Please, Sign In to add comment