Simple glob:
ffmpeg -r 24 -i '*.JPG' -s hd1080 -vcodec libx264 timelapse.mp4
Start from DSC_0079.JPG
ffmpeg -r 24 -f image2 -start_number 79 -i DSC_%04d.JPG -s hd1080 -vcodec libx264 timelapse2.mp4
<?php | |
$number = "\d*(?:\.\d+)?"; // It's a reference to use in other cases that matches any kind of number/float | |
$width = "(?<w>(?:$number)?%?)?"; // This is the first part, the width | |
$height = "(?:x(?<h>(?:$number)?%?))?"; // Here is the height, the same as "width" but starting with an "x" | |
$aspect = "[!><@^]"; // These are the different filters one can use to stretch, shrink, etc. | |
$size = "$width$height"; // To match any size we need width and height at least (aspect comes later) |
* { | |
font-size: 12pt; | |
font-family: monospace; | |
font-weight: normal; | |
font-style: normal; | |
text-decoration: none; | |
color: black; | |
cursor: default; | |
} |
This is a compiled list of falsehoods programmers tend to believe about working with time.
Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.