diff --git a/_aulas/Como criar uma aula.md b/_aulas/Como criar uma aula.md deleted file mode 100755 index ac8484d..0000000 --- a/_aulas/Como criar uma aula.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -author: Emerson Junio Silva Costa -description: Como criar uma aula no site -date: 19/03/2024 -software: [Alice_Cast] -level: Basico -layout: aulas ---- - -Exportando dados do Hydrogen diff --git a/_aulas/lmms.md b/_aulas/Introdução ao LMMS.md similarity index 100% rename from _aulas/lmms.md rename to _aulas/Introdução ao LMMS.md diff --git a/_aulas/lmms.mkv b/_aulas/Introdução ao LMMS.mkv similarity index 100% rename from _aulas/lmms.mkv rename to _aulas/Introdução ao LMMS.mkv diff --git a/_aulas/mixxx.md b/_aulas/Introdução ao Mixxx.md similarity index 100% rename from _aulas/mixxx.md rename to _aulas/Introdução ao Mixxx.md diff --git a/_aulas/mixxx.mkv b/_aulas/Introdução ao Mixxx.mkv similarity index 100% rename from _aulas/mixxx.mkv rename to _aulas/Introdução ao Mixxx.mkv diff --git a/_aulas/lmms.mp4 b/_aulas/lmms.mp4 deleted file mode 100644 index a4524eb..0000000 Binary files a/_aulas/lmms.mp4 and /dev/null differ diff --git a/_aulas/mixxx.mp4 b/_aulas/mixxx.mp4 deleted file mode 100644 index 05f4510..0000000 Binary files a/_aulas/mixxx.mp4 and /dev/null differ diff --git a/script/script.sh b/script/script.sh index 1033134..a518106 100755 --- a/script/script.sh +++ b/script/script.sh @@ -1,27 +1,32 @@ #!/bin/sh -SRC=_aulas/ +SRC=_aulas +SCRIPT=script/ +TMP=tmp/ +PARAM="scale=1920:1080: force_original_aspect_ratio=decrease: eval=frame,pad=1920:1080: -1:-1:color=black" + + +mkdir -p ./${TMP} # #################################### # Creating the credits clip # #################################### -if test tmp-credits.mkv -ot credits.svg ; then - ffmpeg -y -loop 1 -i credits.svg -i credits.wav -shortest tmp-credits.mkv +if test ${SCRIPT}/tmp-credits.mkv -ot ${SCRIPT}/credits.svg ; then + ffmpeg -y -loop 1 -i ${SCRIPT}/credits.svg -i ${SCRIPT}/credits.wav -shortest ${TMP}/tmp-credits.mkv fi # #################################### # Creating dest dir # #################################### -mkdir -p thumbs -mkdir -p videos +mkdir -p ./thumbs +mkdir -p ./videos -for aula in ./${SRC}*.md; do +for aula in ./${SRC}/*.md; do # #################################### # Getting parameters from aulas # #################################### - NAME="$(basename "${aula}" .md)" + NAME="$(basename "${aula}" .md)" AUTHOR=$(grep "^author: " "${aula}" | sed -e 's/author: //g') - INPUT="${SRC}${NAME}.mkv" - SCRIPT=$(dirname $0)"/" + INPUT="${SRC}/${NAME}.mkv" echo "########################################" echo "# Aula: ${aula}" @@ -35,22 +40,22 @@ 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 "./thumbs/${NAME}.jpg" ; then + ffmpeg -y -i "${INPUT}" -vframes 1 -an -s 400x222 -ss 30 "./thumbs/${NAME}.jpg" fi # #################################### # if output exist, continue # #################################### - if test -f "videos/${NAME}.mp4" ; then + if test -f "./videos/${NAME}.mp4" ; then continue fi # #################################### # Creating the intro clip # #################################### - sed "s/nomenome/$AUTHOR/g" ${SCRIPT}intro.svg | sed "s/curso/${NAME}/g" > ${SCRIPT}tmp-intro.svg - ffmpeg -y -loop 1 -i ${SCRIPT}tmp-intro.svg -i ${SCRIPT}intro.wav -shortest ${SCRIPT}tmp-intro.mkv + sed "s/nomenome/$AUTHOR/g" ${SCRIPT}/intro.svg | sed "s/curso/${NAME}/g" > ${TMP}/tmp-intro.svg + ffmpeg -y -loop 1 -i ${TMP}/tmp-intro.svg -i ${SCRIPT}/intro.wav -shortest ${TMP}/tmp-intro.mkv # ################################################### # Audio adjustment @@ -60,24 +65,24 @@ for aula in ./${SRC}*.md; do # -af dynaudnorm=p=1 # -af speechnorm=e=12.5:r=0.0001:l=1 # -af acompressor=threshold=0.089:ratio=9:attack=200:release=1000:makeup=2 - ffmpeg -y -i "${INPUT}" -af dynaudnorm=p=1 ${SCRIPT}tmp-normalized.mkv + ffmpeg -y -i "${INPUT}" -af dynaudnorm=p=1 ${TMP}/tmp-normalized.mkv # #################################################### # Wartermarking the video file # #################################################### - sed "s/nomenome/$AUTHOR/g" ${SCRIPT}watermark.svg | sed "s/curso/${NAME}/g" > ${SCRIPT}tmp-watermark.svg + sed "s/nomenome/$AUTHOR/g" ${SCRIPT}/watermark.svg | sed "s/curso/${NAME}/g" > ${TMP}/tmp-watermark.svg # add watermark to video - ffmpeg -y -i ${SCRIPT}tmp-normalized.mkv -i ${SCRIPT}tmp-watermark.svg -i ${SCRIPT}logo.png -filter_complex "[0][1]overlay=5:H-h-5:format=auto[bg];[bg][2]overlay=W-w-5:5:format=auto" -c:a copy ${SCRIPT}tmp-video.mkv + ffmpeg -y -i ${TMP}/tmp-normalized.mkv -i ${TMP}/tmp-watermark.svg -i ${SCRIPT}/logo.png \ + -filter_complex "[0][1]overlay=5:H-h-5:format=auto[bg];[bg][2]overlay=W-w-5:5:format=auto" -c:a copy ${TMP}/tmp-video.mkv # #################################################### # Concatenating videos # #################################################### - PARAM="scale=1920:1080: force_original_aspect_ratio=decrease: eval=frame,pad=1920:1080: -1:-1:color=black" ffmpeg -y \ - -i ${SCRIPT}tmp-intro.mkv \ - -i ${SCRIPT}tmp-video.mkv \ - -i ${SCRIPT}tmp-credits.mkv \ + -i ${TMP}/tmp-intro.mkv \ + -i ${TMP}/tmp-video.mkv \ + -i ${TMP}/tmp-credits.mkv \ -filter_complex \ "[0:v]$PARAM[v0]; [1:v]$PARAM[v1]; [2:v]$PARAM[v2]; [v0][0:a][v1][1:a][v2][2:a] concat=n=3:v=1:a=1 [v] [a]" \ -map [v] -map [a] \ @@ -85,12 +90,7 @@ for aula in ./${SRC}*.md; do -vcodec libx264 \ -pix_fmt yuv420p \ -vsync 2 \ - "videos/${NAME}.mp4" + "./videos/${NAME}.mp4" done -rm -f ${SCRIPT}tmp-intro.svg -rm -f ${SCRIPT}tmp-intro.mkv -rm -f ${SCRIPT}tmp-normalized.mkv -rm -f ${SCRIPT}tmp-watermark.svg -rm -f ${SCRIPT}tmp-video.mkv - +rm -f ${tmp} diff --git a/thumbs/Exportando dados do Hydrogen.jpg b/thumbs/Exportando dados do Hydrogen.jpg deleted file mode 100755 index 0441628..0000000 Binary files a/thumbs/Exportando dados do Hydrogen.jpg and /dev/null differ diff --git a/thumbs/Importando soundfonts no LMMS.jpg b/thumbs/Importando soundfonts no LMMS.jpg deleted file mode 100755 index 0441628..0000000 Binary files a/thumbs/Importando soundfonts no LMMS.jpg and /dev/null differ diff --git a/thumbs/lmms.jpg b/thumbs/Introdução ao LMMS.jpg similarity index 100% rename from thumbs/lmms.jpg rename to thumbs/Introdução ao LMMS.jpg diff --git a/thumbs/Introdução ao Hydrogen.jpg b/thumbs/Introdução ao Hydrogen.jpg deleted file mode 100755 index 0441628..0000000 Binary files a/thumbs/Introdução ao Hydrogen.jpg and /dev/null differ diff --git a/thumbs/Introdução ao LMMS.jpg b/thumbs/Introdução ao LMMS.jpg deleted file mode 100755 index 0441628..0000000 Binary files a/thumbs/Introdução ao LMMS.jpg and /dev/null differ diff --git a/thumbs/mixxx.jpg b/thumbs/Introdução ao Mixxx.jpg similarity index 100% rename from thumbs/mixxx.jpg rename to thumbs/Introdução ao Mixxx.jpg diff --git a/thumbs/Introdução ao Pure Data.jpg b/thumbs/Introdução ao Pure Data.jpg deleted file mode 100755 index 0441628..0000000 Binary files a/thumbs/Introdução ao Pure Data.jpg and /dev/null differ diff --git a/thumbs/Introdução ao Sooper Looper.jpg b/thumbs/Introdução ao Sooper Looper.jpg deleted file mode 100755 index 0441628..0000000 Binary files a/thumbs/Introdução ao Sooper Looper.jpg and /dev/null differ diff --git a/thumbs/Mixando no Hydrogen.jpg b/thumbs/Mixando no Hydrogen.jpg deleted file mode 100755 index 0441628..0000000 Binary files a/thumbs/Mixando no Hydrogen.jpg and /dev/null differ diff --git a/thumbs/Mixando no LMMS.jpg b/thumbs/Mixando no LMMS.jpg deleted file mode 100755 index 0441628..0000000 Binary files a/thumbs/Mixando no LMMS.jpg and /dev/null differ diff --git a/thumbs/Usando o Zynaddsub no LMMS.jpg b/thumbs/Usando o Zynaddsub no LMMS.jpg deleted file mode 100755 index 0441628..0000000 Binary files a/thumbs/Usando o Zynaddsub no LMMS.jpg and /dev/null differ diff --git a/videos/Exportando dados do Hydrogen.mp4 b/videos/Exportando dados do Hydrogen.mp4 deleted file mode 100755 index 1803e0f..0000000 Binary files a/videos/Exportando dados do Hydrogen.mp4 and /dev/null differ diff --git a/videos/Importando soundfonts no LMMS.mp4 b/videos/Importando soundfonts no LMMS.mp4 deleted file mode 100755 index 4de2850..0000000 Binary files a/videos/Importando soundfonts no LMMS.mp4 and /dev/null differ diff --git a/videos/lmms.mp4 b/videos/Introdução ao LMMS.mp4 similarity index 71% rename from videos/lmms.mp4 rename to videos/Introdução ao LMMS.mp4 index 67101c7..ffbf4e9 100644 Binary files a/videos/lmms.mp4 and b/videos/Introdução ao LMMS.mp4 differ diff --git a/videos/Introdução ao Hydrogen.mp4 b/videos/Introdução ao Hydrogen.mp4 deleted file mode 100755 index 1cba37d..0000000 Binary files a/videos/Introdução ao Hydrogen.mp4 and /dev/null differ diff --git a/videos/Introdução ao LMMS.mp4 b/videos/Introdução ao LMMS.mp4 deleted file mode 100755 index 6d37464..0000000 Binary files a/videos/Introdução ao LMMS.mp4 and /dev/null differ diff --git a/videos/mixxx.mp4 b/videos/Introdução ao Mixxx.mp4 similarity index 76% rename from videos/mixxx.mp4 rename to videos/Introdução ao Mixxx.mp4 index 27a78bd..4f71a45 100644 Binary files a/videos/mixxx.mp4 and b/videos/Introdução ao Mixxx.mp4 differ diff --git a/videos/Introdução ao Pure Data.mp4 b/videos/Introdução ao Pure Data.mp4 deleted file mode 100755 index 0a11551..0000000 Binary files a/videos/Introdução ao Pure Data.mp4 and /dev/null differ diff --git a/videos/Introdução ao Sooper Looper.mp4 b/videos/Introdução ao Sooper Looper.mp4 deleted file mode 100755 index 4da8c41..0000000 Binary files a/videos/Introdução ao Sooper Looper.mp4 and /dev/null differ diff --git a/videos/Mixando no Hydrogen.mp4 b/videos/Mixando no Hydrogen.mp4 deleted file mode 100755 index 52c2c88..0000000 Binary files a/videos/Mixando no Hydrogen.mp4 and /dev/null differ diff --git a/videos/Mixando no LMMS.mp4 b/videos/Mixando no LMMS.mp4 deleted file mode 100755 index 9fd0d39..0000000 Binary files a/videos/Mixando no LMMS.mp4 and /dev/null differ diff --git a/videos/Usando o Zynaddsub no LMMS.mp4 b/videos/Usando o Zynaddsub no LMMS.mp4 deleted file mode 100755 index ec3a85c..0000000 Binary files a/videos/Usando o Zynaddsub no LMMS.mp4 and /dev/null differ