diff options
Diffstat (limited to 'bulk-audio/manual-convert')
-rwxr-xr-x | bulk-audio/manual-convert | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bulk-audio/manual-convert b/bulk-audio/manual-convert new file mode 100755 index 0000000..5ced910 --- /dev/null +++ b/bulk-audio/manual-convert @@ -0,0 +1,11 @@ +#!/bin/sh +for input in "$@" ; do + tmp_filename="$(mktemp)" + ffmpeg -hide_banner -loglevel error -i "$input" -f mp3 pipe: > "$tmp_filename" + + sum="$(sha1sum "$tmp_filename" | cut -c1-40)" + output_filename="refold-tools-$sum.mp3" + cp "$tmp_filename" "./$output_filename" + rm -f "$tmp_filename" + echo "$input -> $output_filename" >&2 +done |