spatial-data-discovery / spatial-data-discovery.github.io

Organization website
https://spatial-data-discovery.github.io/
4 stars 0 forks source link

Images to Animations #23

Closed dt-woods closed 4 years ago

dt-woods commented 4 years ago

Using GIMP and FFmpeg (I installed FFmpeg w/ Imagemagick)

  1. Load spatial data into QGIS
  2. Create symbology (save symbology to text file)
  3. Create layout (save layout in case you need to come back to it)
  4. Add map(s), legend(s), and text
  5. Export maps to images (PNG)
  6. Open one PNG in GIMP
  7. Open as layers the remaining images
    • order most recent layer at the top
  8. Crop image to selection (draw a box around what you want)
  9. Filters --> Animation --> Optimize for GIF
  10. Export --> GIF
    • Check [x] As animation
    • Loop forever
    • Delay between frames (e.g., 150 ms)
    • Use delay entered above for all frames
  11. Convert to video format
dt-woods commented 4 years ago

How to crop a video using FFMpeg (video.stackexchange.com)

ffmpeg -i in.mp4 -filter:v "crop=out_w:out_h:x:y" out.mp4

where the options are as follows: