From 8a282df3cb4f36c636a22ad5a108375f3041873b Mon Sep 17 00:00:00 2001 From: fred Date: Fri, 20 Jan 2023 15:44:26 +0100 Subject: [PATCH] AstroBot is speaking --- templates/register.html | 6 +++--- tools/make_video_gifanim_ipfs.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/register.html b/templates/register.html index bd10a04d..abed451e 100644 --- a/templates/register.html +++ b/templates/register.html @@ -59,9 +59,9 @@ header {

Découvrez / LA ♥BOX /^2223

-

Archivez vos DATA 👍 dans IPFS^3222

-

Activez votre 👉TW👈 /^3112

-

/ Astroport / Le Web des Gens^2312

+

Téléporteur de vos DATA 👍 dans IPFS^3222

+

Activez votre 👉TW ♥BOX👈^3112

+

Astroport - Le Web des Gens -^2312

diff --git a/tools/make_video_gifanim_ipfs.sh b/tools/make_video_gifanim_ipfs.sh index efb8ce21..8195e197 100755 --- a/tools/make_video_gifanim_ipfs.sh +++ b/tools/make_video_gifanim_ipfs.sh @@ -14,7 +14,7 @@ MIME=$(file --mime-type -b "${path}${file}") ################################################################################################################# ############# CONVERT NOT MP4 [[ ! $MIME == "video/mp4" ]] \ - && echo "MP4 CONVERT... WAIT" \ + && espeak "MP4 CONVERSION PLEASE WAIT" 2>/dev/null \ && ffmpeg -loglevel error -i "${path}${file}" -c:v libx264 -c:a aac "${path}${file}.mp4" \ && [[ -s "${path}${file}.mp4" ]] && rm "${path}${file}" && file="${file}.mp4" && extension="mp4" && MIME=$(file --mime-type -b "${path}${file}") @@ -25,7 +25,7 @@ RES=${FILE_RES%?}0p ############# VIDEO LINES MAX IS 720p LINES=$(echo $RES | tr -dc '0-9') [ $LINES -gt 720 ] \ -&& echo "VIDEO RESIZING HALF" \ +&& espeak "VIDEO RESIZING HALF PLEASE WAIT" 2>/dev/null \ && ffmpeg -loglevel quiet -i "${path}${file}" -vf "scale=iw/2:ih/2" "${path}2${file}" \ && [[ -s "${path}2${file}" ]] && rm "${path}${file}" && mv "${path}2${file}" "${path}${file}" \ && FILE_RES=$(ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=s=x:p=0 "${path}${file}" | cut -d "x" -f 2) \ @@ -40,7 +40,7 @@ DUREE=$(ffprobe -v error -i "${path}${file}" -show_entries format=duration -sexa PROBETIME=$(echo "0.618 * $DURATION" | bc -l | cut -d '.' -f 1) [[ ! $PROBETIME ]] && PROBETIME="1.0" -## How many seconds are encoded by Mo ? +## How many seconds are encoded by MB ? VTRATIO=$(echo "$DURATION / $FILE_BSIZE * 1024 * 1024" | bc -l | xargs printf "%.2f") ## CREATE SOME INDEX HOOKS