This project compiles Mediainfo under Amazon Linux 2 for use in distributing it to AWS Lambda functions.
Every example I could find on the web used ancient versions of Mediainfo. This compiles the latest version, which has quite a different output format.
docker
This compiles Mediainfo with libcurl and other libraries so that it can be useful with signed URLs.
./compile.sh
This produces 14 files in you current working directory:
mediainfolibcrypt.so.1libcurl.so.4libidn2.so.0liblber-2.4.so.2libldap-2.4.so.2libnghttp2.so.14libnss3.solibnssutil3.solibsasl2.so.3libsmime3.solibssh2.so.1libssl3.solibunistring.so.0
If you place the library files in dist/ (*.so.*) in the base directory of the Lambda, they will be found by the LD_LIBRARY_PATH of the execution environment. After that, you can run mediainfo from just about anywhere.