#!/bin/bash

cd PICS/
bash ./gengal.sh . pics
cd ../VIDS

for i in *; do

if [[ $i != *.sh && $i != *.html ]]; then
ffmpeg -i "$i" "$i".tmp.mp4; rm "$i" "$i".mp4;
mv "$i".tmp.mp4 "${i%.*}.mp4"

echo $i; 
fi

done

bash ./vidgal.sh

cd ..
python3 -m http.server 8888
