summaryrefslogtreecommitdiff
path: root/video/rectapehevc
diff options
context:
space:
mode:
Diffstat (limited to 'video/rectapehevc')
-rwxr-xr-xvideo/rectapehevc15
1 files changed, 15 insertions, 0 deletions
diff --git a/video/rectapehevc b/video/rectapehevc
new file mode 100755
index 0000000..c44d6d9
--- /dev/null
+++ b/video/rectapehevc
@@ -0,0 +1,15 @@
+#!/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 libx265 \
+ -qmin 6 -qmax 18 -qdiff 4 \
+ -vf yadif \
+ -c:a flac \
+ -metadata "title"="$1" \
+ -metadata "comment=tapes.tjkeller.xyz" \
+ "$1.mkv"