From d26529fcace41a3dd34cd5049ebb7b47ae3b6b00 Mon Sep 17 00:00:00 2001 From: "A. Demant" Date: Tue, 4 Sep 2018 06:35:18 +0200 Subject: [PATCH] flac2opus added --- flac2opus.sh | 6 ++++++ jpg2fb.sh | 3 +++ refl.sh | 6 ++++++ 3 files changed, 15 insertions(+) create mode 100755 flac2opus.sh create mode 100755 jpg2fb.sh create mode 100755 refl.sh diff --git a/flac2opus.sh b/flac2opus.sh new file mode 100755 index 0000000..a4eb321 --- /dev/null +++ b/flac2opus.sh @@ -0,0 +1,6 @@ +#!/bin/sh +INFILE=$1 +echo $INFILE +OUTFILE=$(basename "$1" .flac).ogg +echo $OUTFILE +opusenc --bitrate 22 --framesize 20 "${INFILE}" "${OUTFILE}" diff --git a/jpg2fb.sh b/jpg2fb.sh new file mode 100755 index 0000000..8526cbe --- /dev/null +++ b/jpg2fb.sh @@ -0,0 +1,3 @@ +#!/bin/sh +convert -resize 1024 $1 fb_$1 +jpegoptim --all-progressive -s -m50 fb_$1 diff --git a/refl.sh b/refl.sh new file mode 100755 index 0000000..0bd2080 --- /dev/null +++ b/refl.sh @@ -0,0 +1,6 @@ +outflac=$(echo "$1"|sed -e 's/^\./Archiv/g') +echo $(dirname "$outflac") +if [ ! -d "$outflac" ]; then + mkdir -p "$(dirname "$outflac")" +fi +flac "$1" -e -p -8 -o "${outflac}"