2020-03-28, 04:20 AM
May be i niche request, but I transcode the .ts files in my Postprocessing.sh and before I do that i extract the subtitles/closed captions with ccextractor so they aren't lost.
I currently add it myself to the docker image with the following Dockerfile:
I currently add it myself to the docker image with the following Dockerfile:
Code:
FROM nextpvr/nextpvr_amd64:stable AS updated_base
################
#
# prerequisites
#
################
RUN apt-get update -y && \
apt-get install -y --no-install-recommends unzip zip curl mediainfo libfreetype6 libutf8proc2 tesseract-ocr
# && \
# rm -rf /var/lib/apt/lists/*
######################
#
# ccextractor
# https://hub.docker.com/r/djaydev/ccextractor/dockerfile
#
######################
# djaydev/ccextractor:latest
# compilation stage
FROM updated_base AS builder
# install dependencies
RUN apt-get install build-essential pkgconf cmake automake autoconf git software-properties-common \
libtesseract-dev libfreetype6 tesseract-ocr-eng libleptonica-dev libcurl4-gnutls-dev libglfw3-dev libglew-dev libwebp-dev libgif-dev libpng-dev -y
# compile ccextractor
RUN git clone https://github.com/CCExtractor/ccextractor.git && \
cd ccextractor/linux && \
./autogen.sh && \
./configure --enable-ocr && \
make
######################
#
# NextPVR
#
######################
FROM updated_base AS setup
# copy ccextractor from compilation stage
COPY --from=builder /app/ccextractor/linux/ccextractor /usr/local/bin
## cleanup
RUN apt-get autoremove -y && \
apt-get clean && \
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
RUN rm -rf /app/ccextractor