Add frames.sh
dkl9

dkl9 commited on 2024-15 09:47:18
Showing 1 changed files, with 9 additions and 0 deletions.


frames.sh is a wrapper around mpv to help pick out frames as images.
... ...
@@ -0,0 +1,9 @@
1
+#!/bin/sh
2
+# frames - use mpv to pick out frames from a video as images
3
+# usage: frames video
4
+# Displays video in mpv with useful presets for saving frames.
5
+# Save a frame by pressing s in mpv
6
+# (or Ctrl-S for mpv-customised screenshot).
7
+
8
+BFN="${1%.*}"
9
+mpv --panscan=1.0 "--screenshot-template=${BFN}_%02n" "$1"
0 10