snippets/cutAndShrinkVideo

15 lines
241 B
Plaintext
Raw Normal View History

2020-05-02 11:16:05 +02:00
#!/bin/bash
2020-05-14 20:01:22 +02:00
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
fi
fullpath="$1"
source fileextensions
outfile="$dir/$filename""CutShrunk.mp4"
2020-05-02 11:16:05 +02:00
echo "$outfile"
2023-01-01 17:53:22 +01:00
ffmpeg -y -ss "$2" -to "$3" -i "$fullpath" -s vga "$outfile"