Simple bash tools to: rescale/letterbox videos & images, add fadeout/pause after videos
Program: image_prep.sh by p.forret@brightfish.be
Version: v1.0 - 2017-11-30 13:57
Usage: image_prep.sh [-q] [-v] [-s <scale>] [-b <blur>] [-c <col>] <action> <input> <output>
Flags, options and parameters:
-q|--quiet : [flag] no output [default: off]
-v|--verbose : [flag] output more [default: off]
-b|--blur <val>: [optn] blur strength [default: 10]
-c|--col <val> : [optn] color to add [default: black]
-s|--scale <val>: [optn] scale method: box/stretch/blur [default: box]
<action : [parameter] what to do: SCALE
<input : [parameter] input image filename
<output : [parameter] output image filename
image_prep.sh -s blur -b 20 SCALE [input] [output]
Program: video_prep.sh by p.forret@brightfish.be
Version: v1.0 - 2017-11-30 14:55
Usage: video_prep.sh [-m] [-q] [-v] [-b <bps>] [-c <col>] [-d <dur>] [-g <bg>] [-h <hout>] [-r <rat>] [-s <scale>] [-w <wout>] <action> <input> <output>
Flags, options and parameters:
-m|--mute : [flag] remove sound [default: off]
-q|--quiet : [flag] no output [default: off]
-v|--verbose : [flag] output more [default: off]
-b|--bps <val> : [optn] output video bitrate [default: 6M]
-c|--col <val> : [optn] color/last/fade to use for append [default: black]
-d|--dur <val> : [optn] add duration in seconds [default: 1]
-g|--bg <val> : [optn] background image [default: empty.jpg]
-r|--rat <val> : [optn] output video framerate [default: 25]
-s|--scale <val>: [optn] scale method: box/stretch/blur [default: box]
-w|--wout <val>: [optn] output video width [default: 1080]
-h|--hout <val>: [optn] output video height [default: 1920]
<action> : [parameter] what to do: APPEND/PREPEND/SCALE/BACKGROUND/EXTRACT
<input> : [parameter] input file name
<output> : [parameter] output file name
video_prep.sh -m -c fade -d 7 -b 10M APPEND [input] [output]
camera_square.jpg
: Photo by Alexander Andrews on Unsplashdog_landscape.jpg
: Photo by Aaron Barnaby on Unsplashalex_portrait.jpg
: Photo by Alex Iby on Unsplashfashion_divx.mov, bunny_divx.mp4
: DivX Sample videoslights.mp4
: Videezy free video