2020-05-02 10:56:51 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [ "$#" -ne 3 ]; then
|
2020-08-17 12:57:45 +02:00
|
|
|
echo "USAGE: $0 FILE START END"
|
2020-05-14 20:01:22 +02:00
|
|
|
exit 1
|
2020-05-02 10:56:51 +02:00
|
|
|
fi
|
|
|
|
|
|
|
|
fullpath="$1"
|
2020-10-13 15:27:47 +02:00
|
|
|
source fileextensions
|
2020-05-02 10:56:51 +02:00
|
|
|
outfile="$dir/$filename""Cut.$extension"
|
|
|
|
|
2020-05-02 11:08:32 +02:00
|
|
|
echo "$outfile"
|
2020-05-02 10:56:51 +02:00
|
|
|
|
2020-05-02 11:54:18 +02:00
|
|
|
ffmpeg -y -ss "$2" -to "$3" -i "$fullpath" "$outfile"
|