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

View File

@ -32,7 +32,7 @@ do
if [ $err != 0 ] ; then if [ $err != 0 ] ; then
echo "$SEQNAME fail $frame" >> WS/log echo "$SEQNAME fail $frame" >> WS/log
mogrify -colorspace gray -blur 5x5 $img mogrify -colorspace gray -blur 5x5 $img
visual_sleep 12 visual_sleep "render fail" 12
continue continue
fi fi
set -e set -e