TheOpponent / mr-otcs

Automated video looping, streaming, and schedule generation
MIT License
74 stars 9 forks source link

Add Docker build scripts #10

Closed neckro closed 3 years ago

neckro commented 3 years ago

To install Docker: sudo curl -fsSL https://get.docker.com | sh

If you want to use Docker as not-root, add your account to the docker group afterwards.

Once Docker is installed, running docker-services.sh from the repo dir should automatically build the two Docker images, destroy any old running images, and bring up the new ones. The Docker build takes about 30 minutes from scratch.

docker-play.sh has some test parameters and is a WIP.

TheOpponent commented 3 years ago

Mr. OTCS was updated to v1.1.0. The new (minimal) build command for ffmpeg-hls-pts-discontinuity-reclock is:

cd ~ && git clone --depth 1 https://github.com/jjustman/ffmpeg-hls-pts-discontinuity-reclock.git \
  && cd ~/ffmpeg-hls-pts-discontinuity-reclock \
  && ./configure \
    --extra-cflags="-I/usr/local/include" \
    --extra-ldflags="-L/usr/local/lib" \
    --extra-libs="-lpthread -lm -latomic" \
    --arch=armel \
    --enable-mmal \
    --enable-omx \
    --enable-omx-rpi \
    --enable-gpl \
    --enable-libfdk-aac \
    --disable-librtmp \
    --enable-libx264 \
    --enable-nonfree \
    --target-os=linux \
    --enable-pthreads \
    --enable-hardcoded-tables \
    --disable-doc \
  && make -j$(nproc) \
  && sudo make install

libomxil-bellagio-dev will need to be installed before compilation, and gpu_mem=256 should be set in /boot/config.txt.