Skip to content

Instantly share code, notes, and snippets.

@alastair
Created Sep 1, 2020
Embed
What would you like to do?
Essentia static music extractor + gaia svm
FROM debian:buster
ENV LANG C.UTF-8
# install dependencies
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get install -y pkg-config wget curl git libyaml-0-2 libfftw3-3 libtag1v5 libsamplerate0 \
libavcodec58 libavformat58 libavutil56 \
libavresample4 python3 python3-numpy libpython3.7 python3-yaml python3-six \
python3-dev python3-numpy-dev python-dev python-numpy-dev \
libqt4-dev libyaml-dev swig build-essential libeigen3-dev \
make cmake yasm \
&& rm -rf /var/lib/apt/lists/*
# symlink Eigen
RUN ln -s /usr/include/eigen3/Eigen /usr/local/include/Eigen
RUN mkdir /essentia
WORKDIR /essentia
RUN git clone https://github.com/MTG/essentia.git
WORKDIR /essentia/essentia/packaging
RUN git checkout v2.1_beta5
RUN ./build_3rdparty_static_debian.sh --with-gaia
WORKDIR /essentia/essentia
RUN ./waf configure --with-static-examples --with-gaia --with-example=streaming_extractor_music,streaming_extractor_music_svm
RUN ./waf
WORKDIR /essentia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment