I have done as suggested, but problem was NOT FIXED. alexey at deb9ws:~/ffmpeg$ ./configure --enable-gpl --extra-version=4 --enable-libx264 --enable-libx265 --enable-static --disable-shared $ make $ ./ffmpeg ... returns me the WARNING from system avformat library, rather than custom. Any other options ?