#!/bin/bash # # Date: 2009-11-30 # Author: Ole Kristian Lien # License: GNU General Public License # # Joins together two or more video-files if [ -z "$3" ]; then echo "Usage: $0 [...]" exit 1 fi array=() for arg in $*; do array[${#array[*]}]=$arg done # remove first entry unset array[0] # todo: Concatenating works with MPEG-1, MPEG-2 PS and DV if [ ! -f "$basename.dv" ] ; then cat ${array[*]} > $1 else mencoder -oac copy -ovc copy -idx -o ${array[*]} fi