#!/bin/bash

ERRFILE="err.fimg"

echo ++++++++++++++++++++++++++++++++++++++++++++

rm p8/*
rm $ERRFILE

./fonderie -v -T 330 -I 'capture/?????.fimg' -x 0

if [ -e $ERRFILE ] ; then
	fimgstats -v $ERRFILE
	exit 1
fi

echo ++++++++++++++++++++++++++++++++++++++++++++

ffmpeg	-nostdin					\
	-loglevel error					\
	-y -r 25 -f image2 -i p8/%05d.png	 	\
	-c:v libx264 -pix_fmt yuv420p			\
	foo.mp4


