#!/bin/bash

SDIR="$1"
NAME="$2"

echo "==== encoding " $SDIR " to " $NAME

ffmpeg  -nostdin					\
        -loglevel warning				\
        -y -r 30 -f image2 -i $SDIR/%05d.png 		\
	-metadata artist='---{ tTh }---'		\
	-metadata title='---{ Altitudes }---'		\
        -c:v libx264 -pix_fmt yuv420p			\
        $NAME


