From 93d1566f7777ea8b7e99a85100418a98f781479c Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 <0xFEEDC0DE64@gmail.com> Date: Tue, 3 Apr 2018 19:06:28 +0200 Subject: [PATCH] Added Dockerfile and conversion script --- Dockerfile | 13 +++++++++++++ script.sh | 6 ++++++ 2 files changed, 19 insertions(+) create mode 100644 Dockerfile create mode 100755 script.sh diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..eb0734c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM ubuntu:artful + +RUN apt update \ + && apt install ffmpeg -y \ + && rm /var/lib/apt/lists/* /var/log/* -Rf + +ADD script.sh / + +VOLUME ["/music"] + +WORKDIR /music + +ENTRYPOINT ["/bin/sh", "/script.sh"] diff --git a/script.sh b/script.sh new file mode 100755 index 0000000..2f81f37 --- /dev/null +++ b/script.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +for f in *.wav +do + ffmpeg -i "$f" -ab 320k -map_metadata 0 -id3v2_version 3 "${f%.wav}.mp3" +done