Exercise 1: Birdwatching (PR169)¶
You will open a short video by its name, let mcdonald do the whole job with one button, and see how it tells a bird by the beat of its wings.
- Time: about 5 to 10 minutes, nearly all of it the computer working.
- Space: a 3 MB download, and about 0.1 GB for the frames.
- You need: mcdonald 0.5.10 or newer, installed and set up (Install).
Watch it first¶
In this 4-minute video, Jacob Haqq Misra does this exercise in the window, from opening PR169 to the full report.
Watch it on YouTube, with chapters and captions.
The video¶
PR169 is 14 seconds of infrared video from a US military camera, filmed in the Middle East in 2023 and released in November 2026. The record says only that the camera "pans to track an area of contrast, keeping it generally within the center of the frame". You can read the whole record on its DVIDS page. You will look at all of it.
In the window¶
- Start the window: type
mcdonald-guiin a terminal, or use the mcdonald icon ifmcdonald setupadded one. - On the first page, press Open by catalog name…, type
PR169, and press OK. - mcdonald asks whether to download PR169 from DVIDS. Press Yes.
- The page Select the video segment opens: a segment is the stretch of video you will measure. This video is short, so keep all of it. The line under the boxes should say 0:00.00 to 0:13.58. Press Play segment to watch it: a small bright spot crosses the picture and turns twice, while the camera follows it. Leave How many objects are you looking for? at I don't know, and press Open this segment.
- mcdonald saves the frames as pictures, with a bar on the right that shows how far it has got.
- In the Measure the object box on the right, press Begin. Three lights under the button show the steps. Find looks for spots that move against the background, Follow follows the likeliest one from frame to frame, and Measure works out how it moved and writes a report. Nothing is asked on the way. This is the long part: about 4 to 8 minutes.
- The report appears on the right, under the button, with a small bird beside its first line. Under it is a card called Measure the sound. It measures the sound track, which is another exercise, so you can leave it for now.
On the command line¶
These are the same three steps, for a terminal or an AI agent. First, find what moves:
mcdonald look PR169 --propose
This downloads PR169 the first time, saves the frames, and looks for spots that move against the
background. It takes a minute or two. It lists 3 spots that move, best first, and draws them in
the picture pr169/pr169_look_proposals_1_408.png. Open that picture. Spot 1 is the bright one
the camera follows. The other two are weak: each was seen on only 3 frames.
Under the list, it prints a line that starts to take one:. Here it is, shortened:
to take one: mcdonald mark PR169 --no-window --link --set object@3=526.0,657.0 … --set object@406=900.0,532.0 --why "proposal 1 of 3 from look --propose (…); I looked at its strip and it is the object because ..."
Copy the command (everything after to take one:), replace the ... after "because" with your own
reason, and run it. It puts marks on spot 1, the points that say where the object is in a frame,
and follows it from frame to frame. The marks go in the video's folder, pr169/, beside the
picture. It should say "396 of 408 frames linked, 1–408". On the other 12 frames it could not
see the spot. Marks set this way are recorded as an agent's choice, with your reason, and the
report says so. That is expected.
Then measure it:
mcdonald run PR169 --marks pr169/pr169_marks.json --skip integrity
--skip integrity leaves out the slowest check, as the window does. This takes about
3 minutes. The report is pr169/pr169_case.md.
To have an AI agent do it, you can give it this prompt:
Please use the mcdonald toolkit to analyze the PR169 video released under PURSUE, following https://github.com/haqqmisra/mcdonald/blob/main/docs/exercises/01-pr169.md. Run
mcdonald readmeto get started.
What you should get¶
Both ways give the same conclusion and the same numbers. The report starts:
Beats like a bird. A bird is the leading explanation. Its brightness rises and falls 5.9 times a second, the rate of a wingbeat. It also beats 11.9 times a second, its double. That rhythm is its own, not the video's. A tumbling body or a blinking light would beat too, and nothing here tells them apart. The object moved about 72 pixels a second in the picture, as the camera held it. The picture behind it held still on screen, so its motion against the background is not measured. Its real speed and size cannot be found from this video alone.
The window's report card also says it followed the spot on 396 frames (frames 1 to 408), and that the beat is 5.9 Hz. There should be one report card. If you see two or three, each for a part of the video, your mcdonald is older than 0.5.10.
What it means¶
- A beat is a regular rise and fall in brightness. As a bird's wings go up and down, it shows the camera more and less of itself, so it looks brighter and dimmer in turn. Here the spot does that about 5.9 times a second (5.9 Hz). mcdonald takes 2 to 25 times a second as a wingbeat's rate: large birds beat their wings slowly, small ones fast.
- And its double. A bird's brightness can change twice in each stroke of its wings, once on the way up and once on the way down. The rhythm then shows at the wingbeat's rate and at twice that rate, here 5.9 and 11.9 Hz. The report names the slower one as the wingbeat.
- Its own, not the video's. Press Full report and find the picture with a blue line and a grey one. The blue line is the spot's brightness, which rises and falls in a steady rhythm. The grey line is the background just beside it, which stays nearly flat. On the right, the blue line has two tall, narrow peaks, at 5.93 and 11.86 Hz. The dotted line marks the video's own rhythm, which comes from the way the file was saved. Neither peak is on it, so the beat belongs to the spot.
- The leading explanation, not proof. A tumbling body or a blinking light also beats. The report says so, and calls a bird the leading explanation, not the answer.
- One object, found three times. The bird turns twice. Each time it slows down on the screen, and Find loses it for a moment. So Find sees it three separate times: frames 3 to 39, 68 to 251 and 261 to 406. Find then checks whether the spot can be followed from each of these into the next. It can, so the list shows one spot and the report is about one object.
- The speed is only on the screen. The camera follows the spot, so it moves only about 72 pixels a second in the picture. A real speed needs three more quantities: how wide the camera sees, how far away the spot was, and how the camera moved. The record gives none of these, so mcdonald does not guess.
- Check the track by eye. The track is the spot's position in every frame, joined up. The
report card says Track not yet checked by eye. Press Full report and find the track
sheet: a small picture of every frame, with a ring where mcdonald followed the spot. If the
ring is on the spot in every frame, press I looked. On the command line, the sheet is six
pictures,
pr169/pr169_all_frames_p1.jpgtopr169/pr169_all_frames_p6.jpg. Open them, then runmcdonald report pr169/pr169_case.json --i-looked. Nothing is measured again. The report stops calling its numbers not yet sure.
Next, try Exercise 2: A ship for a ruler, where something of known size in the picture turns the speed on the screen into a real speed.
Tell us how it went¶
Please send us your result, whether or not it matched. Tell us what the report's first lines said, how long it took, and anything that was hard to follow.