Let's say you have a folder with 40 .jpegs (frames captured from a webcam).
How to convert it to a video exactly 3 seconds long?
Using FFmpeg on Windows.
Let's say you have a folder with 40 .jpegs (frames captured from a webcam).
How to convert it to a video exactly 3 seconds long?
Using FFmpeg on Windows.
dir *.jpg | %{$x=0} {Rename-Item $_ -NewName "Base$($x.tostring('000000')).jpg"; $x++ }ffmpeg -i "img (%d).jpg" timelapse.mp4
Useful links: • https://trac.ffmpeg.org/wiki/Slideshow • https://en.wikibooks.org/wiki/FFMPEG_An_Intermediate_Guide/image_sequence • https://ffmpeg.org/faq.html#How-do-I-encode-single-pictures-into-movies_003f • https://ffmpeg.org/ffmpeg-formats.html#image2-1 • https://photo.stackexchange.com/questions/1254/which-software-to-assemble-a-time-lapse-from-images
Things that didn't work in Windows ffmpeg build (nothing is stopping you from doing it in Linux): https://trac.ffmpeg.org/wiki/Slideshow
ffmpeg -pattern_type glob -i *.jpg timelapse.mp4ffmpeg -f concat -i input.txt timelapse.mp4dir *.jpg /s /b | ffmpeg -i - timelapse.mp4
& copy *.jpg | ffmpeg -i - timelapse.mp4
copy *.jpg | ffmpeg -f image2pipe -i - timelapse.mp4 &
dir *.jpg /s /b | ffmpeg -f image2pipe -i - timelapse.mp4