summaryrefslogtreecommitdiff
path: root/.old/rectape
diff options
context:
space:
mode:
Diffstat (limited to '.old/rectape')
-rwxr-xr-x.old/rectape16
1 files changed, 16 insertions, 0 deletions
diff --git a/.old/rectape b/.old/rectape
new file mode 100755
index 0000000..238f5de
--- /dev/null
+++ b/.old/rectape
@@ -0,0 +1,16 @@
+#!/bin/sh
+if [ -z "$1" ]; then $0 untitled_$(ls | wc -l); exit; fi
+
+for mod in blackmagic blackmagic-io; do doas modprobe $mod; done
+#doas rc-service DesktopVideoHelper start
+
+ffmpeg \
+ -f decklink -format_code ntsc -i "Intensity Pro" \
+ -c:v libx264 \
+ -preset medium \
+ -qmin 6 -qmax 18 -qdiff 4 \
+ -vf yadif \
+ -c:a aac -b:a 384k \
+ -metadata "title"="$1" \
+ -metadata "comment=tapes.tjkeller.xyz" \
+ "$1.mkv"