{"id":443,"date":"2018-02-13T15:26:27","date_gmt":"2018-02-13T15:26:27","guid":{"rendered":"http:\/\/blog.trungson.com\/?p=443"},"modified":"2024-10-04T22:52:04","modified_gmt":"2024-10-04T22:52:04","slug":"ffmpeg-create-timelapse-video-images","status":"publish","type":"post","link":"http:\/\/blog.trungson.com\/?p=443","title":{"rendered":"ffmpeg to create timelapse video from images"},"content":{"rendered":"<p>This is the best tool I found. Much faster and much easier to use on Mac. I&#8217;ve tried iMovie and it&#8217;s ok but it&#8217;s not as fast (too many steps and processes). Here is a one-liner that works for me all the time:<\/p>\n<p>ffmpeg -r 4 -pattern_type glob -i &#8220;*.JPG&#8221; -s 1280&#215;720 -pix_fmt yuv420p timelapse.mp4<\/p>\n<p>On Windows: (download binary for ffmpeg into C:\\Windows\\System32\\) -pattern_type glob is not supported so you must do this:<\/p>\n<p>(for %i in (*.JPG) do @echo file &#8216;%i&#8217;) > myimages.txt<br \/>\nffmpeg -f concat -i myimages.txt -r 4 -s 1280&#215;720 -pix_fmt yuv420p timelapse.mp4<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is the best tool I found. Much faster and much easier to use on Mac. I&#8217;ve tried iMovie and it&#8217;s ok but it&#8217;s not as fast (too many steps and processes). Here is a one-liner that works for me all the time: ffmpeg -r 4 -pattern_type glob -i &#8220;*.JPG&#8221; -s 1280&#215;720 -pix_fmt yuv420p timelapse.mp4 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts\/443"}],"collection":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=443"}],"version-history":[{"count":3,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts\/443\/revisions"}],"predecessor-version":[{"id":555,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=\/wp\/v2\/posts\/443\/revisions\/555"}],"wp:attachment":[{"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=443"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.trungson.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}