#!/bin/sh
# mencoder -ovc copy -o $@
if [ $# -lt 3 ] ; then
    echo "Usage: $0 <outputvideo> <at least two input videos>"
    exit
fi
output=$1
shift
mylist=`mktemp`
curdir=`pwd`
for i in $@; do echo "file $curdir/$i" >> $mylist; done
cat $mylist
ffmpeg -f concat -safe 0 -i $mylist -c copy $output
rm -f $mylist
