I was having difficulties with obs-studio and hardware acceleration. I have an Nvidia GPU my solution was remove nvidia-driver and install nvidia-driver-bin.
ow I install ffmpeg by deb multimedia.
I hope to help someone with the same problem.
p.S I used aptitude
![Smiley :)](https://forum.siduction.org/Smileys/flat_emoji/smiley.gif)