#!/bin/bash
#Jaclyn Huchel
read -p "Name of Video :" name
read -p "Name of New Video :" newname
read -p "Fill Color :" fcolor
read -p "Opacity(0-100) :" opac
read -p "Border Color :" bcolor
ffmpeg -i $name.avi -r 12 -f image2 $name-%04d.jpeg
IMAGES=`ls *.jpeg`
for IMG in IMAGES
do
composite -dissolve 50% -gravity southeast logo.png $IMG $IMG
mogrify -bordercolor $bcolor -border 5 -fill $fcolor -colorize $opac $IMG
echo $IMG
done;
ffmpeg -f image2 -i $name-%04d.jpeg -r 12 $newname.avi
rm *.jpeg
echo Complete
No comments:
Post a Comment