Libav Libav is a friendly and community-driven effort to provide its users with a set of portable, functional and high-performance libraries for dealing with multimedia formats of all sorts.

To use libav in your SourceLair project, you have to run the following commands in your project’s terminal to download, build and install it from source:

# Step 0: Preparation
set -ex

TMP_DIR=/mnt/data/.tmp
LOCAL_DIR=/mnt/data/.local
LIBAV_VERSION=12.3
LIBAV=libav-$LIBAV_VERSION
LIBAV_ARCHIVE=$LIBAV.tar.gz
LIBAV_EXPORT_DIR=$TMP_DIR/$LIBAV

mkdir -p $TMP_DIR
mkdir -p $LOCAL_DIR

# Step 1: Download and extract libav-tools
cd $TMP_DIR
wget https://libav.org/releases/$LIBAV_ARCHIVE
tar -xzvf $LIBAV_ARCHIVE

# Step 2: Build and install libav-tools
cd $LIBAV_EXPORT_DIR
./configure --prefix=$LOCAL_DIR --disable-yasm
make
make install

# Step 3: Clean up
rm -r $LIBAV_EXPORT_DIR $TMP_DIR/$LIBAV_ARCHIVE
Is there any other hack you would like to see here? Request a hack.