HOW_TO_TIMELAPSE 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. ________________________________Make a Timelapse Movie___________________________________________________________
  2. Step 1:
  3. // First make a directory using the "mkdir" command (here called blabla).
  4. // Get into it using "cd" command.
  5. // Do all other steps (commands) in this directory--not anywhere else.
  6. >> mkdir blabla
  7. >> cd blabla
  8. Step 2:
  9. // Take several photos with the same time interval (tl) for a lengh of time (t).
  10. // Use the "raspistill" command, and wait the amount of time (t, in milliseconds) you chose.
  11. // Be carefull to do not fill the drive (SD card) with too many pictures as it will crash the system.
  12. // Make sure the table with your HomeScope is not disturbed with vibrations
  13. // For example, for taking pictures every 10 minutes (600000 milliseconds) for a 2 hour (7200000 ms) period
  14. // naming each picture "PictureN.jpg" where N={0000,...0013),
  15. // we use (and take 14 pictures 0-13):
  16. >> raspistill -t 7200000 -tl 600000 -o Picture%04d.jpg
  17. Step 3:
  18. // Make a text file called "photos.txt" listing all the pictures files in the directory using the command
  19. // "ls" and redirection operator ">"
  20. >> ls *.jpg > photos.txt
  21. Step 4:
  22. // Build the final movie stiching all frames together with the command "mencoder" as follows
  23. >> mencoder "mf://@photos.txt" -mf fps=1 -o timelapse_video.avi -ovc lavc -lavcopts vcodec=mjpeg:vbitrate=1600 vqmin=3
  24. _________________________________Play the movie________________________________________________________________
  25. Step 5:
  26. // Play the avi file movie using the "mplayer" command
  27. >> mplayer timelapse_video.avi -fs