cutVideo
This commit is contained in:
parent
d96a70e31e
commit
c66ff4e336
16
cutVideo
Executable file
16
cutVideo
Executable file
|
@ -0,0 +1,16 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [ "$#" -ne 3 ]; then
|
||||
echo "USAGE: $0 FILE START DURATION"
|
||||
fi
|
||||
|
||||
fullpath="$1"
|
||||
dir=`dirname $fullpath`
|
||||
filename=`basename $fullpath`
|
||||
extension="${filename##*.}"
|
||||
filename="${filename%.*}"
|
||||
outfile="$dir/$filename""Cut.$extension"
|
||||
|
||||
echo "--> $outfile"
|
||||
|
||||
ffmpeg -y -ss "$2" -t "$3" -i "$fullpath" "$outfile"
|
Loading…
Reference in New Issue
Block a user