From 6670bb760655f5af90baa3b1ab9bc1e0de3d2ec0 Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 5 Oct 2021 16:28:11 -0700 Subject: [PATCH] * Ignoring generated js and addding a labeling script --- .gitignore | 1 + frontend/scripts/label.sh | 12 ++++++++++++ 2 files changed, 13 insertions(+) create mode 100644 frontend/scripts/label.sh diff --git a/.gitignore b/.gitignore index ebf9d37..6285c21 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ api/dev/ *.swp clippable-server/store.json api/vids/ +frontend/themes/clippable/static/js/index.js diff --git a/frontend/scripts/label.sh b/frontend/scripts/label.sh new file mode 100644 index 0000000..9c60a13 --- /dev/null +++ b/frontend/scripts/label.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +# Label's a give +msg='No Thumbnail found' +color="fontcolor=white" +size='fontsize=45' +pos='(w-text_w)/2' + +rm -f out.gif +ffmpeg -i "$1" -vf \ + "drawtext=text='$msg':$color:$size:x=$pos:y=10:"\ + out.gif