From 2140ab51deed88e90eafebf9520fa5f9995dc7c9 Mon Sep 17 00:00:00 2001 From: twells46 <173561638+twells46@users.noreply.github.com> Date: Wed, 31 Dec 2025 13:28:05 -0600 Subject: Migrate from stow --- private_dot_local/bin/executable_vid2opus | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 private_dot_local/bin/executable_vid2opus (limited to 'private_dot_local/bin/executable_vid2opus') diff --git a/private_dot_local/bin/executable_vid2opus b/private_dot_local/bin/executable_vid2opus new file mode 100644 index 0000000..5e461a9 --- /dev/null +++ b/private_dot_local/bin/executable_vid2opus @@ -0,0 +1,11 @@ +#!/bin/sh +set -e + +tmp="$(mktemp --suffix='.png')" +trap "rm ${tmp}" INT EXIT QUIT TERM ABRT + +new="${1%.*}.opus" + +ffmpegthumbnailer -i "$1" -s0 -q10 -m -o "${tmp}" +ffmpeg -i "$1" -c:a copy -c:v none -c:s none "${new}" +opustags -i --set-cover "${tmp}" "${new}" -- cgit v1.2.3