better API
This commit is contained in:
		
							parent
							
								
									e7ccaf8089
								
							
						
					
					
						commit
						a95ff22653
					
				| @ -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 | ||||
| } | ||||
| #   -------------------------------------------------------------- | ||||
| # | ||||
|  | ||||
| @ -32,7 +32,7 @@ do | ||||
| 	if [ $err != 0 ] ; then | ||||
| 		echo "$SEQNAME fail $frame" >> WS/log | ||||
| 		mogrify -colorspace gray -blur 5x5 $img | ||||
| 		visual_sleep 12 | ||||
| 		visual_sleep "render fail" 12 | ||||
| 		continue | ||||
| 	fi | ||||
| 	set -e | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Tonton Th
						Tonton Th