set -eu # -------------------------------------------------------------- ralentisseur () { temps=$1 echo "#+++ ralentisseur $temps +++#" | tee -a WS/log sleep $temps } # -------------------------------------------------------------- ff_encodage() { SRCDIR="$1" FILMNAME="$2" echo "Encoding $SRCDIR to $FILMNAME" | tee -a WS/log ffmpeg -nostdin \ -y -r 30 -f image2 -i frames/${SRCDIR}/%05d.png \ -metadata artist='--[ tTh ]--' \ -metadata title='-- HexaCone --' \ -c:v libx264 \ -pix_fmt yuv420p \ -tune film \ $FILMNAME # wc -c $FILMNAME | tee -a WS/log } # -------------------------------------------------------------- mp_encodage() { # # NOT WORKING ! # mencoder 'mf://frames/*.png' \ -mf \ fps=24 \ -ovc lavc \ -lavcopts vcodec=mpeg4 \ -o output.avi } # -------------------------------------------------------------- # --------------------------------------------------------------