Skip to content

Commit

Permalink
Add Liquidsoap ffmpeg plugin
Browse files Browse the repository at this point in the history
In order to correctly decode 32-bits float WAV files, Liquidsoap ffmpeg plugin is needed.

This commit adds a new opam dependency (ocaml-ffmpeg), and multiple ffmpeg libraries.

The disco repository config has been commented out, because it was interfering with ffmpeg
installation, and it seems to work fine without it.
  • Loading branch information
loics2 committed May 9, 2020
1 parent e264ba4 commit 3e10e48
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ FROM ubuntu:bionic AS base
ENV TZ="UTC"

# Add source for libopus from Ubuntu 19.04
COPY ./disco.list /etc/apt/sources.list.d/disco.list
COPY ./disco /etc/apt/preferences.d/disco
#COPY ./disco.list /etc/apt/sources.list.d/disco.list
#COPY ./disco /etc/apt/preferences.d/disco

# Run base build process
COPY ./build/ /bd_build
Expand Down Expand Up @@ -42,7 +42,8 @@ USER azuracast

RUN opam init --disable-sandboxing -a --bare && opam switch create 4.08.0

ARG opam_packages="samplerate.0.1.4 taglib.0.3.3 mad.0.4.5 faad.0.4.0 fdkaac.0.3.1 lame.0.3.3 vorbis.0.7.1 cry.0.6.1 flac.0.1.5 opus.0.1.3 duppy.0.8.0 ssl liquidsoap.1.4.1"

ARG opam_packages="ffmpeg.0.4.1 samplerate.0.1.4 taglib.0.3.3 mad.0.4.5 faad.0.4.0 fdkaac.0.3.1 lame.0.3.3 vorbis.0.7.1 cry.0.6.1 flac.0.1.5 opus.0.1.3 duppy.0.8.0 ssl liquidsoap.1.4.1"
RUN opam install -y ${opam_packages}

#
Expand Down
3 changes: 2 additions & 1 deletion build/setup/liquidsoap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ set -x

# Only install Liquidsoap deps (Liquidsoap build is handled by another container).
$minimal_apt_get_install libfaad-dev libfdk-aac-dev libflac-dev libmad0-dev libmp3lame-dev libogg-dev \
libopus-dev libpcre3-dev libtag1-dev libsamplerate0-dev
libopus-dev libpcre3-dev libtag1-dev libsamplerate0-dev libavcodec-dev libavfilter-dev \
libavformat-dev libavresample-dev libavutil-dev libpostproc-dev libswresample-dev

0 comments on commit 3e10e48

Please sign in to comment.