17 lines
270 B
Bash
Executable File
17 lines
270 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "$#" -ne 1 ]; then
|
|
echo "USAGE: $0 FILE"
|
|
exit 1
|
|
fi
|
|
|
|
fullpath="$1"
|
|
dir=`dirname "$fullpath"`
|
|
filename=`basename "$fullpath"`
|
|
filename="${filename%.*}"
|
|
outfile="$dir/$filename""Shrunk.mp4"
|
|
|
|
echo "$outfile"
|
|
|
|
ffmpeg -y -i "$fullpath" -s ega "$outfile"
|