Modificações de organização é de localização!

This commit is contained in:
EmersonJSC committed 2024-07-10 15:26:42 -03:00
1 parent 6f8e8cc31f
commit d14f43a2cc
35 files changed
+974 -10

No files matched your search

+7 -7
View File
@@ -1,5 +1,5 @@
#!/bin/sh
SRC=_aulas
SRC=collections/_aulas
SCRIPT=script/
TMP=tmp/
PARAM="scale=1920:1080: force_original_aspect_ratio=decrease: eval=frame,pad=1920:1080: -1:-1:color=black"
@@ -17,8 +17,8 @@ fi
# ####################################
# Creating dest dir
# ####################################
mkdir -p ./thumbs
mkdir -p ./videos
mkdir -p ./assets/thumbs
mkdir -p ./assets/videos
for aula in ./${SRC}/*.md; do
# ####################################
@@ -40,14 +40,14 @@ for aula in ./${SRC}/*.md; do
# ####################################
# Creating the thumbnail if does not exist
# ####################################
if test ! -f "./thumbs/${NAME}.jpg" ; then
ffmpeg -y -i "${INPUT}" -vframes 1 -an -s 400x222 -ss 30 "./thumbs/${NAME}.jpg"
if test ! -f "./assets/thumbs/${NAME}.jpg" ; then
ffmpeg -y -i "${INPUT}" -vframes 1 -an -s 400x222 -ss 30 "./assets/thumbs/${NAME}.jpg"
fi
# ####################################
# if output exist, continue
# ####################################
if test -f "./videos/${NAME}.mp4" ; then
if test -f "./assets/videos/${NAME}.mp4" ; then
continue
fi
@@ -90,7 +90,7 @@ for aula in ./${SRC}/*.md; do
-vcodec libx264 \
-pix_fmt yuv420p \
-vsync 2 \
"./videos/${NAME}.mp4"
"./assets/videos/${NAME}.mp4"
done
rm -f ${tmp}