Selaa lähdekoodia

Added a helper script to extract frames from an input

Dan Hintz - Arch 5 vuotta sitten
vanhempi
sitoutus
c84171fe06
1 muutettua tiedostoa jossa 8 lisäystä ja 0 poistoa
  1. 8 0
      extractframes

+ 8 - 0
extractframes

@@ -0,0 +1,8 @@
+#!/bin/sh
+
+[ -z $1 ] && echo "usage: ./extractframes <videofile>" && exit 1
+
+video="${1%.*}"
+mkdir "${video}-frames"
+
+ffmpeg -i "$1" -r 1 "${video}-frames/%05d.png"