[Libav-user] Configuration from shared library?
linux2 at orion15.org
Sun Jan 1 21:40:15 EET 2017
On 01/01/2017 12:57 PM, Nicolas George wrote:
> Le duodi 12 nivôse, an CCXXV, Steve Myers a écrit :
>> Due to circumstances I lost the build script I used to build the
>> shared libraries for my app. Is there a way a to get the configuration
>> used from shared libraries similar to the command line ffmpeg? I only
>> have libavcodec-57.so, libavformat-57.so, etc.
> The configuration is hardcoded as a string in each library binary file.
> Use strings or any other similar tool to extract them, and search for a
> bit that you think is present there, for example "enable-shared".
> Charles' answer is incorrect, I think he misunderstood the question.
Sure was, doh, did not realize we was rebuilding ffmpeg itself.
Nice one! All config options on 1 line
1:36pm avlib >> strings /usr/lib64/libavformat.so.57 | grep "enable-shared"
--prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man
--extra-cflags=-I../Nvidia --disable-crystalhd --enable-gnutls --enable-decoder=aac --enable-pthreads --enable-shared --disable-stripping
--shlibdir=/usr/lib64 --enable-runtime-cpudetect --enable-libxcb
More information about the Libav-user