- Use exiftool to sort according to exif data (
apt-get install exiftool
)
exiftool "-FileName<DateTimeOriginal" -d "sorted/%Y%m%d_%H%M%S.%%e" .
- Rotate and resize
mogrify * -auto-orient -resize 1920x1080
- Pad images
mogrify * -gravity center -background black -extent 1920x1080
- Encode
ffmpeg -framerate 1/5 pattern_type glob -i "*.jpg" -pix_fmt yuv420p output.mp4
- Add Sound
ffmpeg -i output.mp4 -i track.wav -c:v copy -c:a aac -b:192k video.mp4
Done! I hope this saves someone some time cause I lost some of mine on this.