From f456dc4ca0c9d6aaca6b15d313b8f044e29e491b Mon Sep 17 00:00:00 2001 From: Ole Kristian Lien Date: Mon, 30 Nov 2009 08:37:11 +0000 Subject: Script for joing two video files --- tools/join_video | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tools/join_video (limited to 'tools') diff --git a/tools/join_video b/tools/join_video new file mode 100644 index 0000000..ceb4d7f --- /dev/null +++ b/tools/join_video @@ -0,0 +1,19 @@ +#!/bin/bash +# +# Date: 2009-11-30 +# Author: Ole Kristian Lien +# License: GNU General Public License +# +# Joins together two video-files + +if [ -z "$3" ]; then + echo "Usage: $0 " + exit 1 +fi + +# todo: Concatenating works with MPEG-1, MPEG-2 PS and DV +if [ ! -f "$basename.dv" ] ; then + cat $1 $2 > $3 +else + mencoder -oac copy -ovc copy -idx -o $3 $1 $2 +fi -- cgit v1.2.3