Added Dockerfile and conversion script

This commit is contained in:
0xFEEDC0DE64
2018-04-03 19:06:28 +02:00
parent 62327e4c6d
commit 93d1566f77
2 changed files with 19 additions and 0 deletions

13
Dockerfile Normal file
View File

@ -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"]

6
script.sh Executable file
View File

@ -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