adding slideshow script
This commit is contained in:
parent
475e72e3fd
commit
84f6c6e8e3
19
scripts/slideshow
Executable file
19
scripts/slideshow
Executable 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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue