SO I'm installing opencv 3.1 for c++ use on Ubuntu 16.04 on Rpi 3 opencv with gcc 4.9. In some tutorials they recommend to build ffmpeg from source with shared enable and disable static flag. In others they just build ffmpeg from packages via apt-get. So I wonder whats the right way to do it?