This script takes all images in a folder, rotates them 90 degrees, resizes them to 1024x768, renames them sequentially, and creates an mp4 movie with one image per second:
#!/bin/bash
mkdir -p tmp
i=1
ls *.jpg| while read f; do
output=$(printf "%03d" $i);
convert "$f" -rotate 90 -resize 1024x768 "tmp/$output.jpg";
let i="$i+1";
done;
ffmpeg -y -sameq -r 1 -i tmp/%03d.jpg out.mp4
rm -r tmp