Skip to content

phishy/mediainfo-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mediainfo for AWS Lambda

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.

Requirements

  • docker

Compiling Mediainfo

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:

  • mediainfo
  • libcrypt.so.1
  • libcurl.so.4
  • libidn2.so.0
  • liblber-2.4.so.2
  • libldap-2.4.so.2
  • libnghttp2.so.14
  • libnss3.so
  • libnssutil3.so
  • libsasl2.so.3
  • libsmime3.so
  • libssh2.so.1
  • libssl3.so
  • libunistring.so.0

Usage

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.

About

Compiles Mediainfo for use in AWS Lambda

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published