csc-media/cut-mts.sh

12 lines
276 B
Bash
Raw Normal View History

#!/bin/bash
export ffmpeg=/users/pbarfuss/ffmpeg
if [ $# != "3" ] ; then
echo "Usage: cut-mts input.mts start-point cut-length";
echo " For example: cut-mts video.mts 00:00:00 00:10:00";
exit 1;
fi
ffmpeg -i "$1" -ss "$2" -t "$3" -c:v copy -c:a copy "cut-$1"