forked from adriel/h265ize-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (44 loc) · 1.46 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM node:7-alpine
MAINTAINER John Read
LABEL h265ize_version="bleading edge" architecture="amd64"
RUN apk add --no-cache --update-cache git ffmpeg && \
npm install jkread/h265ize --global --no-optional && \
apk add --no-cache bash && apk del git && \
mkdir /input && mkdir /output && mkdir /temp && mkdir /h265ize && \
rm /var/cache/apk/*
RUN sudo apt-get update && \
sudo apt-get install mkvtoolnix vobsub2srt
COPY run.sh /h265ize/run.sh
ENV INPUT="/input" \
OUTPUT="/output" \
TEMP="/temp" \
# Quality (choose either QP or CRF) 0-51 (higher number = lower quality/smaller file)
QP="" \
CRF="" \
# Preset Options: ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslow, placebo
PRESET="" \
# Overide: Allows conversion of videos that are already encoded by the hevc codec
OVERRIDE="false" \
# Deletes source after encoding is complete and replaces it with new encode; STRONGLY NOT RECOMMENDED
DELETE="false" \
# Amount of time to wait after finishing the queue
SLEEP=900 \
# Preset Options: anime-high, anime-medium, ssim
ASPRESET="" \
TUNE="" \
SCALE="" \
REF="" \
BITDEPTH="" \
WEIGHTB="false" \
BFRAMES="" \
EXTRA="" \
DEBUG=false \
STATSFREQUENCY=15 \
PREVIEW="false" \
PREVIEWLENGTH="" \
REPLACE="false" \
DIFFLIMIT=""
VOLUME ["/input"]
WORKDIR /h265ize
RUN chmod +x /h265ize/run.sh
ENTRYPOINT [ "/h265ize/run.sh" ]