I managed to get hvenc to work locally in the build directory...
I have instralled the exact same build binary (make install).
For some reson different libraries are opened when obs is run:
./obs:
lsof -p 3707|grep av
obs 3707 johan mem REG 8,2 756072 658518 /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
obs 3707 johan mem REG 8,2 704128 658514 /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf
obs 3707 johan mem REG 8,2 2369400 13440970 /usr/local/lib/libavfilter.so.7.12.100
obs 3707 johan mem REG 8,2 83488 13440988 /usr/local/lib/libavdevice.so.58.1.100
obs 3707 johan mem REG 8,2 2365280 13440973 /usr/local/lib/libavformat.so.58.9.100
obs 3707 johan mem REG 8,2 424792 13440985 /usr/local/lib/libavutil.so.56.7.101
obs 3707 johan mem REG 8,2 13247824 13440976 /usr/local/lib/libavcodec.so.58.11.101
obs:
obs 3760 johan mem REG 8,2 756072 658518 /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf
obs 3760 johan mem REG 8,2 704128 658514 /usr/share/fonts/truetype/dejavu/DejaVuSans-Bold.ttf
obs 3760 johan mem REG 8,2 137208 13243039 /usr/lib/x86_64-linux-gnu/libavresample-ffmpeg.so.2.1.0
obs 3760 johan mem REG 8,2 18608 13248048 /usr/lib/x86_64-linux-gnu/libavc1394.so.0.3.0
obs 3760 johan mem REG 8,2 1716576 13242455 /usr/lib/x86_64-linux-gnu/libavfilter-ffmpeg.so.5.40.101
obs 3760 johan mem REG 8,2 186496 13314660 /usr/lib/x86_64-linux-gnu/libavdevice-ffmpeg.so.56.4.100
obs 3760 johan mem REG 8,2 166208 13249207 /usr/lib/x86_64-linux-gnu/libwavpack.so.1.1.7
obs 3760 johan mem REG 8,2 374808 13249675 /usr/lib/x86_64-linux-gnu/libavutil-ffmpeg.so.54.31.100
obs 3760 johan mem REG 8,2 2090144 13249680 /usr/lib/x86_64-linux-gnu/libavformat-ffmpeg.so.56.40.101
obs 3760 johan mem REG 8,2 12030904 13250771 /usr/lib/x86_64-linux-gnu/libavcodec-ffmpeg.so.56.60.100
obs 3760 johan mem REG 8,2 2365280 13440973 /usr/local/lib/libavformat.so.58.9.100
obs 3760 johan mem REG 8,2 424792 13440985 /usr/local/lib/libavutil.so.56.7.101
obs 3760 johan mem REG 8,2 13247824 13440976 /usr/local/lib/libavcodec.so.58.11.101
How can this be? Why are two similar libs loaded (and with different versions...).
Using nvenc I can now stream and record locally without ANY cpu hit! Feels like magic :)
However, system wide installation is not ok yet.
Johan