Assorted FFMPEG scripts for compressing and cutting videos.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
csc-media/cut-mts.sh

11 lines
294 B

#!/bin/bash
export ffmpeg=/users/pbarfuss/ffmpeg2
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" -vcodec copy -acodec copy -f mpegts "cut-$1"