aboutsummaryrefslogtreecommitdiff
path: root/bulk-audio/manual-convert
blob: 5ced910ad40f7d6fb3c7f93fa3ed40293fcb1649 (plain)
1
2
3
4
5
6
7
8
9
10
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