Categories
Uncategorized

Encode videos with Docker & Handbrake

Looking for a cheap solution to encode videos I created a docker container and an encoding script to automate this. Dockerfile: FROM ubuntu RUN /bin/bash -c ‘apt update && apt -y install handbrake-cli cpulimit psmisc’ COPY ./encode.sh / RUN /bin/bash -c ‘chmod +x encode.sh;mkdir /media/downloads’ VOLUME /media/downloads ENTRYPOINT ["/bin/bash"] encode.sh: #!/bin/bash SRC="/media/downloads/sources" DEST="/media/downloads/encoded" DEST_EXT=mp4 HANDBRAKE_CLI=HandBrakeCLI…