From ab987e10f154f5536bb8fd936ae0966e909fa969 Mon Sep 17 00:00:00 2001 From: luxagraf Date: Thu, 15 Jun 2023 15:58:59 -0500 Subject: added all my scripts --- generate_video_poster.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 generate_video_poster.sh (limited to 'generate_video_poster.sh') diff --git a/generate_video_poster.sh b/generate_video_poster.sh new file mode 100755 index 0000000..0755ad9 --- /dev/null +++ b/generate_video_poster.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash +# take in mp4, take screenshot at given interval, output same filename but with jpg extension +FILE="$1" +NEWFILE="${FILE%.mp4}.jpg" +INTERVAL=$2 +echo "file - $FILE" +ffmpeg -y -i $FILE -f mjpeg -vframes 1 -ss $INTERVAL $NEWFILE -- cgit v1.2.3-70-g09d2