diff options
author | Ole Kristian Lien <ole.k.lien@gmail.com> | 2009-11-30 08:37:11 +0000 |
---|---|---|
committer | Ole Kristian Lien <ole.k.lien@gmail.com> | 2009-11-30 08:37:11 +0000 |
commit | f456dc4ca0c9d6aaca6b15d313b8f044e29e491b (patch) | |
tree | f378f777635c6d3b22fff7e173f2dde7d480a128 | |
parent | 60111523edcd9b4e4c93ee9bcda221afa6845154 (diff) |
Script for joing two video files
-rw-r--r-- | tools/join_video | 19 |
1 files changed, 19 insertions, 0 deletions
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 <video-file> <video-file> <new-file>" + 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 |