When the day is over you have a folder of about 1440 photos. This chapter turns them into a film: copy, count, correct, assemble, check.
From a phone, AirDrop (iPhone to Mac), a USB cable, or the phone's own photo backup all work. Check the photos arrive at full size and not as reduced previews.
You are looking for a number close to 1440.
ls | wc -l(Get-ChildItem -Filter *.jpg).Countls | wc -lIf the count is short, find where the gaps are. File numbers help: IMG_1001 to IMG_2440 is 1440 frames, and a missing number is a missing frame. Cameras restart their numbering after 9999 and may start a new folder, so check both.
To see the time of every frame, ExifTool (free, for Mac, Windows and Linux) can list each file with the time it was taken:
exiftool -T -fileOrder FileName -FileName -DateTimeOriginal -ext jpg . > times.txt
That writes a two-column list to times.txt, in file-name order, which you can open in a spreadsheet. Any step of more than 60 seconds between rows is a gap.
Keep it light. One correction applied to every frame keeps the film steady; strong or uneven edits make it flicker. The usual changes are a touch of exposure, contrast, white balance, and straightening a tilted horizon.
The way to do it is to edit one frame, then copy that edit to all the others:
A day that goes from bright noon to dark night may need different settings at each end. Software made for time-lapse, such as LRTimelapse, lets you set edits at a few key frames and blends them in between. It works on its own or with Lightroom Classic, for Mac and Windows, and has a free test version.
If the finished film flickers, a deflicker step evens out small jumps in brightness between frames.
-vf "deflicker=size=10,scale=1920:-2:out_range=tv".Try the film without it first. A day-long film has real changes in light that you don't want smoothed away.
Whatever tool you use, these are the settings that matter:
| Setting | Value |
|---|---|
| Frame rate | 24 frames per second |
| Each image lasts | 1 frame |
| Size | 1080p (1920 wide) or 4K (3840 wide) |
| Video format | H.264 in an MP4 file |
YouTube's recommended upload settings are MP4 and H.264 at the frame rate you made it, and list 24 frames per second among the standard rates.
ffmpeg is a free command-line tool that does this job in one line. On a Mac with Homebrew, install it with brew install ffmpeg (Homebrew's page). On Debian or Ubuntu Linux, sudo apt install ffmpeg. For Windows, ffmpeg's download page links to ready-made builds.
Open a terminal in the folder of frames. If your files are numbered without gaps, for example IMG_1001.JPG to IMG_2440.JPG, use:
ffmpeg -framerate 24 -start_number 1001 -i IMG_%04d.JPG -vf "scale=1920:-2:out_range=tv" -c:v libx264 -crf 18 -pix_fmt yuv420p -movflags +faststart film.mp4
On a Mac or Linux, you can instead take every JPG in the folder in name order, which also copes with gaps in the numbering:
ffmpeg -framerate 24 -pattern_type glob -i '*.JPG' -vf "scale=1920:-2:out_range=tv" -c:v libx264 -crf 18 -pix_fmt yuv420p -movflags +faststart film.mp4
What each part does:
-framerate 24 reads the images at 24 per second, so each photo becomes one frame of a 24-frames-per-second video. Without it, ffmpeg assumes 25.-start_number 1001 tells ffmpeg the number of the first file. It needs this when your numbers don't start near 0.-i IMG_%04d.JPG is the input: %04d stands for a four-digit number (1001, 1002 and so on). Use %d if your numbers have no leading zeros. ffmpeg's manual notes that the numbers must be sequential: at the first missing number, it stops.-pattern_type glob -i '*.JPG' takes every file ending in .JPG instead, in alphabetical order. The quotes matter: they pass the pattern to ffmpeg rather than letting your shell expand it. The match is case-sensitive, so use '*.jpg' if your files end in lower case. ffmpeg's wiki notes that glob patterns are not available on Windows builds.-vf "scale=1920:-2:out_range=tv" resizes each frame to 1920 pixels wide and works out the height to keep its shape, rounded to an even number as the video format needs. out_range=tv converts the photos' full range of brightness to the video range that players expect. For 4K, use scale=3840:-2:out_range=tv.-c:v libx264 encodes the video as H.264.-crf 18 sets the quality. Lower is better and bigger; 18 looks very close to the originals. 23 is ffmpeg's default and gives smaller files.-pix_fmt yuv420p uses the color format almost every player and website expects. The wiki explains this maximizes compatibility. Recent versions of ffmpeg no longer change the brightness range with this option alone, which is why the scale filter carries out_range=tv.-movflags +faststart puts the file's index at the front, as YouTube recommends, so it can start playing before it has fully loaded.film.mp4 is the name of the finished film.Most cameras shoot 3:2 or 4:3 photos, so these commands make a film of that shape (1920 × 1280 for 3:2, or 1920 × 1680 for a GoPro HERO13's 8:7 photos), which YouTube and Vimeo show with bars at the sides. For a widescreen 16:9 film, crop the top and bottom instead by using -vf "scale=1920:1080:force_original_aspect_ratio=increase:out_range=tv,crop=1920:1080". Check the crop doesn't cut off anything you care about.
On Windows, with gaps in the numbering: select all the frames in File Explorer (sorted by name), choose Rename and type frame. Windows names them with a number in brackets: frame (1).jpg, frame (2).jpg and so on. Then use -i "frame (%d).jpg" in place of the numbered input above, and leave out -start_number. Work on a copy of the folder, and check that frame (1).jpg is your first frame before you build the film.
DaVinci Resolve (free version, for Mac, Windows and Linux; Blackmagic Design):
Shotcut (free, for Mac, Windows and Linux; download):
Kdenlive (free, for Linux, Windows and Mac; download):
pkg install ffmpeg, run termux-setup-storage so it can reach your photos, which then appear under ~/storage/dcim (Termux wiki), change to the folder of frames with cd, and use the glob command above.Play it through once. Then check the length: 1440 frames at 24 frames per second is exactly 60 seconds. Any video player's information panel shows the duration. With ffmpeg installed, ffprobe gives the exact figures:
ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 film.mp4
That prints the length in seconds: 60.000000 for 1440 frames. If it's 57.5, you have 1380 frames and may have lost some at a gap; if it's 48, the video was made at 30 frames per second rather than 24. Divide the number of frames by 24 to know what to expect.
Tip: Make a quick, small version first (
scale=640:-2:out_range=tv,-crf 28). It takes seconds, and lets you check the order, the length and the flicker before you spend time on the full-size film.
When it looks right, go on to Adding your film.