aboutsummaryrefslogtreecommitdiff
path: root/shrinkVideo
blob: ba3de251b045189aea2fe93dbf7cb556287156d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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"