add missing thumbs, fix script thumb path
This commit is contained in:
1 parent
7a3f7c66ea
commit
2351d96b53
4 files changed
+9
-27
No files matched your search
+4
-2
@@ -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
|
||||
|
||||
# ####################################
|
||||
|
||||
Reference in new issue
Block a user