better API

This commit is contained in:
Tonton Th
2025-02-10 23:57:32 +01:00
parent e7ccaf8089
commit a95ff22653
2 changed files with 9 additions and 5 deletions

View File

@@ -4,9 +4,14 @@ set -eu
# --------------------------------------------------------------
visual_sleep ()
{
for foo in $(seq 0 $1) ; do
local bar=$(( $1 - foo ))
printf "%4d" $bar
msg="$1"
nbre="$2"
# echo $msg ; echo $nbre
for foo in $(seq 0 $nbre) ; do
local bar=$(( $nbre - $foo ))
printf "XXXX %-20s %3d\r" "$msg" $bar
sleep 1
done
echo
@@ -43,7 +48,6 @@ ffmpeg -nostdin \
-tune film \
$FILMNAME
# wc -c $FILMNAME | tee -a WS/log
}
# --------------------------------------------------------------
#