Skip to content

Instantly share code, notes, and snippets.

@jodli
Last active November 19, 2017 11:45
Show Gist options
  • Select an option

  • Save jodli/96ba478a59ebea7210989b7bf99690d4 to your computer and use it in GitHub Desktop.

Select an option

Save jodli/96ba478a59ebea7210989b7bf99690d4 to your computer and use it in GitHub Desktop.

Settings on Xiaomi Yi

Interval: 2s

Resolution: 12M (4608x2592 16:9)

This results in an image every 2 seconds with around 2.6 MB in size. So the total recording time is around 175 minutes (5250 images) for the 16 GB and around 250 minutes (10500 images) for the 32 GB SD card.

Preparation for the creation of the time lapse video

WIP

Mount the SD Card

mkdir /media/sdcard
sudo mount /dev/mmcblk0p1 /media/sdcard

Copy / Move the images in their folder

mkdir ~/Pictures/TimeLapse
mv /media/sdcard/DCIM/* ~/Pictures/TimeLapse

script rename and move to 1 folder

Creating the actual time lapse video

ffmpeg -framerate 20 -i %05d.jpg -s:v 1280x720 -c:v libx264 -pix_fmt yuv420p ../timelapse.mp4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment