If you look at the slackbuild it will give you an idea of what you need. https://slackbuilds.org/repository/14.2/multimedia/ffmpeg/. You can also install it and run it. You'll get an error telling you what your missing. Then download and install the package with that missing library and try again. Keep going till you get them all and it runs clean.