From 8ffcbd7364834809d6eb46c92b1e10a091e89bf4 Mon Sep 17 00:00:00 2001 From: kolaente Date: Thu, 2 Nov 2017 23:42:30 +0100 Subject: [PATCH] Initial Commit --- Dockerfile | 5 +++ convert.sh | 78 ++++++++++++++++++++++++++++++++++++++++++++++ video_formats.json | 31 ++++++++++++++++++ 3 files changed, 114 insertions(+) create mode 100644 Dockerfile create mode 100755 convert.sh create mode 100644 video_formats.json diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..291ae0e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM docker +RUN mkdir /var/videos +WORKDIR /var/videos +ADD convert.sh +VOLUME /var/videos diff --git a/convert.sh b/convert.sh new file mode 100755 index 0000000..0b64402 --- /dev/null +++ b/convert.sh @@ -0,0 +1,78 @@ +#!/bin/bash + +# Check if the converterfile exists +if [ ! -f $PWD/video_formats.json ] +then + exit 1; +fi + +# Loop through our convertfile and convert the video +videoformats=$(