Skip to content

Instantly share code, notes, and snippets.

@alastair
Created September 1, 2020 10:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alastair/4992620a64cf9222aa5614a5ded25c8b to your computer and use it in GitHub Desktop.
Save alastair/4992620a64cf9222aa5614a5ded25c8b to your computer and use it in GitHub Desktop.
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