12 lines
276 B
Bash
12 lines
276 B
Bash
|
#!/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"
|