add missing thumbs, fix script thumb path

This commit is contained in:
Carneiro committed 2024-08-05 22:36:03 -03:00
1 parent 7a3f7c66ea
commit 2351d96b53
4 files changed
+9 -27

No files matched your search

+4 -2
View File
@@ -20,6 +20,8 @@ process_video () {
OUTPUT="$ASSETS/videos/${NAME}.mp4"
fi
THUMB_PATH=$(dirname $OUTPUT)/${NAME}
echo "########################################"
echo "# Aula: ${AULA}"
echo "# Author: ${AUTHOR}"
@@ -34,8 +36,8 @@ process_video () {
# ####################################
# Creating the thumbnail if does not exist
# ####################################
if test ! -f "$ASSETS/thumbs/${NAME}.jpg" ; then
ffmpeg -y -i "${INPUT}" -vframes 1 -an -s 400x222 -ss 30 "$ASSETS/thumbs/${NAME}.jpg"
if test ! -f "${THUMB_PATH}.jpg" ; then
ffmpeg -y -i "${INPUT}" -vframes 1 -an -s 400x222 -ss 30 "${THUMB_PATH}.jpg"
fi
# ####################################