adding slideshow script

This commit is contained in:
Chris Cochrun 2023-02-09 11:16:07 -06:00
parent 475e72e3fd
commit 84f6c6e8e3

19
scripts/slideshow Executable file
View file

@ -0,0 +1,19 @@
#!/usr/bin/env bash
while getopts af: flag
do
case "${flag}" in
a) all="true";;
f) fullname=${OPTARG};;
*) echo ${OPTARG};;
esac
done
echo $all
# echo $2
if [ $all ]; then
ffmpeg -framerate 1 -pattern_type glob -i '*.jpg' -c:v libx264 -r 30 -pix_fmt yuv420p slideshow.mp4
fi