From 094789f9250531087b630e92324d3b81b28a881d Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 8 Nov 2015 15:42:54 +0100 Subject: add ogg2mp3 converter --- bin/ogg2mp3 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 bin/ogg2mp3 (limited to 'bin/ogg2mp3') diff --git a/bin/ogg2mp3 b/bin/ogg2mp3 new file mode 100755 index 0000000..1fbf414 --- /dev/null +++ b/bin/ogg2mp3 @@ -0,0 +1,15 @@ +#! /bin/sh +set -euf +target_folder=${target-./} + +source=$1 +target_mp3=$(basename $1 | sed 's/ogg$/mp3/') + +mkdir -p $target_folder + +if test -e $target_folder/$target_mp3; then + echo "already done: $target_mp3 in $target_folder" >&2 + exit +fi + +ffmpeg -i $source $target_folder/$target_mp3 -- cgit v1.2.3